Skip to content

Commit 6c0f2a9

Browse files
committed
Update to actually use transform
1 parent a6c2cb4 commit 6c0f2a9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/librustc_infer/infer/error_reporting/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
827827
ty::GenericParamDefKind::Type { has_default, .. } => {
828828
Some((param.def_id, has_default))
829829
}
830-
ty::GenericParamDefKind::Const => None, // FIXME(const_generics:defaults)
830+
ty::GenericParamDefKind::Const { .. } => None, // FIXME(const_generics:defaults)
831831
})
832832
.peekable();
833833
let has_default = {

src/librustc_mir/transform/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,7 @@ fn run_optimization_passes<'tcx>(
452452
&simplify::SimplifyCfg::new("final"),
453453
&nrvo::RenameReturnPlace,
454454
&simplify::SimplifyLocals,
455+
&match_branches::MatchBranchSimplification,
455456
];
456457

457458
let no_optimizations: &[&dyn MirPass<'tcx>] = &[

src/test/mir-opt/matches_reduce_branches.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// compile-flags: --emit mir
2-
// EMIT_MIR matches_reduce_branches.foo.fix_match_arms.diff
1+
// EMIT_MIR matches_reduce_branches.foo.MatchBranchSimplification.diff
32

43
fn foo(bar: Option<()>) {
54
if matches!(bar, None) {

0 commit comments

Comments
 (0)