1
Fork 0

remove optimizations from const_prop_lint

This commit is contained in:
Carl Scherer 2022-03-11 14:52:58 +00:00 committed by Oli Scherer
parent 5e4ff26618
commit c2f9278b40
2 changed files with 21 additions and 281 deletions

View file

@ -431,7 +431,7 @@ fn run_post_borrowck_cleanup_passes<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tc
// `Deaggregator` is conceptually part of MIR building, some backends rely on it happening
// and it can help optimizations.
&deaggregator::Deaggregator,
&const_prop_lint::ConstProp,
&Lint(const_prop_lint::ConstProp),
];
pm::run_passes(tcx, body, post_borrowck_cleanup);