Skip to content
Permalink
Browse files

Make return place promotable by default

  • Loading branch information...
ecstatic-morse committed Aug 27, 2019
1 parent 5859d41 commit 44e4bf391258348fb3b5da44eba52302ac78c9f3
Showing with 0 additions and 4 deletions.
  1. +0 −4 src/librustc_mir/transform/qualify_consts.rs
@@ -496,10 +496,6 @@ impl Qualif for IsNotPromotable {
true
}

fn in_return_place_initially(_cx: &ConstCx<'_, 'tcx>, _local: Local) -> bool {
true
}

fn in_static(
cx: &ConstCx<'_, 'tcx>,
static_: &Static<'tcx>,

0 comments on commit 44e4bf3

Please sign in to comment.
You can’t perform that action at this time.