rust/src/test/ui/union
Mazdak Farrokhzad d626f5bc66
Rollup merge of #70077 - Aaron1011:feature/new-def-path-ident, r=petrochenkov
Store idents for `DefPathData` into crate metadata

Previously, we threw away the `Span` associated with a definition's
identifier when we encoded crate metadata, causing us to lose location
and hygiene information.

We now store the identifier's `Span` in a side table, which gets encoded
into the crate metadata. When we decode items from the metadata, we
combine the name and span back into an `Ident`.

This improves the output of several tests, which previously had messages
suppressed due to dummy spans.

This is a prerequisite for #68686, since throwing away a `Span` means
that we lose hygiene information.
2020-03-24 07:13:35 +01:00
..
auxiliary
issue-41073.rs Fixes #41073, it is no longer an ICE 2019-10-11 10:43:54 +02:00
issue-41073.stderr Fixes #41073, it is no longer an ICE 2019-10-11 10:43:54 +02:00
union-align.rs
union-backcomp.rs
union-basic.rs
union-borrow-move-parent-sibling.rs Remove most uses of allow(unions_with_drop_fields) in tests 2019-10-11 10:43:54 +02:00
union-borrow-move-parent-sibling.stderr Change untagged_unions to not allow union fields with drop 2019-10-11 10:43:54 +02:00
union-const-codegen.rs
union-const-eval-field.rs
union-const-eval.rs
union-const-pat.rs Update tests 2020-01-09 21:23:12 +03:00
union-const-pat.stderr Update tests 2020-01-09 21:23:12 +03:00
union-copy.rs
union-copy.stderr
union-custom-drop.rs Ensure we do not treat all unions as not having any drop glue. 2019-10-11 10:43:55 +02:00
union-custom-drop.stderr Update ui stderr 2019-10-11 10:43:55 +02:00
union-derive-clone.rs Ignore tests on some platforms due to #53081 2020-03-23 02:04:43 -04:00
union-derive-clone.stderr Ignore tests on some platforms due to #53081 2020-03-23 02:04:43 -04:00
union-derive-eq.rs
union-derive-eq.stderr rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros. 2020-02-06 21:46:38 +02:00
union-derive-rpass.rs Remove most uses of allow(unions_with_drop_fields) in tests 2019-10-11 10:43:54 +02:00
union-derive.rs
union-derive.stderr
union-drop-assign.rs Remove most uses of allow(unions_with_drop_fields) in tests 2019-10-11 10:43:54 +02:00
union-drop.rs Remove most uses of allow(unions_with_drop_fields) in tests 2019-10-11 10:43:54 +02:00
union-empty.rs
union-empty.stderr
union-fields-1.rs Use "field is never read" instead of "field is never used" 2019-11-16 07:12:37 -05:00
union-fields-1.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
union-fields-2.rs
union-fields-2.stderr
union-generic-rpass.rs Preserve originally intended test semantics 2019-10-11 10:43:54 +02:00
union-generic.rs
union-generic.stderr
union-inherent-method.rs
union-lint-dead-code.rs Use "field is never read" instead of "field is never used" 2019-11-16 07:12:37 -05:00
union-lint-dead-code.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
union-macro.rs
union-manuallydrop-rpass.rs rpass tests are now part of ui tests 2019-10-11 10:43:54 +02:00
union-nodrop.rs Extend union-nodrop.rs test 2019-10-11 10:43:54 +02:00
union-nonrepresentable.rs
union-nonrepresentable.stderr
union-nonzero.rs
union-overwrite.rs Remove most uses of allow(unions_with_drop_fields) in tests 2019-10-11 10:43:54 +02:00
union-packed.rs
union-pat-refutability.rs
union-repr-c.rs
union-repr-c.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
union-sized-field.rs
union-sized-field.stderr Account for ?Sized type parameter bounds 2020-02-02 11:53:10 -08:00
union-suggest-field.rs Increase verbosity when suggesting subtle code changes 2020-03-22 10:36:45 -07:00
union-suggest-field.stderr Add span label to primary error span 2020-03-22 11:18:06 -07:00
union-trait-impl.rs
union-transmute.rs
union-unsafe.rs Change untagged_unions to not allow union fields with drop 2019-10-11 10:43:54 +02:00
union-unsafe.stderr Change untagged_unions to not allow union fields with drop 2019-10-11 10:43:54 +02:00
union-unsized.rs
union-unsized.stderr
union-with-drop-fields.rs Change untagged_unions to not allow union fields with drop 2019-10-11 10:43:54 +02:00
union-with-drop-fields.stderr Change untagged_unions to not allow union fields with drop 2019-10-11 10:43:54 +02:00