diff options
| author | bors <bors@rust-lang.org> | 2023-04-10 21:50:46 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-04-10 21:50:46 +0000 |
| commit | 194a0bb5d6fbdd36e0df58b4698311bb8fed6bca (patch) | |
| tree | 6c3419ffdd07c011177621862badf4991e6b8ffd /compiler/rustc_codegen_gcc/src/asm.rs | |
| parent | 88fb1b922b047981fc0cfc62aa1418b4361ae72e (diff) | |
| parent | 668a62984ac51a09987c5b1a7c1589814f7a95d4 (diff) | |
| download | rust-194a0bb5d6fbdd36e0df58b4698311bb8fed6bca.tar.gz rust-194a0bb5d6fbdd36e0df58b4698311bb8fed6bca.zip | |
Auto merge of #109638 - NotStirred:suggest/non-derive, r=davidtwco
Add suggestion to remove `derive()` if invoked macro is non-derive
Adds to the existing `expected derive macro, found {}` error message:
```
help: remove the surrounding "derive()":
--> $DIR/macro-path-prelude-fail-4.rs:1:3
|
LL | #[derive(inline)]
| ^^^^^^^ ^
```
This suggestion will either fix the issue, in the case that the macro was valid, or provide a better error message if not
Not ready for merge yet, as the highlighted span is only valid for trivial formatting. Is there a nice way to get the parent span of the macro path within `smart_resolve_macro_path`?
Closes #109589
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/asm.rs')
0 files changed, 0 insertions, 0 deletions
