about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-04-07 11:17:13 +0200
committerGitHub <noreply@github.com>2022-04-07 11:17:13 +0200
commit648d644c602406eb003dde56e7fd48effce07f15 (patch)
tree069e38c5e03b69164c67e99f9507242375d4a847 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent8cd6080f6c778f6664ea3d12ca7848231707a627 (diff)
parent5ab0548500a30134496ba28eb2291b0523b7346a (diff)
downloadrust-648d644c602406eb003dde56e7fd48effce07f15.tar.gz
rust-648d644c602406eb003dde56e7fd48effce07f15.zip
Rollup merge of #95189 - fmease:fix-issue-94340, r=estebank
Stop flagging unexpected inner attributes as outer ones in certain diagnostics

Fixes #94340.

In the issue to-be-fixed I write that the general message _an inner attribute is not permitted in this context_ should be more specific noting that the “context” is the `include` macro. This, however, cannot be achieved without touching a lot of things and passing a flag to the `parse_expr` and `parse_item` calls in `expand_include`. This seems rather hacky to me. That's why I left it as it. `Span::from_expansion` does not apply either AFAIK.

`@rustbot` label A-diagnostics T-compiler
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions