query_name_of_opt_const_arg -> query_name_opt_const_arg
This commit is contained in:
parent
536674fb69
commit
8160bfa39c
6 changed files with 10 additions and 10 deletions
|
@ -343,7 +343,7 @@ pub fn eval_to_allocation_raw_provider<'tcx>(
|
|||
// deny-by-default lint
|
||||
_ => {
|
||||
if let Some(p) = cid.promoted {
|
||||
let span = tcx.promoted_mir_of_opt_const_arg(def.to_global())[p].span;
|
||||
let span = tcx.promoted_mir_opt_const_arg(def.to_global())[p].span;
|
||||
if let err_inval!(ReferencedConstant) = err.error {
|
||||
Err(err.report_as_error(
|
||||
tcx.at(span),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue