Skip to content

Commit

Permalink
Rustup to rustc 1.49.0-nightly (dd7fc54 2020-10-15)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Oct 16, 2020
1 parent 1c7c591 commit 4971028
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion rust-toolchain
@@ -1 +1 @@
nightly-2020-10-15
nightly-2020-10-16
4 changes: 2 additions & 2 deletions src/archive.rs
Expand Up @@ -63,9 +63,9 @@ impl<'a> ArchiveBuilder<'a> for ArArchiveBuilder<'a> {
sess,
dst: output.to_path_buf(),
lib_search_paths: archive_search_paths(sess),
use_gnu_style_archive: sess.target.target.options.archive_format == "gnu",
use_gnu_style_archive: sess.target.options.archive_format == "gnu",
// FIXME fix builtin ranlib on macOS
no_builtin_ranlib: sess.target.target.options.is_like_osx,
no_builtin_ranlib: sess.target.options.is_like_osx,

src_archives,
entries,
Expand Down
2 changes: 1 addition & 1 deletion src/common.rs
Expand Up @@ -352,7 +352,7 @@ impl<'tcx, M: Module> layout::HasParamEnv<'tcx> for FunctionCx<'_, 'tcx, M> {

impl<'tcx, M: Module> HasTargetSpec for FunctionCx<'_, 'tcx, M> {
fn target_spec(&self) -> &Target {
&self.tcx.sess.target.target
&self.tcx.sess.target
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/debuginfo/mod.rs
Expand Up @@ -50,7 +50,7 @@ impl<'tcx> DebugContext<'tcx> {
// TODO: this should be configurable
// macOS doesn't seem to support DWARF > 3
// 5 version is required for md5 file hash
version: if tcx.sess.target.target.options.is_like_osx {
version: if tcx.sess.target.options.is_like_osx {
3
} else {
// FIXME change to version 5 once the gdb and lldb shipping with the latest debian
Expand Down
4 changes: 2 additions & 2 deletions src/driver/aot.rs
Expand Up @@ -320,8 +320,8 @@ fn codegen_global_asm(tcx: TyCtxt<'_>, cgu_name: &str, global_asm: &str) {
}

if cfg!(not(feature = "inline_asm"))
|| tcx.sess.target.target.options.is_like_osx
|| tcx.sess.target.target.options.is_like_windows
|| tcx.sess.target.options.is_like_osx
|| tcx.sess.target.options.is_like_windows
{
if global_asm.contains("__rust_probestack") {
return;
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Expand Up @@ -246,7 +246,7 @@ impl CodegenBackend for CraneliftCodegenBackend {
}

fn target_triple(sess: &Session) -> target_lexicon::Triple {
sess.target.target.llvm_target.parse().unwrap()
sess.target.llvm_target.parse().unwrap()
}

fn build_isa(sess: &Session, enable_pic: bool) -> Box<dyn isa::TargetIsa + 'static> {
Expand Down
2 changes: 1 addition & 1 deletion src/metadata.rs
Expand Up @@ -101,7 +101,7 @@ pub(crate) fn write_metadata<P: WriteMetadata>(
product.add_rustc_section(
rustc_middle::middle::exported_symbols::metadata_symbol_name(tcx),
compressed,
tcx.sess.target.target.options.is_like_osx,
tcx.sess.target.options.is_like_osx,
);

metadata
Expand Down
4 changes: 1 addition & 3 deletions src/pretty_clif.rs
Expand Up @@ -226,9 +226,7 @@ pub(crate) fn write_clif_file<'tcx>(
.expect("value location ranges")
});

let clif_output_dir = tcx
.output_filenames(LOCAL_CRATE)
.with_extension("clif");
let clif_output_dir = tcx.output_filenames(LOCAL_CRATE).with_extension("clif");

match std::fs::create_dir(&clif_output_dir) {
Ok(()) => {}
Expand Down
8 changes: 4 additions & 4 deletions src/toolchain.rs
Expand Up @@ -91,10 +91,10 @@ fn linker_and_flavor(sess: &Session) -> (PathBuf, LinkerFlavor) {
} else if stem == "link" || stem == "lld-link" {
LinkerFlavor::Msvc
} else if stem == "lld" || stem == "rust-lld" {
LinkerFlavor::Lld(sess.target.target.options.lld_flavor)
LinkerFlavor::Lld(sess.target.options.lld_flavor)
} else {
// fall back to the value in the target spec
sess.target.target.linker_flavor
sess.target.linker_flavor
};

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

if let Some(ret) = infer_from(
sess,
sess.target.target.options.linker.clone().map(PathBuf::from),
Some(sess.target.target.linker_flavor),
sess.target.options.linker.clone().map(PathBuf::from),
Some(sess.target.linker_flavor),
) {
return ret;
}
Expand Down

0 comments on commit 4971028

Please sign in to comment.