Skip to content

Commit 4971028

Browse files
committed
Rustup to rustc 1.49.0-nightly (dd7fc54 2020-10-15)
1 parent 1c7c591 commit 4971028

File tree

9 files changed

+14
-16
lines changed

9 files changed

+14
-16
lines changed

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nightly-2020-10-15
1+
nightly-2020-10-16

src/archive.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ impl<'a> ArchiveBuilder<'a> for ArArchiveBuilder<'a> {
6363
sess,
6464
dst: output.to_path_buf(),
6565
lib_search_paths: archive_search_paths(sess),
66-
use_gnu_style_archive: sess.target.target.options.archive_format == "gnu",
66+
use_gnu_style_archive: sess.target.options.archive_format == "gnu",
6767
// FIXME fix builtin ranlib on macOS
68-
no_builtin_ranlib: sess.target.target.options.is_like_osx,
68+
no_builtin_ranlib: sess.target.options.is_like_osx,
6969

7070
src_archives,
7171
entries,

src/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ impl<'tcx, M: Module> layout::HasParamEnv<'tcx> for FunctionCx<'_, 'tcx, M> {
352352

353353
impl<'tcx, M: Module> HasTargetSpec for FunctionCx<'_, 'tcx, M> {
354354
fn target_spec(&self) -> &Target {
355-
&self.tcx.sess.target.target
355+
&self.tcx.sess.target
356356
}
357357
}
358358

src/debuginfo/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ impl<'tcx> DebugContext<'tcx> {
5050
// TODO: this should be configurable
5151
// macOS doesn't seem to support DWARF > 3
5252
// 5 version is required for md5 file hash
53-
version: if tcx.sess.target.target.options.is_like_osx {
53+
version: if tcx.sess.target.options.is_like_osx {
5454
3
5555
} else {
5656
// FIXME change to version 5 once the gdb and lldb shipping with the latest debian

src/driver/aot.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,8 @@ fn codegen_global_asm(tcx: TyCtxt<'_>, cgu_name: &str, global_asm: &str) {
320320
}
321321

322322
if cfg!(not(feature = "inline_asm"))
323-
|| tcx.sess.target.target.options.is_like_osx
324-
|| tcx.sess.target.target.options.is_like_windows
323+
|| tcx.sess.target.options.is_like_osx
324+
|| tcx.sess.target.options.is_like_windows
325325
{
326326
if global_asm.contains("__rust_probestack") {
327327
return;

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ impl CodegenBackend for CraneliftCodegenBackend {
246246
}
247247

248248
fn target_triple(sess: &Session) -> target_lexicon::Triple {
249-
sess.target.target.llvm_target.parse().unwrap()
249+
sess.target.llvm_target.parse().unwrap()
250250
}
251251

252252
fn build_isa(sess: &Session, enable_pic: bool) -> Box<dyn isa::TargetIsa + 'static> {

src/metadata.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ pub(crate) fn write_metadata<P: WriteMetadata>(
101101
product.add_rustc_section(
102102
rustc_middle::middle::exported_symbols::metadata_symbol_name(tcx),
103103
compressed,
104-
tcx.sess.target.target.options.is_like_osx,
104+
tcx.sess.target.options.is_like_osx,
105105
);
106106

107107
metadata

src/pretty_clif.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,7 @@ pub(crate) fn write_clif_file<'tcx>(
226226
.expect("value location ranges")
227227
});
228228

229-
let clif_output_dir = tcx
230-
.output_filenames(LOCAL_CRATE)
231-
.with_extension("clif");
229+
let clif_output_dir = tcx.output_filenames(LOCAL_CRATE).with_extension("clif");
232230

233231
match std::fs::create_dir(&clif_output_dir) {
234232
Ok(()) => {}

src/toolchain.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ fn linker_and_flavor(sess: &Session) -> (PathBuf, LinkerFlavor) {
9191
} else if stem == "link" || stem == "lld-link" {
9292
LinkerFlavor::Msvc
9393
} else if stem == "lld" || stem == "rust-lld" {
94-
LinkerFlavor::Lld(sess.target.target.options.lld_flavor)
94+
LinkerFlavor::Lld(sess.target.options.lld_flavor)
9595
} else {
9696
// fall back to the value in the target spec
97-
sess.target.target.linker_flavor
97+
sess.target.linker_flavor
9898
};
9999

100100
Some((linker, flavor))
@@ -115,8 +115,8 @@ fn linker_and_flavor(sess: &Session) -> (PathBuf, LinkerFlavor) {
115115

116116
if let Some(ret) = infer_from(
117117
sess,
118-
sess.target.target.options.linker.clone().map(PathBuf::from),
119-
Some(sess.target.target.linker_flavor),
118+
sess.target.options.linker.clone().map(PathBuf::from),
119+
Some(sess.target.linker_flavor),
120120
) {
121121
return ret;
122122
}

0 commit comments

Comments
 (0)