Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Welp >.<
  • Loading branch information
jonas-schievink authored Apr 15, 2020
commit 2650c3aeaf222e05a0df9e83948df835bc2c55bc
2 changes: 1 addition & 1 deletion src/librustc_mir/transform/dag_nrvo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ pub struct Nrvo;

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