Skip to content

Commit 2d84f27

Browse files
committed
Auto merge of #123482 - WaffleLapkin:never-type-fallback-to-self, r=<try>
[experiment] Set never type fallback = `!` r? ghost cc `@traviscross`
2 parents 385fa9d + 1868b33 commit 2d84f27

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, set `fallback = !`
443+
return FallbackToNever;
444+
}
445+
441446
if tcx.features().never_type_fallback { FallbackToNiko } else { FallbackToUnit }
442447
});
443448

0 commit comments

Comments
 (0)