rust/src/test/compile-fail
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 Abort when catch_unwind catches a foreign exception 2020-08-27 21:08:30 +01:00
consts Bless tests 2020-04-29 12:18:30 -07:00
specialization bless all 2020-06-16 11:56:54 +02:00
asm-src-loc-codegen-units.rs Remove some ignore-stage1 annotations. 2020-07-02 22:29:38 -07:00
asm-src-loc.rs Update tests to use llvm_asm! 2020-03-26 15:49:22 +00:00
coerce-unsafe-closure-to-unsafe-fn-ptr.rs Allow closure to unsafe fn coercion 2019-04-01 00:00:43 +09:00
coerce-unsafe-to-closure.rs Remove licenses 2018-12-25 21:08:33 -07:00
crateresolve1.rs Remove licenses 2018-12-25 21:08:33 -07:00
empty-extern-arg.rs rustc_metadata: Make crate loading fully speculative 2020-07-18 14:06:04 +04:00
invalid-link-args.rs Rename and fix nolink-with-link-args test 2018-12-31 13:51:40 +02:00
issue-10755.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-23595-1.rs Fix rebase and sort assoc type list for deterministic output 2019-12-25 11:12:56 -08:00
issue-43733-2.rs pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
issue-44415.rs Get rid of special const intrinsic query in favour of const_eval 2019-09-17 16:31:55 +02:00
issue-46209-private-enum-variant-reexport.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-52443.rs Update tests 2020-06-28 10:08:12 -07:00
meta-expected-error-wrong-rev.rs Remove licenses 2018-12-25 21:08:33 -07:00
must_use-in-stdlib-traits.rs pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
not-utf8.bin Moved problematic tests on Windows back to compile-fail. 2018-08-14 11:12:11 +02:00
not-utf8.rs Remove licenses 2018-12-25 21:08:33 -07:00
panic-handler-missing.rs Remove licenses 2018-12-25 21:08:33 -07:00
panic-handler-twice.rs Diagnostics should not end with a full stop 2020-01-12 15:37:50 +00:00
runtime-depend-on-needs-runtime.rs Address review comments and CI failures 2018-12-27 15:51:37 +03:00
runtime-depend-on-needs-runtime.stderr Address review comments and CI failures 2018-12-27 15:51:37 +03:00
two-panic-runtimes.rs rustc: Fix mixing crates with different share_generics 2019-09-23 12:29:51 -07:00
unwind-tables-panic-required.rs Add Option to Force Unwind Tables 2020-05-04 12:08:35 +01:00
unwind-tables-target-required.rs Add Option to Force Unwind Tables 2020-05-04 12:08:35 +01:00
want-abort-got-unwind.rs Remove licenses 2018-12-25 21:08:33 -07:00
want-abort-got-unwind2.rs Remove licenses 2018-12-25 21:08:33 -07:00
weak-lang-item.rs Upgrade Emscripten targets to use upstream LLVM backend 2019-10-16 17:06:48 -07:00