about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-12-07 16:52:21 +0000
committerGitHub <noreply@github.com>2021-12-07 16:52:21 +0000
commit755b668ae4107bc426edb686dc9362a5b3ba7549 (patch)
tree721075ea7773104adc9be679b744b97a737383c2 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
parentb7afb6fc6ce6c94379c57d3bb64fea2a2064eeac (diff)
parentb365b6119c0b477e691d14cda6ecc620aa507727 (diff)
downloadrust-755b668ae4107bc426edb686dc9362a5b3ba7549.tar.gz
rust-755b668ae4107bc426edb686dc9362a5b3ba7549.zip
Merge #10960
10960: fix: fix handling of macros in `extern` blocks r=jonas-schievink a=jonas-schievink

- Removes knowledge of what's in an extern block from `ItemTree`.
- Treats extern blocks as `AssocContainerId` and renames the latter to `ItemContainerId`.
- Threads the container through name resolution (which is a bit messy).
- Considers statics to be associated items, since they can be in an extern block. (it might be better to further distinguish potentially-associated-items from potentially-in-an-extern-block-items, but currently I don't expect much of a benefit)
- Adds a test for the incorrect-case diagnostic demonstrating the impact of this change.

Fixes https://github.com/rust-analyzer/rust-analyzer/issues/8913

bors r+

Co-authored-by: Jonas Schievink <jonas.schievink@ferrous-systems.com>
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions