]> git.lizzy.rs Git - rust.git/commit
Remove `Session::sysroot()`.
authorNicholas Nethercote <nnethercote@mozilla.com>
Thu, 22 Nov 2018 04:49:48 +0000 (15:49 +1100)
committerNicholas Nethercote <nnethercote@mozilla.com>
Tue, 11 Dec 2018 23:36:15 +0000 (10:36 +1100)
commit2640da7d13a1051dddcf93c06f9ae90508fce6fb
treed0cec63297afc90780020789f4fb654cf21d47ab
parent0238bcc60d943878244ef7221d338f13a35e2a45
Remove `Session::sysroot()`.

Instead of maybe storing its own sysroot and maybe deferring to the one
in `Session::opts`, just clone the latter when necessary so one is
always directly available. This removes the need for the getter.
src/librustc/session/mod.rs
src/librustc_codegen_llvm/back/link.rs
src/librustc_codegen_ssa/back/linker.rs
src/librustc_driver/lib.rs
src/librustc_metadata/locator.rs