]> git.lizzy.rs Git - rust.git/commit
validate rustc_allow_const_fn_unstable targets
authorFlorian Warzecha <liketechnik@disroot.org>
Wed, 21 Oct 2020 22:02:26 +0000 (00:02 +0200)
committerFlorian Warzecha <liketechnik@disroot.org>
Wed, 21 Oct 2020 22:02:26 +0000 (00:02 +0200)
commit3a63bf02998f7b5e040a4b87e049d03ddd144f74
treeb240a2332a42c0ead1ca5fa9e2731835f645bef5
parent7258740509877ff97c32c52cea7ac236ba80c51a
validate rustc_allow_const_fn_unstable targets

Adds a check to make sure `#[rustc_allow_const_fn_unstable]`
can be applied only to functions.
compiler/rustc_passes/src/check_attr.rs