diff options
Diffstat (limited to '')
-rw-r--r-- | tests/ui/debuginfo/debuginfo-box-with-large-allocator.rs (renamed from src/test/ui/debuginfo/debuginfo-box-with-large-allocator.rs) | 0 | ||||
-rw-r--r-- | tests/ui/debuginfo/debuginfo-emit-llvm-ir-and-split-debuginfo.rs (renamed from src/test/ui/debuginfo/debuginfo-emit-llvm-ir-and-split-debuginfo.rs) | 0 | ||||
-rw-r--r-- | tests/ui/debuginfo/debuginfo-type-name-layout-ice-94961-1.rs (renamed from src/test/ui/debuginfo/debuginfo-type-name-layout-ice-94961-1.rs) | 0 | ||||
-rw-r--r-- | tests/ui/debuginfo/debuginfo-type-name-layout-ice-94961-1.stderr | 4 | ||||
-rw-r--r-- | tests/ui/debuginfo/debuginfo-type-name-layout-ice-94961-2.rs (renamed from src/test/ui/debuginfo/debuginfo-type-name-layout-ice-94961-2.rs) | 0 | ||||
-rw-r--r-- | tests/ui/debuginfo/debuginfo-type-name-layout-ice-94961-2.stderr | 4 | ||||
-rw-r--r-- | tests/ui/debuginfo/debuginfo_with_uninhabitable_field_and_unsized.rs (renamed from src/test/ui/debuginfo/debuginfo_with_uninhabitable_field_and_unsized.rs) | 0 | ||||
-rw-r--r-- | tests/ui/debuginfo/issue-105386-debuginfo-ub.rs | 20 | ||||
-rw-r--r-- | tests/ui/debuginfo/late-bound-projection.rs (renamed from src/test/ui/debuginfo/late-bound-projection.rs) | 0 |
9 files changed, 28 insertions, 0 deletions
diff --git a/src/test/ui/debuginfo/debuginfo-box-with-large-allocator.rs b/tests/ui/debuginfo/debuginfo-box-with-large-allocator.rs index 761539227..761539227 100644 --- a/src/test/ui/debuginfo/debuginfo-box-with-large-allocator.rs +++ b/tests/ui/debuginfo/debuginfo-box-with-large-allocator.rs diff --git a/src/test/ui/debuginfo/debuginfo-emit-llvm-ir-and-split-debuginfo.rs b/tests/ui/debuginfo/debuginfo-emit-llvm-ir-and-split-debuginfo.rs index ff764015d..ff764015d 100644 --- a/src/test/ui/debuginfo/debuginfo-emit-llvm-ir-and-split-debuginfo.rs +++ b/tests/ui/debuginfo/debuginfo-emit-llvm-ir-and-split-debuginfo.rs diff --git a/src/test/ui/debuginfo/debuginfo-type-name-layout-ice-94961-1.rs b/tests/ui/debuginfo/debuginfo-type-name-layout-ice-94961-1.rs index 78bda2848..78bda2848 100644 --- a/src/test/ui/debuginfo/debuginfo-type-name-layout-ice-94961-1.rs +++ b/tests/ui/debuginfo/debuginfo-type-name-layout-ice-94961-1.rs diff --git a/tests/ui/debuginfo/debuginfo-type-name-layout-ice-94961-1.stderr b/tests/ui/debuginfo/debuginfo-type-name-layout-ice-94961-1.stderr new file mode 100644 index 000000000..d5991bcf5 --- /dev/null +++ b/tests/ui/debuginfo/debuginfo-type-name-layout-ice-94961-1.stderr @@ -0,0 +1,4 @@ +error: values of the type `[u8; usize::MAX]` are too big for the current architecture + +error: aborting due to previous error + diff --git a/src/test/ui/debuginfo/debuginfo-type-name-layout-ice-94961-2.rs b/tests/ui/debuginfo/debuginfo-type-name-layout-ice-94961-2.rs index fdc088dc0..fdc088dc0 100644 --- a/src/test/ui/debuginfo/debuginfo-type-name-layout-ice-94961-2.rs +++ b/tests/ui/debuginfo/debuginfo-type-name-layout-ice-94961-2.rs diff --git a/tests/ui/debuginfo/debuginfo-type-name-layout-ice-94961-2.stderr b/tests/ui/debuginfo/debuginfo-type-name-layout-ice-94961-2.stderr new file mode 100644 index 000000000..d5991bcf5 --- /dev/null +++ b/tests/ui/debuginfo/debuginfo-type-name-layout-ice-94961-2.stderr @@ -0,0 +1,4 @@ +error: values of the type `[u8; usize::MAX]` are too big for the current architecture + +error: aborting due to previous error + diff --git a/src/test/ui/debuginfo/debuginfo_with_uninhabitable_field_and_unsized.rs b/tests/ui/debuginfo/debuginfo_with_uninhabitable_field_and_unsized.rs index b3f22ecf5..b3f22ecf5 100644 --- a/src/test/ui/debuginfo/debuginfo_with_uninhabitable_field_and_unsized.rs +++ b/tests/ui/debuginfo/debuginfo_with_uninhabitable_field_and_unsized.rs diff --git a/tests/ui/debuginfo/issue-105386-debuginfo-ub.rs b/tests/ui/debuginfo/issue-105386-debuginfo-ub.rs new file mode 100644 index 000000000..6c6eb5d4e --- /dev/null +++ b/tests/ui/debuginfo/issue-105386-debuginfo-ub.rs @@ -0,0 +1,20 @@ +// run-pass +// compile-flags: --edition 2021 -Copt-level=3 -Cdebuginfo=2 -Zmir-opt-level=3 + +fn main() { + TranslatorI.visit_pre(); +} + +impl TranslatorI { + fn visit_pre(self) { + Some(()) + .map(|_| self.flags()) + .unwrap_or_else(|| self.flags()); + } +} + +struct TranslatorI; + +impl TranslatorI { + fn flags(&self) {} +} diff --git a/src/test/ui/debuginfo/late-bound-projection.rs b/tests/ui/debuginfo/late-bound-projection.rs index 601807845..601807845 100644 --- a/src/test/ui/debuginfo/late-bound-projection.rs +++ b/tests/ui/debuginfo/late-bound-projection.rs |