rust/src/test/ui/impl-trait/issues
Dan Aloni 07e7823c01 pretty: trim paths of unique symbols
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.
2020-09-02 22:26:37 +03:00
..
infinite-impl-trait-issue-38064.rs Expand "recursive opaque type" diagnostic 2020-06-15 11:08:43 -07:00
infinite-impl-trait-issue-38064.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
issue-21659-show-relevant-trait-impls-3.rs Unify output of "variant not found" errors 2020-01-08 08:05:31 -08:00
issue-21659-show-relevant-trait-impls-3.stderr keep predicate order and tweak output 2020-02-28 11:37:59 -08:00
issue-42479.rs Use check-pass in ui tests where appropriate 2019-11-04 16:03:46 +01:00
issue-49376.rs Use check-pass in ui tests where appropriate 2019-11-04 16:03:46 +01:00
issue-52128.rs Use check-pass in ui tests where appropriate 2019-11-04 16:03:46 +01:00
issue-53457.rs Update test stderr with results of enabling unused lints 2019-09-08 11:32:28 -04:00
issue-55608-captures-empty-region.rs Use check-pass in ui tests where appropriate 2019-11-04 16:03:46 +01:00
issue-57464-unexpected-regions.rs Use check-pass in ui tests where appropriate 2019-11-04 16:03:46 +01:00
issue-57979-deeply-nested-impl-trait-in-assoc-proj.rs nested_impl_trait -> error 2019-11-06 11:10:37 +01:00
issue-57979-deeply-nested-impl-trait-in-assoc-proj.stderr nested_impl_trait -> error 2019-11-06 11:10:37 +01:00
issue-57979-impl-trait-in-path.rs nested_impl_trait -> error 2019-11-06 11:10:37 +01:00
issue-57979-impl-trait-in-path.stderr nested_impl_trait -> error 2019-11-06 11:10:37 +01:00
issue-57979-nested-impl-trait-in-assoc-proj.rs nested_impl_trait -> error 2019-11-06 11:10:37 +01:00
issue-57979-nested-impl-trait-in-assoc-proj.stderr nested_impl_trait -> error 2019-11-06 11:10:37 +01:00
universal-issue-48703.rs Improve error message for APIT with explicit generic parameters 2019-10-20 01:40:24 +01:00
universal-issue-48703.stderr Changed APIT with explicit generic args span to specific arg spans 2019-10-24 09:47:26 -05:00
universal-turbofish-in-method-issue-50950.rs Improve error message for APIT with explicit generic parameters 2019-10-20 01:40:24 +01:00
universal-turbofish-in-method-issue-50950.stderr Changed APIT with explicit generic args span to specific arg spans 2019-10-24 09:47:26 -05:00