diff --git a/compiler/rustc_hir_typeck/src/fn_ctxt/mod.rs b/compiler/rustc_hir_typeck/src/fn_ctxt/mod.rs index 05e7c5b2b4188..2590eac800942 100644 --- a/compiler/rustc_hir_typeck/src/fn_ctxt/mod.rs +++ b/compiler/rustc_hir_typeck/src/fn_ctxt/mod.rs @@ -438,6 +438,11 @@ fn parse_never_type_options_attr( } let fallback = fallback.unwrap_or_else(|| { + if true { + // For a crater experiment, set `fallback = !` + return FallbackToNever; + } + if tcx.features().never_type_fallback { FallbackToNiko } else { FallbackToUnit } });