diff options
| author | bors <bors@rust-lang.org> | 2022-06-24 12:27:59 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-06-24 12:27:59 +0000 |
| commit | 401a71d1d7e99cd5563253da77d4b293de9b6731 (patch) | |
| tree | 4b7ce4c5a2201b29ed0cdf180ba845d8542b9948 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs | |
| parent | 434e718b6717246066898a2dfcda1aec5e6f4082 (diff) | |
| parent | 45fd5e697f6d7cf1d09c6c465cb008eabd1c63fb (diff) | |
| download | rust-401a71d1d7e99cd5563253da77d4b293de9b6731.tar.gz rust-401a71d1d7e99cd5563253da77d4b293de9b6731.zip | |
Auto merge of #12629 - flodiebold:proc-macro-error-improvement, r=Veykril
fix: 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
