diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2025-01-10 03:55:20 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-10 03:55:20 -0500 |
| commit | 9e24b6ba8ec976b1eeb3b10aa08af853ecae8ef0 (patch) | |
| tree | efc39beecf4a21851457b27b5c03e4aa91734a10 /compiler/rustc_codegen_gcc | |
| parent | 34fa27b0bd4d689051ff0dd01bc5374ef6f4b813 (diff) | |
| parent | 924000d70ebb5f0de849447fd21127e34f8a8ba1 (diff) | |
| download | rust-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')
0 files changed, 0 insertions, 0 deletions
