about summary refs log tree commit diff
path: root/tests/ui/patchable-function-entry/patchable-function-entry-flags.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-01-02 09:35:08 +0000
committerbors <bors@rust-lang.org>2024-01-02 09:35:08 +0000
commite461efb636ae512cff83a1bd6e6c9818b982347f (patch)
treeb192b368ea2c4b58c14d06e2d28613054faa248d /tests/ui/patchable-function-entry/patchable-function-entry-flags.rs
parenta8d935eedc80df8b453d90539cbe78b7e2c75e3c (diff)
parentb105e9b342c08e66c6049cd22f10b3a98f4d877e (diff)
downloadrust-e461efb636ae512cff83a1bd6e6c9818b982347f.tar.gz
rust-e461efb636ae512cff83a1bd6e6c9818b982347f.zip
Auto merge of #15810 - rmehri01:assist_panics_in_macros, r=Veykril
fix: assists panic when trying to edit usage inside macro

When we try to make a syntax node mutable inside a macro to edit it, it seems like the edits aren't properly reflected and will cause a panic when trying to make another syntax node mutable.

This PR changes `bool_to_enum` and `promote_local_to_const` to use the original syntax range instead to edit the original file instead of the macro file. I'm not sure how to do it for `inline_call` with the example I mentioned in the issue, so I've left it out for now.

Fixes #15807
Diffstat (limited to 'tests/ui/patchable-function-entry/patchable-function-entry-flags.rs')
0 files changed, 0 insertions, 0 deletions