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

@@ -332,7 +332,7 @@ fn mir_promoted(
// this point, before we steal the mir-const result.
// Also this means promotion can rely on all const checks having been done.
let _ = tcx.mir_const_qualif_opt_const_arg(def);
let _ = tcx.mir_abstract_const_of_opt_const_arg(def.to_global());
let _ = tcx.mir_abstract_const_opt_const_arg(def.to_global());
let mut body = tcx.mir_const(def).steal();
let mut required_consts = Vec::new();