about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/src/errors.rs
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2025-01-10 03:55:20 -0500
committerGitHub <noreply@github.com>2025-01-10 03:55:20 -0500
commit9e24b6ba8ec976b1eeb3b10aa08af853ecae8ef0 (patch)
treeefc39beecf4a21851457b27b5c03e4aa91734a10 /compiler/rustc_codegen_gcc/src/errors.rs
parent34fa27b0bd4d689051ff0dd01bc5374ef6f4b813 (diff)
parent924000d70ebb5f0de849447fd21127e34f8a8ba1 (diff)
downloadrust-9e24b6ba8ec976b1eeb3b10aa08af853ecae8ef0.tar.gz
rust-9e24b6ba8ec976b1eeb3b10aa08af853ecae8ef0.zip
Rollup merge of #134732 - compiler-errors:unify-conditional-const-error-reporting, r=RalfJung
Unify conditional-const error reporting with non-const error reporting

This PR unifies the error reporting between `ConditionallyConstCall` and `FnCallNonConst` so that the former will refer to syntactical sugar like operators by their sugared name, rather than calling all operators "methods". We achieve this by making the "non-const" part of the error message generic over the "non" part so we can plug in "conditionally" instead.

This should ensure that as we constify traits in the standard library, we don't regress error messages for things like `==`.

r? fmease or reassign
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/errors.rs')
0 files changed, 0 insertions, 0 deletions