X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibrustc_mir%2Ftransform%2Fcopy_prop.rs;h=aeb3ed5a2eca85170db79f3b9bea5b0d6ec6fba3;hb=fff08cb04389497d254fb40948674cbbee402908;hp=45b3fb79dd9fa70dc0d048cb1eae8e810f1e7662;hpb=f90d34874ee83430f8897ce8a04407580dbcdf4d;p=rust.git diff --git a/src/librustc_mir/transform/copy_prop.rs b/src/librustc_mir/transform/copy_prop.rs index 45b3fb79dd9..aeb3ed5a2ec 100644 --- a/src/librustc_mir/transform/copy_prop.rs +++ b/src/librustc_mir/transform/copy_prop.rs @@ -30,10 +30,12 @@ pub struct CopyPropagation; impl MirPass for CopyPropagation { - fn run_pass<'a, 'tcx>(&self, - tcx: TyCtxt<'a, 'tcx, 'tcx>, - _source: MirSource<'tcx>, - body: &mut Body<'tcx>) { + fn run_pass<'tcx>( + &self, + tcx: TyCtxt<'tcx, 'tcx>, + _source: MirSource<'tcx>, + body: &mut Body<'tcx>, + ) { // We only run when the MIR optimization level is > 1. // This avoids a slow pass, and messing up debug info. if tcx.sess.opts.debugging_opts.mir_opt_level <= 1 {