diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2023-04-20 19:53:16 +0200 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2023-04-24 16:16:14 +0200 |
| commit | 5cf3cbf3b7383f0d4b5ba6524856445a7d7aab2c (patch) | |
| tree | 2039c2670fab023f9c345ff325878134f7c1988a /compiler/rustc_const_eval/src | |
| parent | 64bcb326516ef7490db46de88b87a4c0990097fe (diff) | |
| download | rust-5cf3cbf3b7383f0d4b5ba6524856445a7d7aab2c.tar.gz rust-5cf3cbf3b7383f0d4b5ba6524856445a7d7aab2c.zip | |
Remove "V1" from ArgumentsV1 and FlagsV1.
Diffstat (limited to 'compiler/rustc_const_eval/src')
| -rw-r--r-- | compiler/rustc_const_eval/src/transform/check_consts/ops.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/transform/check_consts/ops.rs b/compiler/rustc_const_eval/src/transform/check_consts/ops.rs index 6c11edb742c..4fb66854571 100644 --- a/compiler/rustc_const_eval/src/transform/check_consts/ops.rs +++ b/compiler/rustc_const_eval/src/transform/check_consts/ops.rs @@ -296,7 +296,7 @@ impl<'tcx> NonConstOp<'tcx> for FnCallNonConst<'tcx> { diag_trait(&mut err, self_ty, tcx.require_lang_item(LangItem::Deref, Some(span))); err } - _ if tcx.opt_parent(callee) == tcx.get_diagnostic_item(sym::ArgumentV1Methods) => ccx + _ if tcx.opt_parent(callee) == tcx.get_diagnostic_item(sym::ArgumentMethods) => ccx .tcx .sess .create_err(errors::NonConstFmtMacroCall { span, kind: ccx.const_kind() }), |
