Files
rust/compiler
albab-hasan 3add62de54 dont suggest changing the mutability of a borrow inside a macro
the suggestion rewrote the borrow where it was written. for a borrow coming from a macro body that is the macro definition rather than the call site, and for a macro from another crate a file the user cannot edit. it was machine applicable so rustfix would apply it and a macro invoked at more than one call site could stop compiling.

gate it on can_be_used_for_suggestions so those cases fall through to the existing note that the trait is implemented for the mutable borrow but not the shared one.
2026-09-11 18:25:21 +06:00
..
2026-09-09 14:18:27 +02:00
2026-09-09 14:18:27 +02:00