rust/tests/ui/missing_const_for_fn
Samuel Tardieu 43b7d87be1
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`.
2025-05-31 22:22:41 +02:00
..
auxiliary Fix stable feature names in tests 2023-10-23 13:03:11 -07:00
cant_be_const.rs fix: missing_const_for_fn FP on unstable const traits (#14294) 2025-03-20 20:00:15 +00:00
const_trait.fixed missing_const_for_fn: consider constness of instance 2025-05-31 22:22:41 +02:00
const_trait.rs missing_const_for_fn: consider constness of instance 2025-05-31 22:22:41 +02:00
const_trait.stderr missing_const_for_fn: consider constness of instance 2025-05-31 22:22:41 +02:00
could_be_const.fixed Add unsafe markers to accomodate edition 2024 rules 2025-04-15 20:33:01 +02:00
could_be_const.rs Add unsafe markers to accomodate edition 2024 rules 2025-04-15 20:33:01 +02:00
could_be_const.stderr Add unsafe markers to accomodate edition 2024 rules 2025-04-15 20:33:01 +02:00