rust/tests/ui/debuginfo
Wesley Wiser eea8ce5be4 Emit an error if -Zdwarf-version=1 is requested
DWARF 1 is very different than DWARF 2+ (see the commentary in
https://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html#index-gdwarf)
and LLVM does not really seem to support DWARF 1 as Clang does not offer
a `-gdwarf-1` flag and `llc` will just generate DWARF 2 with the version
set to 1: https://godbolt.org/z/s85d87n3a.

Since this isn't actually supported (and it's not clear it would be
useful anyway), report that DWARF 1 is not supported if it is requested.

Also add a help message to the error saying which versions are supported.
2025-02-09 10:05:13 -06:00
..
debuginfo-box-with-large-allocator.rs
debuginfo-emit-llvm-ir-and-split-debuginfo.rs
debuginfo-inline-callsite-location-macro-1.rs
debuginfo-inline-callsite-location-macro-2.rs
debuginfo-type-name-layout-ice-94961-1.rs
debuginfo-type-name-layout-ice-94961-1.stderr
debuginfo-type-name-layout-ice-94961-2.rs
debuginfo-type-name-layout-ice-94961-2.stderr
debuginfo_with_uninhabitable_field_and_unsized.rs
dwarf-versions.one.stderr
dwarf-versions.rs
dwarf-versions.six.stderr
dwarf-versions.zero.stderr
issue-105386-debuginfo-ub.rs
late-bound-projection.rs
msvc-strip-debuginfo.rs
msvc-strip-symbols.rs
sroa-fragment-debuginfo.rs
windows_gnu_split_debuginfo_off.rs
windows_gnu_split_debuginfo_packed.aarch64_gl.stderr
windows_gnu_split_debuginfo_packed.i686_g.stderr
windows_gnu_split_debuginfo_packed.i686_gl.stderr
windows_gnu_split_debuginfo_packed.i686_uwp_g.stderr
windows_gnu_split_debuginfo_packed.rs
windows_gnu_split_debuginfo_packed.x86_64_g.stderr
windows_gnu_split_debuginfo_packed.x86_64_gl.stderr
windows_gnu_split_debuginfo_packed.x86_64_uwp_g.stderr
windows_gnu_split_debuginfo_unpacked.aarch64_gl.stderr
windows_gnu_split_debuginfo_unpacked.i686_g.stderr
windows_gnu_split_debuginfo_unpacked.i686_gl.stderr
windows_gnu_split_debuginfo_unpacked.i686_uwp_g.stderr
windows_gnu_split_debuginfo_unpacked.rs
windows_gnu_split_debuginfo_unpacked.x86_64_g.stderr
windows_gnu_split_debuginfo_unpacked.x86_64_gl.stderr
windows_gnu_split_debuginfo_unpacked.x86_64_uwp_g.stderr