Skip to content

Commit

Permalink
Turn off never type fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
WaffleLapkin committed Mar 24, 2024
1 parent 5f8be02 commit 358aca1
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit 358aca1

Please sign in to comment.