]> git.lizzy.rs Git - rust.git/commitdiff
Rustup to rustc 1.49.0-nightly (dd7fc54eb 2020-10-15)
authorbjorn3 <bjorn3@users.noreply.github.com>
Fri, 16 Oct 2020 07:35:48 +0000 (09:35 +0200)
committerbjorn3 <bjorn3@users.noreply.github.com>
Fri, 16 Oct 2020 07:35:48 +0000 (09:35 +0200)
rust-toolchain
src/archive.rs
src/common.rs
src/debuginfo/mod.rs
src/driver/aot.rs
src/lib.rs
src/metadata.rs
src/pretty_clif.rs
src/toolchain.rs

index ab4c3c84c9659e8245d12cac7c7a038556fc0656..d9ac9c12a101da897e39b8ca895e85260dfe63d1 100644 (file)
@@ -1 +1 @@
-nightly-2020-10-15
+nightly-2020-10-16
index fe2c2f100eec8b70bd6ee1b5ee9ba607716c2ac2..6382f8df3446b149218d0bef1f40f26614550ad4 100644 (file)
@@ -63,9 +63,9 @@ fn new(sess: &'a Session, output: &Path, input: Option<&Path>) -> Self {
             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,
index 0f22f900ca7ae789055b35fa5846e8046ccb53ed..13c62add41a3b520bee56d4daac980f0c05a0a97 100644 (file)
@@ -352,7 +352,7 @@ fn param_env(&self) -> ParamEnv<'tcx> {
 
 impl<'tcx, M: Module> HasTargetSpec for FunctionCx<'_, 'tcx, M> {
     fn target_spec(&self) -> &Target {
-        &self.tcx.sess.target.target
+        &self.tcx.sess.target
     }
 }
 
index f33aa6683a7268c4376fe9d7d28f9c887bdceac5..cbf9522b1d774752e8ca40910bdd8fe26d28ba97 100644 (file)
@@ -50,7 +50,7 @@ pub(crate) fn new(tcx: TyCtxt<'tcx>, isa: &dyn TargetIsa) -> Self {
             // 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
index e7595abe1786ef1af15dca0b790d4c806a09812f..ff0b994c9a9f43950302313b310aefea92ed8c9d 100644 (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;
index af359456e699b3d088fcdb763dd3d542f2fa3550..fd00a2e00a6a4457cce0ab897e64b04b6803fb80 100644 (file)
@@ -246,7 +246,7 @@ fn link(
 }
 
 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> {
index 7ba6ec6d7508490ae808a2e377226ca2fd9aae86..04369bf89fd2d81ac03171bd7ad4ede3ddeba434 100644 (file)
@@ -101,7 +101,7 @@ enum MetadataKind {
     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
index a37a832a23123b241eb0f2498ff43ae12efe1e43..26407e25bc6e882de4269c40f2dfc1ebe9e0b99e 100644 (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(()) => {}
index d1329d5de7e0c8fc1c1ec1afc1b83bcace793050..463afaf7cc50cd66c6b773f1bdc3b65f126f76bd 100644 (file)
@@ -91,10 +91,10 @@ fn infer_from(
                 } 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 infer_from(
 
     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;
     }