diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2021-04-05 13:03:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-05 13:03:36 +0200 |
| commit | 54ea8e1b82a67202e64f8aac1ed57bc7b987e508 (patch) | |
| tree | 3a58fc584780565d66b1f88196aed568f651c358 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 58e71896506edb701f276158bd2f47e8788a1133 (diff) | |
| parent | 06b3636f4ed23c1ad0ed18ecc1408147ec862c1a (diff) | |
| download | rust-54ea8e1b82a67202e64f8aac1ed57bc7b987e508.tar.gz rust-54ea8e1b82a67202e64f8aac1ed57bc7b987e508.zip | |
Rollup merge of #81922 - magurotuna:issue81522, r=matthewjasper
Let `#[allow(unstable_name_collisions)]` work for things other than function Fixes #81522 In addition to the report in #81522, currently `#[allow(unstable_name_collisions)]` doesn't suppress the corresponding diagnostics even if this attribute is appended to an expression statement or a let statement. It seems like this is because the wrong `HirId` is passed to `struct_span_lint_hir`. It's fixed in this PR, and a regression test for it is also added.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
