diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2025-05-01 11:53:51 +0200 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2025-05-01 11:55:23 +0200 |
| commit | 36c6633b0fb422e35f78de6fb9f0df77d1f4ba23 (patch) | |
| tree | 26c102c31bea01a0c11bdc5a9b6c932b8b3a674f /compiler/rustc_const_eval/src/check_consts | |
| parent | 3e969d433d5c4f7001e14dba1c9a00a591937a4f (diff) | |
| download | rust-36c6633b0fb422e35f78de6fb9f0df77d1f4ba23.tar.gz rust-36c6633b0fb422e35f78de6fb9f0df77d1f4ba23.zip | |
Clean up "const" situation in format_args!().
Rather than marking the Argument::new_display etc. functions as non-const, this marks the Arguments::new_v1 functions as non-const.
Diffstat (limited to 'compiler/rustc_const_eval/src/check_consts')
| -rw-r--r-- | compiler/rustc_const_eval/src/check_consts/ops.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/check_consts/ops.rs b/compiler/rustc_const_eval/src/check_consts/ops.rs index 7756e51c4c5..1e5b98675c4 100644 --- a/compiler/rustc_const_eval/src/check_consts/ops.rs +++ b/compiler/rustc_const_eval/src/check_consts/ops.rs @@ -352,7 +352,7 @@ fn build_error_for_const_call<'tcx>( ); err } - _ if tcx.opt_parent(callee) == tcx.get_diagnostic_item(sym::ArgumentMethods) => { + _ if tcx.opt_parent(callee) == tcx.get_diagnostic_item(sym::FmtArgumentsNew) => { ccx.dcx().create_err(errors::NonConstFmtMacroCall { span, kind: ccx.const_kind(), |
