Skip to content
Prev Previous commit
Next Next commit
Turn off never type fallback
  • Loading branch information
WaffleLapkin committed Apr 2, 2024
commit ff21bc21bca81685565b82d5bbdfd956fb61cff2
5 changes: 5 additions & 0 deletions compiler/rustc_hir_typeck/src/fn_ctxt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,11 @@ fn parse_never_type_options_attr(
}

let fallback = fallback.unwrap_or_else(|| {
if true {
// For a crater experiment, turn off all fallback
return NoFallback;
}

if tcx.features().never_type_fallback { FallbackToNiko } else { FallbackToUnit }
});

Expand Down