about summary refs log tree commit diff
path: root/tests/ui/consts/fn_trait_refs.stderr
AgeCommit message (Collapse)AuthorLines
2025-09-12Constify Eq, Ord, PartialOrdEvgenii Zheltonozhskii-22/+0
2025-07-08Constify `Fn*` traitsOli Scherer-172/+3
2025-06-29Fix the span of trait bound modifier `[const]`León Orell Valerian Liehr-30/+30
2025-06-26Change const trait bound syntax from ~const to [const]Oli Scherer-75/+75
2025-06-23Make `PartialEq` a `const_trait`Oli Scherer-14/+4
2025-01-08Implement const Destruct in old solverMichael Goulet-81/+12
2024-12-10Tweak wording of non-const traits used as const boundsEsteban Küber-15/+50
Use verbose suggestions and add additional labels/notes. Add more test cases for stable/nightly and feature enabled/disabled.
2024-12-07Mention type parameter in more cases and don't suggest ~const bound already ↵Esteban Küber-12/+0
there
2024-12-07reword trait bound suggestion message to include the boundsEsteban Küber-3/+3
2024-12-01Adjust HostEffect error spans correctly to point at argsMichael Goulet-10/+65
2024-11-25Constify Drop and DestructMichael Goulet-102/+24
2024-11-22Check drop is trivial before checking ty needs dropMichael Goulet-84/+34
2024-11-22Deduplicate checking drop terminatorMichael Goulet-5/+5
2024-11-22Gate const drop behind const_destruct feature, and fix ↵Michael Goulet-2/+52
const_precise_live_drops post-drop-elaboration check
2024-10-26Pass constness with span into lower_poly_trait_refMichael Goulet-46/+46
2024-10-26Deny calls to non-`#[const_trait]` methods in MIR constckDeadbeef-20/+0
2024-10-24Implement const effect predicate in new solverMichael Goulet-1/+73
2024-09-15also stabilize const_refs_to_cellRalf Jung-23/+23
2024-09-15stabilize const_mut_refsRalf Jung-24/+24
2024-06-21bless testsDeadbeef-1/+31
2024-05-29Use parenthetical notation for `Fn` traitsEsteban Küber-6/+6
Always use the `Fn(T) -> R` format when printing closure traits instead of `Fn<(T,), Output = R>`. Fix #67100: ``` error[E0277]: expected a `Fn()` closure, found `F` --> file.rs:6:13 | 6 | call_fn(f) | ------- ^ expected an `Fn()` closure, found `F` | | | required by a bound introduced by this call | = note: wrap the `F` in a closure with no arguments: `|| { /* code */ }` note: required by a bound in `call_fn` --> file.rs:1:15 | 1 | fn call_fn<F: Fn() -> ()>(f: &F) { | ^^^^^^^^^^ required by this bound in `call_fn` help: consider further restricting this bound | 5 | fn call_any<F: std::any::Any + Fn()>(f: &F) { | ++++++ ```
2024-03-18Provide structured suggestion for `#![feature(foo)]`Esteban Küber-5/+20
``` error: `S2<'_>` is forbidden as the type of a const generic parameter --> $DIR/lifetime-in-const-param.rs:5:23 | LL | struct S<'a, const N: S2>(&'a ()); | ^^ | = note: the only supported types are integers, `bool` and `char` help: add `#![feature(adt_const_params)]` to the crate attributes to enable more complex and user defined types | LL + #![feature(adt_const_params)] | ``` Fix #55941.
2024-02-19Always evaluate free constants and statics, even if previous errors occurredOli Scherer-18/+18
2024-02-08Continue to borrowck even if there were previous errorsOli Scherer-2/+96
2023-12-27Introduce `const Trait` (always-const trait bounds)León Orell Valerian Liehr-10/+10
2023-12-10fix testsDeadbeef-7/+1
2023-10-05Add a note to duplicate diagnosticsAlex Macleod-0/+10
2023-09-20bless the known-bug testsDeadbeef-25/+1
2023-09-20Enable effects for libcoreDeadbeef-1/+85
2023-04-16fix library and rustdoc testsDeadbeef-0/+15