rust/src/test/ui-fulldeps
kennytm 4cb87899d9 Rollup merge of #47444 - etaoins:dont-include-bang-in-macro-suggestion, r=estebank
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
2018-01-18 01:57:20 +08:00
..
auxiliary
custom-derive
proc-macro Add 'Span.parent()' and 'Span.source()' to proc_macro API. 2018-01-03 00:20:33 -08:00
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 Do the same things for fulldeps tests 2017-12-14 23:26:40 +03:00
lint-plugin-forbid-attrs.stderr Do the same things for fulldeps tests 2017-12-14 23:26:40 +03:00
lint-plugin.rs
lint-plugin.stderr
resolve-error.rs
resolve-error.stderr Don't include bang in macro replacement suggestion 2018-01-15 18:09:52 +11:00
update-all-references.sh Do the same things for fulldeps tests 2017-12-14 23:26:40 +03:00
update-references.sh Make ui-fulldeps/update-references executable 2018-01-15 08:09:55 +11:00