about summary refs log tree commit diff
path: root/tests/ui/traits/const-traits/const_derives
AgeCommit message (Collapse)AuthorLines
2025-09-12Constify Eq, Ord, PartialOrdEvgenii Zheltonozhskii-13/+1
2025-07-18Rollup merge of #143925 - oli-obk:slice-const-partialeq, r=fee1-deadMatthias Krüger-0/+1
Make slice comparisons const This needed a fix for `derive_const`, too, as it wasn't usable in libcore anymore as trait impls need const stability attributes. I think we can't use the same system as normal trait impls while `const_trait_impl` is still unstable. r? ```@fee1-dead``` cc rust-lang/rust#143800
2025-07-17Make `derive_const` usable within libcore againOli Scherer-0/+1
Also make it *only* usable on nightly
2025-07-17parse `const trait Trait`Deadbeef-5/+5
2025-07-11fix PartialEq const feature name and const_cmp tracking issueRalf Jung-1/+1
2025-07-07Make `Default` const and add some `const Default` implsEsteban Küber-77/+34
Full list of `impl const Default` types: - () - bool - char - Cell - std::ascii::Char - usize - u8 - u16 - u32 - u64 - u128 - i8 - i16 - i32 - i64 - i128 - f16 - f32 - f64 - f128 - std::marker::PhantomData<T> - Option<T> - std::iter::Empty<T> - std::ptr::Alignment - &[T] - &mut [T] - &str - &mut str - String - Vec<T>
2025-06-26Change const trait bound syntax from ~const to [const]Oli Scherer-1/+1
2025-06-23Make `PartialEq` a `const_trait`Oli Scherer-88/+8
2025-03-14Do not suggest using `-Zmacro-backtrace` for builtin macrosEsteban Küber-11/+0
For macros that are implemented on the compiler, we do *not* mention the `-Zmacro-backtrace` flag. This includes `derive`s and standard macros.
2024-12-23Note def descr in NonConstFunctionCallMichael Goulet-4/+4
2024-12-10Tweak wording of non-const traits used as const boundsEsteban Küber-7/+10
Use verbose suggestions and add additional labels/notes. Add more test cases for stable/nightly and feature enabled/disabled.
2024-11-04Rollup merge of #132544 - dianne:unstable-library-feature-backticks, ↵Matthias Krüger-1/+1
r=compiler-errors Use backticks instead of single quotes for library feature names in diagnostics This PR changes the text of library feature errors for using unstable or body-unstable items. Displaying library feature names in backticks is consistent with other diagnostics (e.g. those from `rustc_passes`) and with the `reason`s on unstable attributes in the library. Additionally, this simplifies diagnostics when supporting multiple unstable attributes on items (see #131824) since `DiagSymbolList` also displays symbols using backticks.
2024-11-03use backticks instead of single quotes when reporting "use of unstable ↵dianne-1/+1
library feature" This is consistent with all other diagnostics I could find containing features and enables the use of `DiagSymbolList` for generalizing diagnostics for unstable library features to multiple features.
2024-11-03Rename the FIXMEs, remove a few that dont matter anymoreMichael Goulet-1/+1
2024-11-03Yeet effects featureMichael Goulet-35/+8
2024-10-28Hack out effects support for old solverMichael Goulet-18/+3
2024-10-26Pass constness with span into lower_poly_trait_refMichael Goulet-6/+0
2024-10-26Deny calls to non-`#[const_trait]` methods in MIR constckDeadbeef-14/+84
2024-10-22Move testsMichael Goulet-0/+224