]> git.lizzy.rs Git - rust.git/commit
validate allow_internal_unstable target
authorFlorian Warzecha <liketechnik@disroot.org>
Wed, 21 Oct 2020 20:49:08 +0000 (22:49 +0200)
committerFlorian Warzecha <liketechnik@disroot.org>
Wed, 21 Oct 2020 20:49:08 +0000 (22:49 +0200)
commit7258740509877ff97c32c52cea7ac236ba80c51a
tree8efa2eb4a04e000c2bbc4f493352bc92988914d7
parent05f4a9a42abbbdb64d3ec4ed0ae6883c10c66e3f
validate allow_internal_unstable target

Adds a check to make sure `#[allow_internal_unstable]`
can be applied only to macro definitions.
compiler/rustc_passes/src/check_attr.rs
src/test/ui/feature-gates/feature-gate-allow-internal-unstable-struct.rs
src/test/ui/feature-gates/feature-gate-allow-internal-unstable-struct.stderr