4cb87899d9
Don't include bang in macro replacement suggestion When we suggest the replacement for a macro we include the "!" in the suggested replacement but the span only contains the name of the macro itself. Using that replacement would cause a duplicate "!" in the resulting code. I originally tried to extend the span to be replaced by 1 byte in rust-lang/rust#47424. However, @zackmdavis pointed out that there can be whitespace between the macro name and the bang. Instead, just remove the bang from the suggested replacement. Fixes #47418 r? @estebank |
||
---|---|---|
.. | ||
auxiliary | ||
custom-derive | ||
proc-macro | ||
deprecated-derive.rs | ||
deprecated-derive.stderr | ||
lint-group-plugin.rs | ||
lint-group-plugin.stderr | ||
lint-plugin-cmdline-allow.rs | ||
lint-plugin-cmdline-allow.stderr | ||
lint-plugin-cmdline-load.rs | ||
lint-plugin-cmdline-load.stderr | ||
lint-plugin-forbid-attrs.rs | ||
lint-plugin-forbid-attrs.stderr | ||
lint-plugin.rs | ||
lint-plugin.stderr | ||
resolve-error.rs | ||
resolve-error.stderr | ||
update-all-references.sh | ||
update-references.sh |