Skip to content

Commit 2650c3a

Browse files
Welp >.<
1 parent fa95297 commit 2650c3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/transform/dag_nrvo.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ pub struct Nrvo;
125125

126126
impl<'tcx> MirPass<'tcx> for Nrvo {
127127
fn run_pass(&self, tcx: TyCtxt<'tcx>, source: MirSource<'tcx>, body: &mut BodyAndCache<'tcx>) {
128-
if tcx.crate_name(LOCAL_CRATE).as_str().starts_with("rustc_") {
128+
if !tcx.crate_name(LOCAL_CRATE).as_str().starts_with("rustc_") {
129129
// Only run this pass on the compiler.
130130
return;
131131
}

0 commit comments

Comments
 (0)