rust/src/test/ui/hrtb
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
..
due-to-where-clause.nll.stderr reserve variable for empty root region 2020-04-16 11:03:41 +00:00
due-to-where-clause.rs Make lifetimes in constants live at the point of use 2019-10-02 20:39:01 +01:00
due-to-where-clause.stderr Make lifetimes in constants live at the point of use 2019-10-02 20:39:01 +01:00
hrtb-cache-issue-54302.nll.stderr Change compare mode to use -Zborrowck=mir 2019-05-12 18:46:43 +01:00
hrtb-cache-issue-54302.rs make evaluation track whether outlives relationships mattered 2019-01-02 17:35:05 -05:00
hrtb-cache-issue-54302.stderr Tweak unsatisfied HRTB errors 2019-09-16 15:34:33 -07:00
hrtb-conflate-regions.nll.stderr fix subtle bug in NLL type checker 2020-06-22 18:51:08 +00:00
hrtb-conflate-regions.rs Remove meaningless comments in src/test 2019-08-16 10:54:20 +01:00
hrtb-conflate-regions.stderr remove snapshot calls from "match" operations during select 2020-06-22 18:51:05 +00:00
hrtb-debruijn-in-receiver.rs Remove licenses 2018-12-25 21:08:33 -07:00
hrtb-debruijn-in-receiver.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
hrtb-exists-forall-fn.nll.stderr fix subtle bug in NLL type checker 2020-06-22 18:51:08 +00:00
hrtb-exists-forall-fn.rs address tmandry nits 2019-01-02 17:35:06 -05:00
hrtb-exists-forall-fn.stderr move leak-check to during coherence, candidate eval 2020-06-22 15:33:05 +00:00
hrtb-exists-forall-trait-contravariant.nll.stderr fix subtle bug in NLL type checker 2020-06-22 18:51:08 +00:00
hrtb-exists-forall-trait-contravariant.rs remove snapshot calls from "match" operations during select 2020-06-22 18:51:05 +00:00
hrtb-exists-forall-trait-contravariant.stderr remove snapshot calls from "match" operations during select 2020-06-22 18:51:05 +00:00
hrtb-exists-forall-trait-covariant.rs rewrite leak check to be based on universes 2020-06-22 14:33:44 +00:00
hrtb-exists-forall-trait-invariant.nll.stderr fix subtle bug in NLL type checker 2020-06-22 18:51:08 +00:00
hrtb-exists-forall-trait-invariant.rs remove snapshot calls from "match" operations during select 2020-06-22 18:51:05 +00:00
hrtb-exists-forall-trait-invariant.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
hrtb-higher-ranker-supertraits-transitive.rs tests: worse diagnostics, but basically same errors 2019-01-02 17:35:05 -05:00
hrtb-higher-ranker-supertraits-transitive.stderr Revert "modify leak-check to track only outgoing edges from placeholders" 2020-06-22 14:05:00 +00:00
hrtb-higher-ranker-supertraits.rs update test files to reflect new output 2019-02-21 11:32:17 -05:00
hrtb-higher-ranker-supertraits.stderr Add label to item source of bound obligation 2020-04-18 17:19:53 -07:00
hrtb-identity-fn-borrows.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
hrtb-identity-fn-borrows.stderr update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
hrtb-just-for-static.nll.stderr fix subtle bug in NLL type checker 2020-06-22 18:51:08 +00:00
hrtb-just-for-static.rs apply the new placeholder errors even with just one placeholder 2019-01-02 17:35:06 -05:00
hrtb-just-for-static.stderr remove snapshot calls from "match" operations during select 2020-06-22 18:51:05 +00:00
hrtb-perfect-forwarding.nll.stderr rustc: Add a warning count upon completion 2020-04-11 16:15:24 +02:00
hrtb-perfect-forwarding.polonius.stderr bless output of ui test hrtb/hrtb-perfect-forwarding.rs 2020-03-30 01:18:27 +02:00
hrtb-perfect-forwarding.rs Update tests 2020-01-09 21:23:12 +03:00
hrtb-perfect-forwarding.stderr Update tests 2020-01-09 21:23:12 +03:00
issue-30786.migrate.stderr move leak-check to during coherence, candidate eval 2020-06-22 15:33:05 +00:00
issue-30786.nll.stderr move leak-check to during coherence, candidate eval 2020-06-22 15:33:05 +00:00
issue-30786.rs move leak-check to during coherence, candidate eval 2020-06-22 15:33:05 +00:00
issue-46989.nll.stderr fix subtle bug in NLL type checker 2020-06-22 18:51:08 +00:00
issue-46989.rs remove snapshot calls from "match" operations during select 2020-06-22 18:51:05 +00:00
issue-46989.stderr remove snapshot calls from "match" operations during select 2020-06-22 18:51:05 +00:00
issue-57639.rs Update test stderr with results of enabling unused lints 2019-09-08 11:32:28 -04:00
issue-58451.rs On mismatched argument count point at arguments 2020-02-11 12:42:00 -08:00
issue-58451.stderr Use smaller def span for functions 2020-08-22 18:41:49 -04:00
issue-62203-hrtb-ice.rs Regression test. 2019-07-09 13:57:22 +02:00
issue-62203-hrtb-ice.stderr pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00