Rustup to rustc 1.49.0-nightly (dd7fc54eb 2020-10-15)

This commit is contained in:
bjorn3 2020-10-16 09:35:48 +02:00
parent 1c7c591cb8
commit 4971028775
9 changed files with 14 additions and 16 deletions

View File

@ -1 +1 @@
nightly-2020-10-15
nightly-2020-10-16

View File

@ -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,

View File

@ -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
}
}

View File

@ -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

View File

@ -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;

View File

@ -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> {

View File

@ -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

View File

@ -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(()) => {}

View File

@ -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))
@ -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;
}