about summary refs log tree commit diff
path: root/src/test/ui/consts/const-blocks
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-473/+0
2022-08-18Reword "Required because of the requirements on the impl of ..."Andy Wang-6/+6
2022-06-03Fully stabilize NLLJack Huey-10/+4
2022-04-28Update the diagnostic message to match the new spanOli Scherer-6/+6
2022-04-28Check that repeat expression elements are Copy (ignoring lifetimes) in ↵Oli Scherer-30/+57
typeck and that they are Copy (with proper lifetime checks) in borrowck
2022-04-04Mention implementers of unsatisfied traitEsteban Kuber-12/+6
When encountering an unsatisfied trait bound, if there are no other suggestions, mention all the types that *do* implement that trait: ``` error[E0277]: the trait bound `f32: Foo` is not satisfied --> $DIR/impl_wf.rs:22:6 | LL | impl Baz<f32> for f32 { } | ^^^^^^^^ the trait `Foo` is not implemented for `f32` | = help: the following other types implement trait `Foo`: Option<T> i32 str note: required by a bound in `Baz` --> $DIR/impl_wf.rs:18:31 | LL | trait Baz<U: ?Sized> where U: Foo { } | ^^^ required by this bound in `Baz` ``` Mention implementers of traits in `ImplObligation`s. Do not mention other `impl`s for closures, ranges and `?`.
2021-11-22`#![feature(inline_const)]` is no longer incompleteGary Guo-1/+1
2021-03-09improve `const fn` `RepeatVec` diagnosticsHenry Boisdequin-2/+2
2021-02-14update messageHenry Boisdequin-0/+1
2021-02-03added a suggestion to create a `const` item if the `fn` in the array repeat ↵Henry Boisdequin-0/+1
expression is a `const fn`
2021-01-30Remove const_in_array_rep_exprkadmin-0/+456