]> git.lizzy.rs Git - rust.git/commitdiff
Rustup to rustc 1.46.0-nightly (7750c3d46 2020-06-26)
authorbjorn3 <bjorn3@users.noreply.github.com>
Sat, 27 Jun 2020 09:29:39 +0000 (11:29 +0200)
committerbjorn3 <bjorn3@users.noreply.github.com>
Sat, 27 Jun 2020 09:29:39 +0000 (11:29 +0200)
build_sysroot/Cargo.lock
example/mini_core.rs
rust-toolchain
src/abi/mod.rs
src/base.rs
src/constant.rs
src/intrinsics/mod.rs

index 3183d7660c60e35c2778e9e4b5c67f641e8b8a36..d26dfd186b904ed1742a4b777a9748a6d1fc5ece 100644 (file)
@@ -51,9 +51,9 @@ dependencies = [
 
 [[package]]
 name = "cc"
-version = "1.0.54"
+version = "1.0.55"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7bbb73db36c1246e9034e307d0fba23f9a2e251faa47ade70c1bd252220c8311"
+checksum = "b1be3409f94d7bdceeb5f5fac551039d9b3f00e25da7a74fc4d33400a0d96368"
 
 [[package]]
 name = "cfg-if"
index ccca19ccf8cca5e4552dff4760217d547650a6b8..bc5610855aea2840cb2c771d88f25ec1fa5be37c 100644 (file)
@@ -388,6 +388,7 @@ pub enum Option<T> {
 #[lang = "fn_once"]
 #[rustc_paren_sugar]
 pub trait FnOnce<Args> {
+    #[lang = "fn_once_output"]
     type Output;
 
     extern "rust-call" fn call_once(self, args: Args) -> Self::Output;
index 3996824011ca4511b8365279d5242d9392108142..87ae49d6620b488c9706d62a042573e3ac82b8af 100644 (file)
@@ -1 +1 @@
-nightly-2020-06-23
+nightly-2020-06-27
index 4bf06a7490a7d8057c692a5e329207036022a6a6..a70314758d0b3a631ed7208156eb35488e2477d7 100644 (file)
@@ -377,9 +377,8 @@ enum ArgKind<'tcx> {
                     let local_decl = &fx.mir.local_decls[local];
                     //                       v this ! is important
                     let internally_mutable = !val.layout().ty.is_freeze(
-                        fx.tcx,
+                        fx.tcx.at(local_decl.source_info.span),
                         ParamEnv::reveal_all(),
-                        local_decl.source_info.span,
                     );
                     if local_decl.mutability == mir::Mutability::Not && !internally_mutable {
                         // We wont mutate this argument, so it is fine to borrow the backing storage
index a205a0525fbccb348c20ad75c1da4bc36dcc618a..8d2087b352831897b376811f3933f01eac027b0e 100644 (file)
@@ -219,7 +219,7 @@ fn codegen_fn_content(fx: &mut FunctionCx<'_, '_, impl Backend>) {
                 cleanup: _,
             } => {
                 if !fx.tcx.sess.overflow_checks() {
-                    if let mir::AssertKind::OverflowNeg = *msg {
+                    if let mir::AssertKind::OverflowNeg(_) = *msg {
                         let target = fx.get_block(*target);
                         fx.bcx.ins().jump(target, &[]);
                         continue;
index cb797b3a5fe1587470b82ddf48db6b99c5b5a139..d4ec9b68ff3129eca8e98674a91b06cf71fc1d24 100644 (file)
@@ -219,7 +219,7 @@ fn data_id_for_static(
     let is_mutable = if tcx.is_mutable_static(def_id) {
         true
     } else {
-        !ty.is_freeze(tcx, ParamEnv::reveal_all(), DUMMY_SP)
+        !ty.is_freeze(tcx.at(DUMMY_SP), ParamEnv::reveal_all())
     };
     let align = tcx
         .layout_of(ParamEnv::reveal_all().and(ty))
index 32447b7a92587cda5b80b038991522b5f1010039..c74ed2d306117788885eeb20b09441a430555d91 100644 (file)
@@ -816,6 +816,16 @@ fn swap(bcx: &mut FunctionBuilder<'_>, v: Value) -> Value {
             ret.write_cvalue(fx, val);
         };
 
+        ptr_guaranteed_eq, (c a, c b) {
+            let val = crate::num::trans_ptr_binop(fx, BinOp::Eq, a, b);
+            ret.write_cvalue(fx, val);
+        };
+
+        ptr_guaranteed_ne, (c a, c b) {
+            let val = crate::num::trans_ptr_binop(fx, BinOp::Ne, a, b);
+            ret.write_cvalue(fx, val);
+        };
+
         caller_location, () {
             let caller_location = fx.get_caller_location(span);
             ret.write_cvalue(fx, caller_location);