| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2023-01-11 | Move /src/test to /tests | Albert Larsan | -31/+0 | |
| 2022-09-16 | Bless ui tests after typeck code change | Deadbeef | -15/+1 | |
| 2022-09-16 | bless tests | Deadbeef | -3/+17 | |
| 2022-04-04 | Refer to the TraitRef::identity in the message to be clearer | Esteban Kuber | -1/+1 | |
| 2022-04-04 | Dedup logic and improve output for other types that impl trait | Esteban Kuber | -1/+1 | |
| 2022-04-04 | Fix list length | Esteban Kuber | -0/+4 | |
| 2022-04-04 | Mention implementers of unsatisfied trait | Esteban Kuber | -0/+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-07-29 | Update tests | Jonas Schievink | -2/+5 | |
| 2020-09-02 | pretty: trim paths of unique symbols | Dan Aloni | -1/+1 | |
| If a symbol name can only be imported from one place for a type, and as long as it was not glob-imported anywhere in the current crate, we can trim its printed path and print only the name. This has wide implications on error messages with types, for example, shortening `std::vec::Vec` to just `Vec`, as long as there is no other `Vec` importable anywhere. This adds a new '-Z trim-diagnostic-paths=false' option to control this feature. On the good path, with no diagnosis printed, we should try to avoid issuing this query, so we need to prevent trimmed_def_paths query on several cases. This change also relies on a previous commit that differentiates between `Debug` and `Display` on various rustc types, where the latter is trimmed and presented to the user and the former is not. | ||||
| 2019-11-13 | Bless const tests with improved diagnostics | Dylan MacKenzie | -2/+9 | |
| 2019-03-04 | Add an explicit test for issue #50582 | Josh Stone | -0/+11 | |
| This code no longer ICEs, and @yodaldevoid found that it was fixed by commit fe5710a. While that added a similar test, we can explicitly test this reproducer too. Closes #50582. | ||||
