diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2025-05-08 18:23:49 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2025-05-31 22:22:41 +0200 |
| commit | 43b7d87be1da241ba25d04b1c53508d88fb2eb25 (patch) | |
| tree | 8425aa356f58a7baa3464464b0c4c70d96463cdc /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | e04158caed74f678d9562b5505d94e0bfb864a5f (diff) | |
| download | rust-43b7d87be1da241ba25d04b1c53508d88fb2eb25.tar.gz rust-43b7d87be1da241ba25d04b1c53508d88fb2eb25.zip | |
`missing_const_for_fn`: consider constness of instance
When determining when a function or method can be called from a `const` context, the determination must be made on the instance, not on the declaration. This makes a difference, for example, with `const_trait` traits whose implementations may or may not be `const`.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
