Commit f588463
committed
Minor tweaks to refcell logging
- Fix the logging when debug_refcell is enabled so the location is output as a string rather than a sequence of bytes
- Avoid logging an empty struct when debug_refcell is disabled
- Make the panic error message consistent with the compiler borrow-checking error messages1 parent 6c8138d commit f588463
2 files changed
+16
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
767 | 767 | | |
768 | 768 | | |
769 | 769 | | |
770 | | - | |
| 770 | + | |
| 771 | + | |
771 | 772 | | |
772 | | - | |
773 | | - | |
| 773 | + | |
| 774 | + | |
774 | 775 | | |
775 | | - | |
| 776 | + | |
776 | 777 | | |
777 | 778 | | |
778 | 779 | | |
| |||
788 | 789 | | |
789 | 790 | | |
790 | 791 | | |
791 | | - | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
792 | 797 | | |
793 | 798 | | |
794 | 799 | | |
795 | 800 | | |
796 | 801 | | |
797 | 802 | | |
798 | 803 | | |
799 | | - | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
800 | 809 | | |
801 | 810 | | |
802 | 811 | | |
| |||
0 commit comments