1
Fork 0

query_name_of_opt_const_arg -> query_name_opt_const_arg

This commit is contained in:
Bastian Kauschke 2020-10-05 08:49:21 +02:00
parent 536674fb69
commit 8160bfa39c
6 changed files with 10 additions and 10 deletions

View file

@ -2953,7 +2953,7 @@ impl<'tcx> TyCtxt<'tcx> {
/// Returns the possibly-auto-generated MIR of a `(DefId, Subst)` pair.
pub fn instance_mir(self, instance: ty::InstanceDef<'tcx>) -> &'tcx Body<'tcx> {
match instance {
ty::InstanceDef::Item(def) => self.optimized_mir_of_opt_const_arg(def),
ty::InstanceDef::Item(def) => self.optimized_mir_opt_const_arg(def),
ty::InstanceDef::VtableShim(..)
| ty::InstanceDef::ReifyShim(..)
| ty::InstanceDef::Intrinsic(..)