diff options
| author | Florian Diebold <flodiebold@gmail.com> | 2022-06-24 13:03:13 +0200 |
|---|---|---|
| committer | Florian Diebold <flodiebold@gmail.com> | 2022-06-24 13:45:19 +0200 |
| commit | c80c34867fab85bfa0ac3661e8abd264991af324 (patch) | |
| tree | 28b453fd64b44fcb9af01ceea887eb6613e3f2ab /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs | |
| parent | 32b40ded0f16818918d4a2ca16400526eea369f2 (diff) | |
| download | rust-c80c34867fab85bfa0ac3661e8abd264991af324.tar.gz rust-c80c34867fab85bfa0ac3661e8abd264991af324.zip | |
Improve proc macro errors a bit
Distinguish between - there is no build data (for some reason?) - there is build data, but the cargo package didn't build a proc macro dylib - there is a proc macro dylib, but it didn't contain the proc macro we expected - the name did not resolve to any macro (this is now an unresolved_macro_call even for attributes) I changed the handling of disabled attribute macro expansion to immediately ignore the macro and report an unresolved_proc_macro, because otherwise they would now result in loud unresolved_macro_call errors. I hope this doesn't break anything. Also try to improve error ranges for unresolved_macro_call / macro_error by reusing the code for unresolved_proc_macro. It's not perfect but probably better than before.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions
