We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
impl Trait
1 parent c4ef5fd commit 9beb6f8Copy full SHA for 9beb6f8
compiler/rustc_mir/src/transform/check_consts/ops.rs
@@ -558,12 +558,8 @@ pub mod ty {
558
#[derive(Debug)]
559
pub struct ImplTrait;
560
impl NonConstOp for ImplTrait {
561
- fn status_in_item(&self, ccx: &ConstCx<'_, '_>) -> Status {
562
- if ccx.const_kind() != hir::ConstContext::ConstFn {
563
- Status::Allowed
564
- } else {
565
- Status::Unstable(sym::const_impl_trait)
566
- }
+ fn status_in_item(&self, _: &ConstCx<'_, '_>) -> Status {
+ Status::Unstable(sym::const_impl_trait)
567
}
568
569
fn build_error(&self, ccx: &ConstCx<'_, 'tcx>, span: Span) -> DiagnosticBuilder<'tcx> {
0 commit comments