Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3b1c2eb + c8e4aaa commit 08bac31Copy full SHA for 08bac31
compiler/rustc_mir_transform/src/remove_storage_markers.rs
@@ -7,14 +7,10 @@ pub struct RemoveStorageMarkers;
7
8
impl<'tcx> MirPass<'tcx> for RemoveStorageMarkers {
9
fn is_enabled(&self, sess: &rustc_session::Session) -> bool {
10
- sess.mir_opt_level() > 0
+ sess.mir_opt_level() > 0 && !sess.emit_lifetime_markers()
11
}
12
13
- fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
14
- if tcx.sess.emit_lifetime_markers() {
15
- return;
16
- }
17
-
+ fn run_pass(&self, _tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
18
trace!("Running RemoveStorageMarkers on {:?}", body.source);
19
for data in body.basic_blocks.as_mut_preserves_cfg() {
20
data.statements.retain(|statement| match statement.kind {
0 commit comments