Skip to content

Commit 358aca1

Browse files
committed
Turn off never type fallback
1 parent 5f8be02 commit 358aca1

File tree

1 file changed

+5
-0
lines changed
  • compiler/rustc_hir_typeck/src/fn_ctxt

1 file changed

+5
-0
lines changed

compiler/rustc_hir_typeck/src/fn_ctxt/mod.rs

+5
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,11 @@ fn parse_never_type_options_attr(
438438
}
439439

440440
let fallback = fallback.unwrap_or_else(|| {
441+
if true {
442+
// For a crater experiment, turn off all fallback
443+
return NoFallback;
444+
}
445+
441446
if tcx.features().never_type_fallback { FallbackToNiko } else { FallbackToUnit }
442447
});
443448

0 commit comments

Comments
 (0)