about summary refs log tree commit diff
path: root/compiler/rustc_driver_impl
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-11-17 08:15:36 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-11-17 17:14:17 +1100
commitde91b6d24962a4662786bbf0fab71854b3976af1 (patch)
treec71b34df8f2bbf744202de76dc62e37dde38ff5a /compiler/rustc_driver_impl
parent3560122bfc2c2d1901a7bfe71882e40b6228f68c (diff)
downloadrust-de91b6d24962a4662786bbf0fab71854b3976af1.tar.gz
rust-de91b6d24962a4662786bbf0fab71854b3976af1.zip
Move `Session` out of `Linker`.
It can easily be passed in. And that removes the single clone of
`Compiler::session`, which means it no longer needs to be `Lrc`.
Diffstat (limited to 'compiler/rustc_driver_impl')
-rw-r--r--compiler/rustc_driver_impl/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_driver_impl/src/lib.rs b/compiler/rustc_driver_impl/src/lib.rs
index 4ad7b9f6cd1..7cded5507cb 100644
--- a/compiler/rustc_driver_impl/src/lib.rs
+++ b/compiler/rustc_driver_impl/src/lib.rs
@@ -482,7 +482,7 @@ fn run_compiler(
 
         if let Some(linker) = linker {
             let _timer = sess.timer("link");
-            linker.link()?
+            linker.link(sess)?
         }
 
         if sess.opts.unstable_opts.print_fuel.is_some() {