about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2024-04-23 17:25:17 +0200
committerGitHub <noreply@github.com>2024-04-23 17:25:17 +0200
commit5ff1fa992139f152195d0ff263882e5fe458daaa (patch)
tree34248dbecc2d4f8699196d33de6f5bef8fd03066 /src
parent6e423e1651e807ee3a07aa2f188fefadcb464071 (diff)
parent481515500a7588146dfc6a2e21be3ba3a2df4668 (diff)
downloadrust-5ff1fa992139f152195d0ff263882e5fe458daaa.tar.gz
rust-5ff1fa992139f152195d0ff263882e5fe458daaa.zip
Rollup merge of #124285 - ferrocene:unstable-L-rust-builtin, r=petrochenkov
Mark `@RUSTC_BUILTIN` search path usage as unstable

Follow up to https://github.com/rust-lang/rust/pull/121843

r? `@petrochenkov`
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/config.rs11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/librustdoc/config.rs b/src/librustdoc/config.rs
index f078ad2fb53..465f969435d 100644
--- a/src/librustdoc/config.rs
+++ b/src/librustdoc/config.rs
@@ -635,7 +635,16 @@ impl Options {
         let libs = matches
             .opt_strs("L")
             .iter()
-            .map(|s| SearchPath::from_cli_opt(&sysroot, &target, early_dcx, s))
+            .map(|s| {
+                SearchPath::from_cli_opt(
+                    &sysroot,
+                    &target,
+                    early_dcx,
+                    s,
+                    #[allow(rustc::bad_opt_access)] // we have no `Session` here
+                    unstable_opts.unstable_options,
+                )
+            })
             .collect();
 
         let show_coverage = matches.opt_present("show-coverage");