about summary refs log tree commit diff
path: root/tests/ui/annotate-snippet
diff options
context:
space:
mode:
authorStuart Cook <Zalathar@users.noreply.github.com>2025-05-04 13:21:09 +1000
committerGitHub <noreply@github.com>2025-05-04 13:21:09 +1000
commit54821b9ed09bcda8656d880b5f06a16ec69be52f (patch)
tree21f0edc869424d8abc492bfa7003d032a10df927 /tests/ui/annotate-snippet
parentde30d1b17cce6bd1a18f8021b24404c567aea053 (diff)
parentf4e1ec111c016f1dbbedb2628a30e9ce20d8e5f1 (diff)
downloadrust-54821b9ed09bcda8656d880b5f06a16ec69be52f.tar.gz
rust-54821b9ed09bcda8656d880b5f06a16ec69be52f.zip
Rollup merge of #140617 - Urgau:unsafe_attr-lint-allow, r=jieyouxu
Report the `unsafe_attr_outside_unsafe` lint at the closest node

This PR have `AstValidation` track a linting node id and then uses it when reporting the `unsafe_attr_outside_unsafe` lint, so that instead of being bound at the crate-root, `#[allow]` of the lint works at any node.

Fixes rust-lang/rust#140602
r? `@jieyouxu`
Diffstat (limited to 'tests/ui/annotate-snippet')
0 files changed, 0 insertions, 0 deletions