Closed
Description
rust/src/librustc_codegen_ssa/mir/block.rs
Line 628 in a916ac2
It should use Instance::new(def_is, self.monomorphize(substs)
. (substs
is the second field of StaticKind::Promoted
.) While both instances are normally equal, they can differ after running the mir inliner. In that case the promoted will refer to the inlined function.
@rustbot modify labels: +A-mir +C-bug +requires-nightly
This issue has been assigned to @jumbatm via this comment.
Metadata
Metadata
Assignees
Labels
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.htmlCategory: This is a bug.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Relevant to the compiler team, which will review and decide on the PR/issue.This issue requires a nightly compiler in some way.