We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83a14a0 commit 9c2b71aCopy full SHA for 9c2b71a
compiler/rustc_middle/src/mir/interpret/queries.rs
@@ -209,7 +209,7 @@ impl<'tcx> TyCtxtEnsure<'tcx> {
209
// into `const_eval` which will return `ErrorHandled::TooGeneric` if any of them are
210
// encountered.
211
let args = GenericArgs::identity_for_item(self.tcx, def_id);
212
- let instance = ty::Instance::new(def_id, self.tcx.erase_regions(args));
+ let instance = ty::Instance::new(def_id, args);
213
let cid = GlobalId { instance, promoted: None };
214
let typing_env = ty::TypingEnv::post_analysis(self.tcx, def_id);
215
// Const-eval shouldn't depend on lifetimes at all, so we can erase them, which should
0 commit comments