rust/src/test/ui/dropck
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
..
auxiliary Remove licenses 2018-12-25 21:08:33 -07:00
drop-on-non-struct.rs clarify that Drop can be implemented for enums and unions too 2020-01-03 17:57:24 -05:00
drop-on-non-struct.stderr clarify that Drop can be implemented for enums and unions too 2020-01-03 17:57:24 -05:00
drop-with-active-borrows-1.rs Remove licenses 2018-12-25 21:08:33 -07:00
drop-with-active-borrows-1.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
drop-with-active-borrows-2.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
drop-with-active-borrows-2.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
dropck-eyepatch-extern-crate.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
dropck-eyepatch-extern-crate.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
dropck-eyepatch-implies-unsafe-impl.rs Remove licenses 2018-12-25 21:08:33 -07:00
dropck-eyepatch-implies-unsafe-impl.stderr Update tests 2019-03-11 23:10:26 +03:00
dropck-eyepatch-reorder.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
dropck-eyepatch-reorder.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
dropck-eyepatch.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
dropck-eyepatch.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
dropck-union.rs Remove licenses 2018-12-25 21:08:33 -07:00
dropck-union.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
dropck_fn_type.rs Add regression tests 2019-12-05 12:28:29 -05:00
dropck_no_diverge_on_nonregular_1.rs Remove licenses 2018-12-25 21:08:33 -07:00
dropck_no_diverge_on_nonregular_1.stderr standardize limit comparisons with Limit type 2020-05-28 10:33:07 +01:00
dropck_no_diverge_on_nonregular_2.rs Remove licenses 2018-12-25 21:08:33 -07:00
dropck_no_diverge_on_nonregular_2.stderr standardize limit comparisons with Limit type 2020-05-28 10:33:07 +01:00
dropck_no_diverge_on_nonregular_3.rs pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
dropck_no_diverge_on_nonregular_3.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
dropck_trait_cycle_checked.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
dropck_trait_cycle_checked.stderr rustc_mir: use the right type for associated const literals. 2019-08-16 15:20:27 +03:00
dropck_traits.rs Add regression tests 2019-12-05 12:28:29 -05:00