about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-04-26 02:56:25 +0000
committerbors <bors@rust-lang.org>2021-04-26 02:56:25 +0000
commitee8382f297bcf15a1e3680f54bd30ce4d1446b76 (patch)
tree16e61d7df8e0e014e55c30cd10dff2cb5de40b6c /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parentf8f59682558dd9a5b6254cd8bf98c3b082a8e99e (diff)
parent8a961a5b334a4f871093462823e8c86aab2611b6 (diff)
downloadrust-ee8382f297bcf15a1e3680f54bd30ce4d1446b76.tar.gz
rust-ee8382f297bcf15a1e3680f54bd30ce4d1446b76.zip
Auto merge of #84544 - RalfJung:const_fn_in_trait, r=oli-obk
Always reject `const fn` in `trait` during parsing.

'const fn' in trait are rejected in the AST:
https://github.com/rust-lang/rust/blob/b78c0d8a4d5af91a4a55d029293e3ecb879ec142/compiler/rustc_ast_passes/src/ast_validation.rs#L1411
So this feature gate check is a NOP and we can just remove it.

The src/test/ui/feature-gates/feature-gate-min_const_fn.rs and src/test/ui/feature-gates/feature-gate-const_fn.rs tests ensure that we still reject `const fn` in `trait`

Cc https://github.com/rust-lang/rust/issues/84510
r? `@oli-obk`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions