about summary refs log tree commit diff
path: root/compiler/rustc_driver_impl/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-03-09 16:21:17 +0100
committerGitHub <noreply@github.com>2024-03-09 16:21:17 +0100
commit9ac5cc86d7ffcedb37ce52c43a6baca6bdf24df0 (patch)
tree456b5549ea1e670d15e5399ed1955661ff5ed122 /compiler/rustc_driver_impl/src
parent577632d4d4b35d00a81b219144cd55e2f36d86e8 (diff)
parentfdff4d7682071b981a40dcc3575300a661a1f382 (diff)
downloadrust-9ac5cc86d7ffcedb37ce52c43a6baca6bdf24df0.tar.gz
rust-9ac5cc86d7ffcedb37ce52c43a6baca6bdf24df0.zip
Rollup merge of #122187 - bjorn3:merge_header_version_checks, r=petrochenkov
Move metadata header and version checks together

This will make it easier to report rustc versions for older metadata formats.

Split out of https://github.com/rust-lang/rust/pull/120855
Diffstat (limited to 'compiler/rustc_driver_impl/src')
-rw-r--r--compiler/rustc_driver_impl/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_driver_impl/src/lib.rs b/compiler/rustc_driver_impl/src/lib.rs
index e06d1d245b2..2802f44cda7 100644
--- a/compiler/rustc_driver_impl/src/lib.rs
+++ b/compiler/rustc_driver_impl/src/lib.rs
@@ -676,6 +676,7 @@ fn list_metadata(early_dcx: &EarlyDiagCtxt, sess: &Session, metadata_loader: &dy
                 metadata_loader,
                 &mut v,
                 &sess.opts.unstable_opts.ls,
+                sess.cfg_version,
             )
             .unwrap();
             safe_println!("{}", String::from_utf8(v).unwrap());