]> git.lizzy.rs Git - rust.git/commitdiff
Updated new UI tests to pass with NLL compare-mode
authorDavid Wood <david@davidtw.co>
Wed, 8 Aug 2018 16:01:04 +0000 (18:01 +0200)
committerDavid Wood <david@davidtw.co>
Tue, 14 Aug 2018 08:38:00 +0000 (10:38 +0200)
These tests need a review to ensure that those marked as
ignore-compare-mode-nll should be ignored and that this isn't a bug in NLL.

98 files changed:
src/test/ui/compile-fail-migration/associated-types-subtyping-1.rs
src/test/ui/compile-fail-migration/associated-types-subtyping-1.stderr
src/test/ui/compile-fail-migration/borrow-tuple-fields.rs
src/test/ui/compile-fail-migration/borrow-tuple-fields.stderr
src/test/ui/compile-fail-migration/borrowck/borrowck-borrow-mut-object-twice.rs
src/test/ui/compile-fail-migration/borrowck/borrowck-borrow-mut-object-twice.stderr
src/test/ui/compile-fail-migration/borrowck/borrowck-closures-two-mut.rs
src/test/ui/compile-fail-migration/borrowck/borrowck-closures-two-mut.stderr
src/test/ui/compile-fail-migration/borrowck/borrowck-closures-unique-imm.rs
src/test/ui/compile-fail-migration/borrowck/borrowck-closures-unique-imm.stderr
src/test/ui/compile-fail-migration/borrowck/borrowck-closures-unique.rs
src/test/ui/compile-fail-migration/borrowck/borrowck-closures-unique.stderr
src/test/ui/compile-fail-migration/borrowck/borrowck-issue-2657-1.rs
src/test/ui/compile-fail-migration/borrowck/borrowck-issue-2657-1.stderr
src/test/ui/compile-fail-migration/borrowck/borrowck-lend-flow-if.rs
src/test/ui/compile-fail-migration/borrowck/borrowck-lend-flow-if.stderr
src/test/ui/compile-fail-migration/borrowck/borrowck-lend-flow.rs
src/test/ui/compile-fail-migration/borrowck/borrowck-lend-flow.stderr
src/test/ui/compile-fail-migration/borrowck/borrowck-loan-blocks-move-cc.rs
src/test/ui/compile-fail-migration/borrowck/borrowck-loan-blocks-move-cc.stderr
src/test/ui/compile-fail-migration/borrowck/borrowck-loan-blocks-move.rs
src/test/ui/compile-fail-migration/borrowck/borrowck-loan-blocks-move.stderr
src/test/ui/compile-fail-migration/borrowck/borrowck-move-from-subpath-of-borrowed-path.rs
src/test/ui/compile-fail-migration/borrowck/borrowck-move-from-subpath-of-borrowed-path.stderr
src/test/ui/compile-fail-migration/borrowck/borrowck-move-mut-base-ptr.rs
src/test/ui/compile-fail-migration/borrowck/borrowck-move-mut-base-ptr.stderr
src/test/ui/compile-fail-migration/borrowck/borrowck-mut-borrow-of-mut-base-ptr.rs
src/test/ui/compile-fail-migration/borrowck/borrowck-mut-borrow-of-mut-base-ptr.stderr
src/test/ui/compile-fail-migration/borrowck/borrowck-object-lifetime.rs
src/test/ui/compile-fail-migration/borrowck/borrowck-object-lifetime.stderr
src/test/ui/compile-fail-migration/borrowck/borrowck-overloaded-index-autoderef.rs
src/test/ui/compile-fail-migration/borrowck/borrowck-overloaded-index-autoderef.stderr
src/test/ui/compile-fail-migration/borrowck/borrowck-swap-mut-base-ptr.rs
src/test/ui/compile-fail-migration/borrowck/borrowck-swap-mut-base-ptr.stderr
src/test/ui/compile-fail-migration/borrowck/borrowck-union-borrow-nested.rs
src/test/ui/compile-fail-migration/borrowck/borrowck-union-borrow-nested.stderr
src/test/ui/compile-fail-migration/borrowck/borrowck-uniq-via-lend.rs
src/test/ui/compile-fail-migration/borrowck/borrowck-uniq-via-lend.stderr
src/test/ui/compile-fail-migration/cleanup-rvalue-scopes-cf.rs
src/test/ui/compile-fail-migration/cleanup-rvalue-scopes-cf.stderr
src/test/ui/compile-fail-migration/closure_promotion.rs
src/test/ui/compile-fail-migration/closure_promotion.stderr
src/test/ui/compile-fail-migration/hashmap-lifetimes.rs
src/test/ui/compile-fail-migration/hashmap-lifetimes.stderr
src/test/ui/compile-fail-migration/issue-28848.rs
src/test/ui/compile-fail-migration/issue-28848.stderr
src/test/ui/compile-fail-migration/meta-expected-error-wrong-rev.a.stderr
src/test/ui/compile-fail-migration/meta-expected-error-wrong-rev.rs
src/test/ui/compile-fail-migration/method-self-arg-2.rs
src/test/ui/compile-fail-migration/method-self-arg-2.stderr
src/test/ui/compile-fail-migration/mut-cant-alias.rs
src/test/ui/compile-fail-migration/mut-cant-alias.stderr
src/test/ui/compile-fail-migration/regions-assoc-type-in-supertrait-outlives-container.rs
src/test/ui/compile-fail-migration/regions-assoc-type-in-supertrait-outlives-container.stderr
src/test/ui/compile-fail-migration/regions-bounded-by-trait-requiring-static.rs
src/test/ui/compile-fail-migration/regions-bounded-by-trait-requiring-static.stderr
src/test/ui/compile-fail-migration/regions-bounded-method-type-parameters.rs
src/test/ui/compile-fail-migration/regions-bounded-method-type-parameters.stderr
src/test/ui/compile-fail-migration/regions-free-region-ordering-caller.rs
src/test/ui/compile-fail-migration/regions-free-region-ordering-caller.stderr
src/test/ui/compile-fail-migration/regions-implied-bounds-projection-gap-1.rs
src/test/ui/compile-fail-migration/regions-implied-bounds-projection-gap-1.stderr
src/test/ui/compile-fail-migration/regions-infer-contravariance-due-to-decl.rs
src/test/ui/compile-fail-migration/regions-infer-contravariance-due-to-decl.stderr
src/test/ui/compile-fail-migration/regions-infer-covariance-due-to-decl.rs
src/test/ui/compile-fail-migration/regions-infer-covariance-due-to-decl.stderr
src/test/ui/compile-fail-migration/regions-outlives-projection-container-wc.rs
src/test/ui/compile-fail-migration/regions-outlives-projection-container-wc.stderr
src/test/ui/compile-fail-migration/regions-outlives-projection-container.rs
src/test/ui/compile-fail-migration/regions-outlives-projection-container.stderr
src/test/ui/compile-fail-migration/regions-variance-contravariant-use-covariant-in-second-position.rs
src/test/ui/compile-fail-migration/regions-variance-contravariant-use-covariant-in-second-position.stderr
src/test/ui/compile-fail-migration/regions-variance-contravariant-use-covariant.rs
src/test/ui/compile-fail-migration/regions-variance-contravariant-use-covariant.stderr
src/test/ui/compile-fail-migration/regions-variance-covariant-use-contravariant.rs
src/test/ui/compile-fail-migration/regions-variance-covariant-use-contravariant.stderr
src/test/ui/compile-fail-migration/regions-variance-invariant-use-contravariant.rs
src/test/ui/compile-fail-migration/regions-variance-invariant-use-contravariant.stderr
src/test/ui/compile-fail-migration/regions-variance-invariant-use-covariant.rs
src/test/ui/compile-fail-migration/regions-variance-invariant-use-covariant.stderr
src/test/ui/compile-fail-migration/unboxed-closure-region.rs
src/test/ui/compile-fail-migration/unboxed-closure-region.stderr
src/test/ui/compile-fail-migration/unboxed-closures-borrow-conflict.rs
src/test/ui/compile-fail-migration/unboxed-closures-borrow-conflict.stderr
src/test/ui/compile-fail-migration/variance-cell-is-invariant.rs
src/test/ui/compile-fail-migration/variance-cell-is-invariant.stderr
src/test/ui/compile-fail-migration/variance-contravariant-arg-trait-match.rs
src/test/ui/compile-fail-migration/variance-contravariant-arg-trait-match.stderr
src/test/ui/compile-fail-migration/variance-contravariant-self-trait-match.rs
src/test/ui/compile-fail-migration/variance-contravariant-self-trait-match.stderr
src/test/ui/compile-fail-migration/variance-covariant-arg-trait-match.rs
src/test/ui/compile-fail-migration/variance-covariant-arg-trait-match.stderr
src/test/ui/compile-fail-migration/variance-covariant-self-trait-match.rs
src/test/ui/compile-fail-migration/variance-covariant-self-trait-match.stderr
src/test/ui/compile-fail-migration/variance-invariant-arg-trait-match.rs
src/test/ui/compile-fail-migration/variance-invariant-arg-trait-match.stderr
src/test/ui/compile-fail-migration/variance-invariant-self-trait-match.rs
src/test/ui/compile-fail-migration/variance-invariant-self-trait-match.stderr

index 64dcdd39e7c2c59e30c2aedccd7113844132f336..1c4b684265c797483580db15cc33f1db4c94acd2 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 #![allow(unused_variables)]
 
 trait Trait<'a> {
index d9e8d66e6a032b644722f8275ad7eaa26250fcb7..58925a0e63f037c1fc6c7b5cbeba75635c673d33 100644 (file)
@@ -1,5 +1,5 @@
 error[E0623]: lifetime mismatch
-  --> $DIR/associated-types-subtyping-1.rs:34:37
+  --> $DIR/associated-types-subtyping-1.rs:36:37
    |
 LL | fn method2<'a,'b,T>(x: &'a T, y: &'b T)
    |                        -----     ----- these two types are declared with different lifetimes...
@@ -8,7 +8,7 @@ LL |     let _: <T as Trait<'b>>::Type = a; //~ ERROR E0623
    |                                     ^ ...but data from `y` flows into `x` here
 
 error[E0623]: lifetime mismatch
-  --> $DIR/associated-types-subtyping-1.rs:43:37
+  --> $DIR/associated-types-subtyping-1.rs:45:37
    |
 LL | fn method3<'a,'b,T>(x: &'a T, y: &'b T)
    |                        -----     ----- these two types are declared with different lifetimes...
index f3417fafe90375ed9996d8b917d90137e123a375..4337f569fa4c0084cb3031a999f9ba9745495fad 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 #![feature(box_syntax)]
 
 struct Foo(Box<isize>, isize);
index 71dc21123e974425a3aa5babea0254f5df8faa8c..d010d1d989c9b92cefac8ae0640b2252fad79874 100644 (file)
@@ -1,5 +1,5 @@
 error[E0505]: cannot move out of `x` because it is borrowed
-  --> $DIR/borrow-tuple-fields.rs:20:9
+  --> $DIR/borrow-tuple-fields.rs:22:9
    |
 LL |     let r = &x.0;
    |              --- borrow of `x.0` occurs here
@@ -7,7 +7,7 @@ LL |     let y = x; //~ ERROR cannot move out of `x` because it is borrowed
    |         ^ move out of `x` occurs here
 
 error[E0502]: cannot borrow `x.0` as mutable because it is also borrowed as immutable
-  --> $DIR/borrow-tuple-fields.rs:24:18
+  --> $DIR/borrow-tuple-fields.rs:26:18
    |
 LL |     let a = &x.0;
    |              --- immutable borrow occurs here
@@ -18,7 +18,7 @@ LL | }
    | - immutable borrow ends here
 
 error[E0499]: cannot borrow `x.0` as mutable more than once at a time
-  --> $DIR/borrow-tuple-fields.rs:28:18
+  --> $DIR/borrow-tuple-fields.rs:30:18
    |
 LL |     let a = &mut x.0;
    |                  --- first mutable borrow occurs here
@@ -29,7 +29,7 @@ LL | }
    | - first borrow ends here
 
 error[E0505]: cannot move out of `x` because it is borrowed
-  --> $DIR/borrow-tuple-fields.rs:33:9
+  --> $DIR/borrow-tuple-fields.rs:35:9
    |
 LL |     let r = &x.0;
    |              --- borrow of `x.0` occurs here
@@ -37,7 +37,7 @@ LL |     let y = x; //~ ERROR cannot move out of `x` because it is borrowed
    |         ^ move out of `x` occurs here
 
 error[E0502]: cannot borrow `x.0` as mutable because it is also borrowed as immutable
-  --> $DIR/borrow-tuple-fields.rs:37:18
+  --> $DIR/borrow-tuple-fields.rs:39:18
    |
 LL |     let a = &x.0;
    |              --- immutable borrow occurs here
@@ -48,7 +48,7 @@ LL | }
    | - immutable borrow ends here
 
 error[E0499]: cannot borrow `x.0` as mutable more than once at a time
-  --> $DIR/borrow-tuple-fields.rs:41:18
+  --> $DIR/borrow-tuple-fields.rs:43:18
    |
 LL |     let a = &mut x.0;
    |                  --- first mutable borrow occurs here
index 7175194355b0aa3b47cc273a1e3a39c831b8205a..910851a1030c51ae945032ae80e04eacf81ae6bc 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 // Check that `&mut` objects cannot be borrowed twice, just like
 // other `&mut` pointers.
 
index 1812420e444ab99a533991b78138cbb0958e5ed8..e0ea39a2491764ee9cae22d259040bb69457a26c 100644 (file)
@@ -1,5 +1,5 @@
 error[E0499]: cannot borrow `*x` as mutable more than once at a time
-  --> $DIR/borrowck-borrow-mut-object-twice.rs:21:5
+  --> $DIR/borrowck-borrow-mut-object-twice.rs:23:5
    |
 LL |     let _y = x.f1();
    |              - first mutable borrow occurs here
index 29546abe0bb20bb66b40b284ea23a686840e61af..de8cac38dcf54a900e13a9a54e51ee6ef93b493f 100644 (file)
@@ -12,6 +12,8 @@
 // access to the variable, whether that mutable access be used
 // for direct assignment or for taking mutable ref. Issue #6801.
 
+// ignore-compare-mode-nll
+
 #![feature(box_syntax)]
 
 fn to_fn_mut<F: FnMut()>(f: F) -> F { f }
index 3b4e050ee259188b85461936443359d64372ce17..f314bb95c3123b6516897430dfa992c98eda22d5 100644 (file)
@@ -1,5 +1,5 @@
 error[E0499]: cannot borrow `x` as mutable more than once at a time
-  --> $DIR/borrowck-closures-two-mut.rs:22:24
+  --> $DIR/borrowck-closures-two-mut.rs:24:24
    |
 LL |     let c1 = to_fn_mut(|| x = 4);
    |                        -- - previous borrow occurs due to use of `x` in closure
@@ -13,7 +13,7 @@ LL | }
    | - first borrow ends here
 
 error[E0499]: cannot borrow `x` as mutable more than once at a time
-  --> $DIR/borrowck-closures-two-mut.rs:32:24
+  --> $DIR/borrowck-closures-two-mut.rs:34:24
    |
 LL |     let c1 = to_fn_mut(|| set(&mut x));
    |                        --          - previous borrow occurs due to use of `x` in closure
@@ -27,7 +27,7 @@ LL | }
    | - first borrow ends here
 
 error[E0499]: cannot borrow `x` as mutable more than once at a time
-  --> $DIR/borrowck-closures-two-mut.rs:38:24
+  --> $DIR/borrowck-closures-two-mut.rs:40:24
    |
 LL |     let c1 = to_fn_mut(|| x = 5);
    |                        -- - previous borrow occurs due to use of `x` in closure
@@ -41,7 +41,7 @@ LL | }
    | - first borrow ends here
 
 error[E0499]: cannot borrow `x` as mutable more than once at a time
-  --> $DIR/borrowck-closures-two-mut.rs:44:24
+  --> $DIR/borrowck-closures-two-mut.rs:46:24
    |
 LL |     let c1 = to_fn_mut(|| x = 5);
    |                        -- - previous borrow occurs due to use of `x` in closure
@@ -56,7 +56,7 @@ LL | }
    | - first borrow ends here
 
 error[E0499]: cannot borrow `x` as mutable more than once at a time
-  --> $DIR/borrowck-closures-two-mut.rs:55:24
+  --> $DIR/borrowck-closures-two-mut.rs:57:24
    |
 LL |     let c1 = to_fn_mut(|| set(&mut *x.f));
    |                        --           - previous borrow occurs due to use of `x` in closure
index 247a4fe89a501b4e2cfd189638ffcad9fd1c13b5..9fefbe2bdc690dce47705c4ce3b84f7bcea5cafe 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 struct Foo {
     x: isize,
 }
index 31b1a1bb0e8bec1a2cb8a1d830faf9f274141f10..a166b6292e65489c5e2533c3b7adb3ec197e5fac 100644 (file)
@@ -1,5 +1,5 @@
 error[E0502]: cannot borrow `this.x` as mutable because it is also borrowed as immutable
-  --> $DIR/borrowck-closures-unique-imm.rs:21:14
+  --> $DIR/borrowck-closures-unique-imm.rs:23:14
    |
 LL |         let p = &this.x;
    |                  ------ immutable borrow occurs here
index 1b22dc4d2c6af585c7a7f3b608efb650a475b24d..9a74f188a545f825f653bd03e3dc3afb4402a17c 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 // Tests that a closure which requires mutable access to the referent
 // of an `&mut` requires a "unique" borrow -- that is, the variable to
 // be borrowed (here, `x`) will not be borrowed *mutably*, but
index 8f213c16cffeca34f8a4ada053082b688e7e3c44..27163bde34f6ab0a375a87919256371e8f3f771a 100644 (file)
@@ -1,5 +1,5 @@
 error[E0500]: closure requires unique access to `x` but it is already borrowed
-  --> $DIR/borrowck-closures-unique.rs:32:14
+  --> $DIR/borrowck-closures-unique.rs:34:14
    |
 LL |     let c1 = || get(x);
    |              --     - previous borrow occurs due to use of `x` in closure
@@ -13,7 +13,7 @@ LL | }
    | - borrow ends here
 
 error[E0500]: closure requires unique access to `x` but it is already borrowed
-  --> $DIR/borrowck-closures-unique.rs:37:14
+  --> $DIR/borrowck-closures-unique.rs:39:14
    |
 LL |     let c1 = || get(x);
    |              --     - previous borrow occurs due to use of `x` in closure
@@ -27,7 +27,7 @@ LL | }
    | - borrow ends here
 
 error[E0524]: two closures require unique access to `x` at the same time
-  --> $DIR/borrowck-closures-unique.rs:42:14
+  --> $DIR/borrowck-closures-unique.rs:44:14
    |
 LL |     let c1 = || set(x);
    |              --     - previous borrow occurs due to use of `x` in closure
@@ -41,7 +41,7 @@ LL | }
    | - borrow from first closure ends here
 
 error[E0595]: closure cannot assign to immutable argument `x`
-  --> $DIR/borrowck-closures-unique.rs:46:14
+  --> $DIR/borrowck-closures-unique.rs:48:14
    |
 LL |     let c1 = || x = panic!(); //~ ERROR closure cannot assign to immutable argument
    |              ^^ cannot borrow mutably
index 0e1712137d34e27c554732cd7aa48e869ef3ee16..500de9865dcce322bb3d13b94b3eb26685a10f72 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 #![feature(box_syntax)]
 
 fn main() {
index 3f184f5f964ac83d390c7e4d7f093738480b0bee..532f0e6fb009208daa1a4227b876247885b3467b 100644 (file)
@@ -1,5 +1,5 @@
 error[E0505]: cannot move out of `x` because it is borrowed
-  --> $DIR/borrowck-issue-2657-1.rs:17:13
+  --> $DIR/borrowck-issue-2657-1.rs:19:13
    |
 LL |       Some(ref _y) => {
    |            ------ borrow of `x.0` occurs here
index a6ce36a5507f2a79096553bdb795cbdf16a4fb5f..3df174b4fb83aeb42651f8df30e1296e15504271 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 // Note: the borrowck analysis is currently flow-insensitive.
 // Therefore, some of these errors are marked as spurious and could be
 // corrected by a simple change to the analysis.  The others are
index 91fe19ab76912ad8256b3ac740e9e936f128306c..c53c4e46d4f252db3e6687c759857b465d6cb7de 100644 (file)
@@ -1,5 +1,5 @@
 error[E0502]: cannot borrow `*v` as mutable because `v` is also borrowed as immutable
-  --> $DIR/borrowck-lend-flow-if.rs:38:21
+  --> $DIR/borrowck-lend-flow-if.rs:40:21
    |
 LL |         _w = &v;
    |               - immutable borrow occurs here
index 1ed779cfaac7153a450d5fab13c4733720877205..27a21f0e40a6625c428927fe0c4176752035c28d 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 // Note: the borrowck analysis is currently flow-insensitive.
 // Therefore, some of these errors are marked as spurious and could be
 // corrected by a simple change to the analysis.  The others are
index 1fedf0a0f6258c69501b0e97563d0737d6046c32..abb83c8dfc8836e2f9ceee61e832bac860d2fad3 100644 (file)
@@ -1,5 +1,5 @@
 error[E0502]: cannot borrow `*v` as mutable because `v` is also borrowed as immutable
-  --> $DIR/borrowck-lend-flow.rs:34:21
+  --> $DIR/borrowck-lend-flow.rs:36:21
    |
 LL |     let _w = &v;
    |               - immutable borrow occurs here
index 57b584a89599f0a88512b043d7ec66dc34047eff..e57575d8f03d4ffe3af49931bfc9cd496a08cd82 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 #![feature(box_syntax)]
 
 use std::thread;
index 20ab864a53b5769820c0ad9585af058effcbf09a..a1d633e54f02143090505590ebad67d1a92add9f 100644 (file)
@@ -1,5 +1,5 @@
 error[E0504]: cannot move `v` into closure because it is borrowed
-  --> $DIR/borrowck-loan-blocks-move-cc.rs:23:27
+  --> $DIR/borrowck-loan-blocks-move-cc.rs:25:27
    |
 LL |     let _w = &v;
    |               - borrow of `v` occurs here
@@ -8,7 +8,7 @@ LL |         println!("v={}", *v);
    |                           ^ move into closure occurs here
 
 error[E0504]: cannot move `v` into closure because it is borrowed
-  --> $DIR/borrowck-loan-blocks-move-cc.rs:32:27
+  --> $DIR/borrowck-loan-blocks-move-cc.rs:34:27
    |
 LL |     let _w = &v;
    |               - borrow of `v` occurs here
index f3f18807314f9638a77502d488bb48d0702e6f40..dc83dc731b35329390ec799d324d05245ae7bf17 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 #![feature(box_syntax)]
 
 fn take(_v: Box<isize>) {
index 6bd6bb268af07cd0cbc026fbf8d6f71dbbb8e46c..fb5657f6928a4d7564801ff1269ef139a0ec2ed8 100644 (file)
@@ -1,5 +1,5 @@
 error[E0505]: cannot move out of `v` because it is borrowed
-  --> $DIR/borrowck-loan-blocks-move.rs:19:10
+  --> $DIR/borrowck-loan-blocks-move.rs:21:10
    |
 LL |     let _w = &v;
    |               - borrow of `v` occurs here
index c02c6a7151428fbedb7e79b8e3b2ff89cde5308d..8423b4cc9b0b25f3c2ecbd7fbb58e8e23ce82bf9 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 // verify that an error is raised when trying to move out of a
 // borrowed path.
 
index 1bdc8a852325301d107682f5cee8579187064bc0..e5557eca6de03a8275ea5dc9e6a418850eb560be 100644 (file)
@@ -1,5 +1,5 @@
 error[E0505]: cannot move out of `*a` because it is borrowed
-  --> $DIR/borrowck-move-from-subpath-of-borrowed-path.rs:20:9
+  --> $DIR/borrowck-move-from-subpath-of-borrowed-path.rs:22:9
    |
 LL |     let b = &a;
    |              - borrow of `a` occurs here
index 2fb89e6364bb1e8b24a8607cd18d46f9329fe502..d18f962397416a16a4d5695fdd1922ec4b3f0319 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 // Test that attempt to move `&mut` pointer while pointee is borrowed
 // yields an error.
 //
index 0cbcda4d2cdb739c8ea8b332a442fd10711627bb..33ccd148f5b1d7db896564f6aec88d782e0a7c1b 100644 (file)
@@ -1,5 +1,5 @@
 error[E0505]: cannot move out of `t0` because it is borrowed
-  --> $DIR/borrowck-move-mut-base-ptr.rs:18:9
+  --> $DIR/borrowck-move-mut-base-ptr.rs:20:9
    |
 LL |     let p: &isize = &*t0; // Freezes `*t0`
    |                      --- borrow of `*t0` occurs here
index bdeb7ea69bdfb84d416420bc26f3474e373d6c90..5b73ca8e49a44644bf6b378d5300be637db86824 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 // Test that attempt to mutably borrow `&mut` pointer while pointee is
 // borrowed yields an error.
 //
index 28b740b23f91d9cc1d92c793d61d5e7e32e0a35e..e7d41dd46028de8ba2aef520dfd682d45875278d 100644 (file)
@@ -1,5 +1,5 @@
 error[E0502]: cannot borrow `t0` as mutable because `*t0` is also borrowed as immutable
-  --> $DIR/borrowck-mut-borrow-of-mut-base-ptr.rs:19:23
+  --> $DIR/borrowck-mut-borrow-of-mut-base-ptr.rs:21:23
    |
 LL |     let p: &isize = &*t0;     // Freezes `*t0`
    |                      --- immutable borrow occurs here
@@ -10,7 +10,7 @@ LL | }
    | - immutable borrow ends here
 
 error[E0499]: cannot borrow `t0` as mutable more than once at a time
-  --> $DIR/borrowck-mut-borrow-of-mut-base-ptr.rs:26:23
+  --> $DIR/borrowck-mut-borrow-of-mut-base-ptr.rs:28:23
    |
 LL |     let p: &mut isize = &mut *t0; // Claims `*t0`
    |                              --- first mutable borrow occurs here
index 021b3f38e0019d9d57441d93c24b89d011c6582d..23148304d6c4e9547723460580822e0b8b380daa 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 // Test that borrows that occur due to calls to object methods
 // properly "claim" the object path.
 
index e7ae92d822e605c5547f946b59dfe5ec8f09877f..5680007579548c0b6452928bca56b821652af903 100644 (file)
@@ -1,5 +1,5 @@
 error[E0502]: cannot borrow `*x` as mutable because it is also borrowed as immutable
-  --> $DIR/borrowck-object-lifetime.rs:26:14
+  --> $DIR/borrowck-object-lifetime.rs:28:14
    |
 LL |     let _y = x.borrowed();
    |              - immutable borrow occurs here
@@ -9,7 +9,7 @@ LL | }
    | - immutable borrow ends here
 
 error[E0502]: cannot borrow `x` as mutable because `*x` is also borrowed as immutable
-  --> $DIR/borrowck-object-lifetime.rs:31:19
+  --> $DIR/borrowck-object-lifetime.rs:33:19
    |
 LL |     let _y = x.borrowed();
    |              - immutable borrow occurs here
index b726c46d5d533c8681b8a4ad65bf94a9057f921a..51d154c0f3abc5c61fba4ef37dfc495c28a8219d 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 // Test that we still see borrowck errors of various kinds when using
 // indexing and autoderef in combination.
 
index c17eed1322b1faad5010e5e9f2fa81267212599c..d269ce5ec34c3a89e843df7697310ff0b7377a41 100644 (file)
@@ -1,5 +1,5 @@
 error[E0502]: cannot borrow `*f` as immutable because it is also borrowed as mutable
-  --> $DIR/borrowck-overloaded-index-autoderef.rs:45:15
+  --> $DIR/borrowck-overloaded-index-autoderef.rs:47:15
    |
 LL |     let _p = &mut f[&s];
    |                   - mutable borrow occurs here
@@ -9,7 +9,7 @@ LL | }
    | - mutable borrow ends here
 
 error[E0499]: cannot borrow `*f` as mutable more than once at a time
-  --> $DIR/borrowck-overloaded-index-autoderef.rs:50:19
+  --> $DIR/borrowck-overloaded-index-autoderef.rs:52:19
    |
 LL |     let _p = &mut f[&s];
    |                   - first mutable borrow occurs here
@@ -19,7 +19,7 @@ LL | }
    | - first borrow ends here
 
 error[E0499]: cannot borrow `f.foo` as mutable more than once at a time
-  --> $DIR/borrowck-overloaded-index-autoderef.rs:59:19
+  --> $DIR/borrowck-overloaded-index-autoderef.rs:61:19
    |
 LL |     let _p = &mut f.foo[&s];
    |                   ----- first mutable borrow occurs here
@@ -29,7 +29,7 @@ LL | }
    | - first borrow ends here
 
 error[E0502]: cannot borrow `f.foo` as mutable because it is also borrowed as immutable
-  --> $DIR/borrowck-overloaded-index-autoderef.rs:69:19
+  --> $DIR/borrowck-overloaded-index-autoderef.rs:71:19
    |
 LL |     let _p = &f.foo[&s];
    |               ----- immutable borrow occurs here
@@ -39,7 +39,7 @@ LL | }
    | - immutable borrow ends here
 
 error[E0506]: cannot assign to `f.foo` because it is borrowed
-  --> $DIR/borrowck-overloaded-index-autoderef.rs:74:5
+  --> $DIR/borrowck-overloaded-index-autoderef.rs:76:5
    |
 LL |     let _p = &f.foo[&s];
    |               ----- borrow of `f.foo` occurs here
@@ -47,7 +47,7 @@ LL |     f.foo = g; //~ ERROR cannot assign
    |     ^^^^^^^^^ assignment to borrowed `f.foo` occurs here
 
 error[E0506]: cannot assign to `*f` because it is borrowed
-  --> $DIR/borrowck-overloaded-index-autoderef.rs:79:5
+  --> $DIR/borrowck-overloaded-index-autoderef.rs:81:5
    |
 LL |     let _p = &f.foo[&s];
    |               ----- borrow of `*f` occurs here
@@ -55,7 +55,7 @@ LL |     *f = g; //~ ERROR cannot assign
    |     ^^^^^^ assignment to borrowed `*f` occurs here
 
 error[E0506]: cannot assign to `f.foo` because it is borrowed
-  --> $DIR/borrowck-overloaded-index-autoderef.rs:84:5
+  --> $DIR/borrowck-overloaded-index-autoderef.rs:86:5
    |
 LL |     let _p = &mut f.foo[&s];
    |                   ----- borrow of `f.foo` occurs here
@@ -63,7 +63,7 @@ LL |     f.foo = g; //~ ERROR cannot assign
    |     ^^^^^^^^^ assignment to borrowed `f.foo` occurs here
 
 error[E0506]: cannot assign to `*f` because it is borrowed
-  --> $DIR/borrowck-overloaded-index-autoderef.rs:89:5
+  --> $DIR/borrowck-overloaded-index-autoderef.rs:91:5
    |
 LL |     let _p = &mut f.foo[&s];
    |                   ----- borrow of `*f` occurs here
index 552fcec8e2858e921fd6a8842b3981667986e5a0..cf9fab9f0a183ac1fb12c2a9135d105745ddfee0 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 // Test that attempt to swap `&mut` pointer while pointee is borrowed
 // yields an error.
 //
index 1e42f9b63d7241d553062f0bd45eb1c5b1b598e7..f9e4a580ccc6c094f4f2794183fb99184e07129c 100644 (file)
@@ -1,5 +1,5 @@
 error[E0502]: cannot borrow `t0` as mutable because `*t0` is also borrowed as immutable
-  --> $DIR/borrowck-swap-mut-base-ptr.rs:21:15
+  --> $DIR/borrowck-swap-mut-base-ptr.rs:23:15
    |
 LL |     let p: &isize = &*t0;     // Freezes `*t0`
    |                      --- immutable borrow occurs here
index 6298c87453ca6cdf66a242a175772a8c33367cb8..f1c4e4c1869c5089d965b2f7754c52b8e8fab179 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 #[derive(Clone, Copy)]
 struct S {
     a: u8,
index 4f25a0f742a6aad814677b756dce33924b1bafdc..4e7392a42281488949b9ea4a33a7d3b5abb7b0b9 100644 (file)
@@ -1,5 +1,5 @@
 error[E0503]: cannot use `u.c` because it was mutably borrowed
-  --> $DIR/borrowck-union-borrow-nested.rs:33:17
+  --> $DIR/borrowck-union-borrow-nested.rs:35:17
    |
 LL |             let ra = &mut u.s.a;
    |                           ----- borrow of `u.s.a` occurs here
index f36dc0ca43fa25beaa03a6ac3bd03bbbcbaa1f07..5a4e27768afc3bbf7a1a15df7b13bef4816815cb 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 #![feature(box_syntax)]
 
 fn borrow(_v: &isize) {}
index 9131cad12750e35ba5dbe45003907f2db9c4a5ba..b731a6192d1322c8be2dcc1d6a186d6c10553e27 100644 (file)
@@ -1,5 +1,5 @@
 error[E0502]: cannot borrow `*v` as immutable because `v` is also borrowed as mutable
-  --> $DIR/borrowck-uniq-via-lend.rs:43:13
+  --> $DIR/borrowck-uniq-via-lend.rs:45:13
    |
 LL |     let _w = &mut v;
    |                   - mutable borrow occurs here
@@ -9,7 +9,7 @@ LL | }
    | - mutable borrow ends here
 
 error[E0502]: cannot borrow `*v` as immutable because `v` is also borrowed as mutable
-  --> $DIR/borrowck-uniq-via-lend.rs:58:13
+  --> $DIR/borrowck-uniq-via-lend.rs:60:13
    |
 LL |     _x = &mut v;
    |               - mutable borrow occurs here
index dcbb25ba5a95f629e64253039afe0c62f1b18b73..0f83bf80d2453f55cb248587d6f34ed89d4d090b 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 // Test that the borrow checker prevents pointers to temporaries
 // with statement lifetimes from escaping.
 
index f30271db289b6b438b7c1cff48a975af7c719a77..e1de4a2a8d49b19f805d478f17462c1b9205f3ea 100644 (file)
@@ -1,5 +1,5 @@
 error[E0597]: borrowed value does not live long enough
-  --> $DIR/cleanup-rvalue-scopes-cf.rs:36:19
+  --> $DIR/cleanup-rvalue-scopes-cf.rs:38:19
    |
 LL |     let _x = arg(&AddFlags(1)); //~ ERROR value does not live long enough
    |                   ^^^^^^^^^^^ - temporary value dropped here while still borrowed
@@ -12,7 +12,7 @@ LL | }
    = note: consider using a `let` binding to increase its lifetime
 
 error[E0597]: borrowed value does not live long enough
-  --> $DIR/cleanup-rvalue-scopes-cf.rs:37:14
+  --> $DIR/cleanup-rvalue-scopes-cf.rs:39:14
    |
 LL |     let _x = AddFlags(1).get(); //~ ERROR value does not live long enough
    |              ^^^^^^^^^^^      - temporary value dropped here while still borrowed
@@ -25,7 +25,7 @@ LL | }
    = note: consider using a `let` binding to increase its lifetime
 
 error[E0597]: borrowed value does not live long enough
-  --> $DIR/cleanup-rvalue-scopes-cf.rs:38:21
+  --> $DIR/cleanup-rvalue-scopes-cf.rs:40:21
    |
 LL |     let _x = &*arg(&AddFlags(1)); //~ ERROR value does not live long enough
    |                     ^^^^^^^^^^^ - temporary value dropped here while still borrowed
@@ -38,7 +38,7 @@ LL | }
    = note: consider using a `let` binding to increase its lifetime
 
 error[E0597]: borrowed value does not live long enough
-  --> $DIR/cleanup-rvalue-scopes-cf.rs:39:24
+  --> $DIR/cleanup-rvalue-scopes-cf.rs:41:24
    |
 LL |     let ref _x = *arg(&AddFlags(1)); //~ ERROR value does not live long enough
    |                        ^^^^^^^^^^^ - temporary value dropped here while still borrowed
@@ -51,7 +51,7 @@ LL | }
    = note: consider using a `let` binding to increase its lifetime
 
 error[E0597]: borrowed value does not live long enough
-  --> $DIR/cleanup-rvalue-scopes-cf.rs:40:24
+  --> $DIR/cleanup-rvalue-scopes-cf.rs:42:24
    |
 LL |     let &ref _x = arg(&AddFlags(1)); //~ ERROR value does not live long enough
    |                        ^^^^^^^^^^^ - temporary value dropped here while still borrowed
@@ -64,7 +64,7 @@ LL | }
    = note: consider using a `let` binding to increase its lifetime
 
 error[E0597]: borrowed value does not live long enough
-  --> $DIR/cleanup-rvalue-scopes-cf.rs:41:14
+  --> $DIR/cleanup-rvalue-scopes-cf.rs:43:14
    |
 LL |     let _x = AddFlags(1).get(); //~ ERROR value does not live long enough
    |              ^^^^^^^^^^^      - temporary value dropped here while still borrowed
@@ -77,7 +77,7 @@ LL | }
    = note: consider using a `let` binding to increase its lifetime
 
 error[E0597]: borrowed value does not live long enough
-  --> $DIR/cleanup-rvalue-scopes-cf.rs:42:34
+  --> $DIR/cleanup-rvalue-scopes-cf.rs:44:34
    |
 LL |     let Box { f: _x } = Box { f: AddFlags(1).get() }; //~ ERROR value does not live long enough
    |                                  ^^^^^^^^^^^        - temporary value dropped here while still borrowed
index ddc995a1a41000c681637436605a88e1afe6fef8..8826661f84a4b5784f9a8de1129d6390691c3f4a 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 #![allow(const_err)]
 
 // nll successfully compiles this. It is a bug.
index cfb5d141a29686a2aef1cfbb3bc88478023fcf11..8f08796b5c60baeb0f49c6536873e6836c2e62ee 100644 (file)
@@ -1,5 +1,5 @@
 error[E0597]: borrowed value does not live long enough
-  --> $DIR/closure_promotion.rs:16:26
+  --> $DIR/closure_promotion.rs:18:26
    |
 LL |     let x: &'static _ = &|| { let z = 3; z }; //~ ERROR does not live long enough
    |                          ^^^^^^^^^^^^^^^^^^^ temporary value does not live long enough
index 6858599f63a8a40fda433e51bbeb10657c57793c..9418c34cbfdaa2dc054683a1c4935930a8dbbda8 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 fn main() {
     let mut my_stuff = std::collections::HashMap::new();
     my_stuff.insert(0, 42);
index fa3e64523259cba39d9c2934e4cc1b3c47d9dbd2..eb129848ed2d650abc8f423c2f58680333d84bca 100644 (file)
@@ -1,5 +1,5 @@
 error[E0502]: cannot borrow `my_stuff` as mutable because it is also borrowed as immutable
-  --> $DIR/hashmap-lifetimes.rs:16:5
+  --> $DIR/hashmap-lifetimes.rs:18:5
    |
 LL |     let mut it = my_stuff.iter();
    |                  -------- immutable borrow occurs here
index 1a06d59f0b191a22ba5fb15de4f21670058280f3..c13fd5fa71669e9444b8314246f0dded9f3eb19a 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 struct Foo<'a, 'b: 'a>(&'a &'b ());
 
 impl<'a, 'b> Foo<'a, 'b> {
index 738a1c0c6f616bff65c3944eb117f41c234ee3c7..dadcff226f53bc7439d47b67534c83cc608bd82f 100644 (file)
@@ -1,16 +1,16 @@
 error[E0478]: lifetime bound not satisfied
-  --> $DIR/issue-28848.rs:20:5
+  --> $DIR/issue-28848.rs:22:5
    |
 LL |     Foo::<'a, 'b>::xmute(u) //~ ERROR lifetime bound not satisfied
    |     ^^^^^^^^^^^^^^^^^^^^
    |
-note: lifetime parameter instantiated with the lifetime 'b as defined on the function body at 19:16
-  --> $DIR/issue-28848.rs:19:16
+note: lifetime parameter instantiated with the lifetime 'b as defined on the function body at 21:16
+  --> $DIR/issue-28848.rs:21:16
    |
 LL | pub fn foo<'a, 'b>(u: &'b ()) -> &'a () {
    |                ^^
-note: but lifetime parameter must outlive the lifetime 'a as defined on the function body at 19:12
-  --> $DIR/issue-28848.rs:19:12
+note: but lifetime parameter must outlive the lifetime 'a as defined on the function body at 21:12
+  --> $DIR/issue-28848.rs:21:12
    |
 LL | pub fn foo<'a, 'b>(u: &'b ()) -> &'a () {
    |            ^^
index e78144be1578146aa77c7f9d3ad47374837274da..c3c39183c9a9aa8898cc53b767741d39be876f1d 100644 (file)
@@ -1,5 +1,5 @@
 error[E0308]: mismatched types
-  --> $DIR/meta-expected-error-wrong-rev.rs:21:18
+  --> $DIR/meta-expected-error-wrong-rev.rs:23:18
    |
 LL |     let x: u32 = 22_usize; //[b]~ ERROR mismatched types
    |                  ^^^^^^^^ expected u32, found usize
index 3c13050812c9326369dfbbc01063c2ec3b8a375f..8869e950b3a44f3706ae2d3d8fb5ced5fd6fb325 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 // revisions: a
 // should-fail
 
index dd5b2004145c2862ed65666bc1020bfce4103d85..397c6eab536c55be7c882746e5aa8ddf0c2b0370 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 // Test method calls with self as an argument cannot subvert borrow checking.
 
 struct Foo;
index d4e049d7f6e2ac651a8897d1fcea61efecf5f1fb..4fe2da4164fa7aa928438b672904b6250621a51a 100644 (file)
@@ -1,5 +1,5 @@
 error[E0502]: cannot borrow `x` as immutable because it is also borrowed as mutable
-  --> $DIR/method-self-arg-2.rs:23:15
+  --> $DIR/method-self-arg-2.rs:25:15
    |
 LL |     let y = &mut x;
    |                  - mutable borrow occurs here
@@ -10,7 +10,7 @@ LL | }
    | - mutable borrow ends here
 
 error[E0499]: cannot borrow `x` as mutable more than once at a time
-  --> $DIR/method-self-arg-2.rs:27:19
+  --> $DIR/method-self-arg-2.rs:29:19
    |
 LL |     let y = &mut x;
    |                  - first mutable borrow occurs here
index 99d7258477ace85d1f67529207171b38f986a071..15e1be66e78f8cb146712a31bed4c6331ac81191 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 use std::cell::RefCell;
 
 fn main() {
index d8f23e64c31bb3194ffc71b1ca8e7b77d9a30903..b9497940301c6c7dc6e2c5b68bb05b262fccbc37 100644 (file)
@@ -1,5 +1,5 @@
 error[E0499]: cannot borrow `b` as mutable more than once at a time
-  --> $DIR/mut-cant-alias.rs:17:20
+  --> $DIR/mut-cant-alias.rs:19:20
    |
 LL |     let b1 = &mut *b;
    |                    - first mutable borrow occurs here
index f2ff877cd8236dc3f1cd6078c79ca6b4c0d3f8a1..96eb65daaffefe407987d4839d56eeca1148cfed 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 // Test that we are imposing the requirement that every associated
 // type of a bound that appears in the where clause on a struct must
 // outlive the location in which the type appears, even when the
index 3bfc6d3682cbeb9512914817e97f0a1fd10f3380..7b7881d6ea7caf30253d36d20c188af547869893 100644 (file)
@@ -1,16 +1,16 @@
 error[E0491]: in type `&'a WithAssoc<TheType<'b>>`, reference has a longer lifetime than the data it references
-  --> $DIR/regions-assoc-type-in-supertrait-outlives-container.rs:50:12
+  --> $DIR/regions-assoc-type-in-supertrait-outlives-container.rs:52:12
    |
 LL |     let _: &'a WithAssoc<TheType<'b>> = loop { }; //~ ERROR reference has a longer lifetime
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
-note: the pointer is valid for the lifetime 'a as defined on the function body at 44:15
-  --> $DIR/regions-assoc-type-in-supertrait-outlives-container.rs:44:15
+note: the pointer is valid for the lifetime 'a as defined on the function body at 46:15
+  --> $DIR/regions-assoc-type-in-supertrait-outlives-container.rs:46:15
    |
 LL | fn with_assoc<'a,'b>() {
    |               ^^
-note: but the referenced data is only valid for the lifetime 'b as defined on the function body at 44:18
-  --> $DIR/regions-assoc-type-in-supertrait-outlives-container.rs:44:18
+note: but the referenced data is only valid for the lifetime 'b as defined on the function body at 46:18
+  --> $DIR/regions-assoc-type-in-supertrait-outlives-container.rs:46:18
    |
 LL | fn with_assoc<'a,'b>() {
    |                  ^^
index 19c50d57e1b39565386fe8d2f3410830aacd25ca..8a15656f8a721391e1e16d9bc7e3de245e2ce090 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 // Test which of the builtin types are considered sendable. The tests
 // in this file all test region bound and lifetime violations that are
 // detected during type check.
index 82fa271ca4ea619e604f4c96c437bd11de69bd3b..2cd82707a2af451f06638de887f66577336b0606 100644 (file)
@@ -1,5 +1,5 @@
 error[E0477]: the type `&'a isize` does not fulfill the required lifetime
-  --> $DIR/regions-bounded-by-trait-requiring-static.rs:32:5
+  --> $DIR/regions-bounded-by-trait-requiring-static.rs:34:5
    |
 LL |     assert_send::<&'a isize>(); //~ ERROR does not fulfill the required lifetime
    |     ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -7,7 +7,7 @@ LL |     assert_send::<&'a isize>(); //~ ERROR does not fulfill the required lif
    = note: type must satisfy the static lifetime
 
 error[E0477]: the type `&'a str` does not fulfill the required lifetime
-  --> $DIR/regions-bounded-by-trait-requiring-static.rs:36:5
+  --> $DIR/regions-bounded-by-trait-requiring-static.rs:38:5
    |
 LL |     assert_send::<&'a str>(); //~ ERROR does not fulfill the required lifetime
    |     ^^^^^^^^^^^^^^^^^^^^^^
@@ -15,7 +15,7 @@ LL |     assert_send::<&'a str>(); //~ ERROR does not fulfill the required lifet
    = note: type must satisfy the static lifetime
 
 error[E0477]: the type `&'a [isize]` does not fulfill the required lifetime
-  --> $DIR/regions-bounded-by-trait-requiring-static.rs:40:5
+  --> $DIR/regions-bounded-by-trait-requiring-static.rs:42:5
    |
 LL |     assert_send::<&'a [isize]>(); //~ ERROR does not fulfill the required lifetime
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -23,7 +23,7 @@ LL |     assert_send::<&'a [isize]>(); //~ ERROR does not fulfill the required l
    = note: type must satisfy the static lifetime
 
 error[E0477]: the type `std::boxed::Box<&'a isize>` does not fulfill the required lifetime
-  --> $DIR/regions-bounded-by-trait-requiring-static.rs:54:5
+  --> $DIR/regions-bounded-by-trait-requiring-static.rs:56:5
    |
 LL |     assert_send::<Box<&'a isize>>(); //~ ERROR does not fulfill the required lifetime
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -31,7 +31,7 @@ LL |     assert_send::<Box<&'a isize>>(); //~ ERROR does not fulfill the require
    = note: type must satisfy the static lifetime
 
 error[E0477]: the type `*const &'a isize` does not fulfill the required lifetime
-  --> $DIR/regions-bounded-by-trait-requiring-static.rs:65:5
+  --> $DIR/regions-bounded-by-trait-requiring-static.rs:67:5
    |
 LL |     assert_send::<*const &'a isize>(); //~ ERROR does not fulfill the required lifetime
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -39,7 +39,7 @@ LL |     assert_send::<*const &'a isize>(); //~ ERROR does not fulfill the requi
    = note: type must satisfy the static lifetime
 
 error[E0477]: the type `*mut &'a isize` does not fulfill the required lifetime
-  --> $DIR/regions-bounded-by-trait-requiring-static.rs:69:5
+  --> $DIR/regions-bounded-by-trait-requiring-static.rs:71:5
    |
 LL |     assert_send::<*mut &'a isize>(); //~ ERROR does not fulfill the required lifetime
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
index da4e8231a239f11563931bdf16e2be7c96889feb..b53c80c39630a7b139712f4789fb38cb1339293f 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 // Check that explicit region bounds are allowed on the various
 // nominal types (but not on other types) and that they are type
 // checked.
index 8649ca9281f16d466bafe75e376b45dd7610ed63..b8953a1719c01a28888b88866c30a20d8e0db48a 100644 (file)
@@ -1,5 +1,5 @@
 error[E0477]: the type `&'a isize` does not fulfill the required lifetime
-  --> $DIR/regions-bounded-method-type-parameters.rs:22:9
+  --> $DIR/regions-bounded-method-type-parameters.rs:24:9
    |
 LL |     Foo.some_method::<&'a isize>();
    |         ^^^^^^^^^^^
index 66b16744cc7df38586facf55c2c8f1c3250422ea..ee6cd6c4b1523a2210682fa74d9924b68220bab9 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 // Test various ways to construct a pointer with a longer lifetime
 // than the thing it points at and ensure that they result in
 // errors. See also regions-free-region-ordering-callee.rs
index a3645995b5ea2284ab6c4d3aee1e179bd2fd919a..96502b69c0819ce022c50d7a0f4904a985856f7d 100644 (file)
@@ -1,5 +1,5 @@
 error[E0623]: lifetime mismatch
-  --> $DIR/regions-free-region-ordering-caller.rs:18:12
+  --> $DIR/regions-free-region-ordering-caller.rs:20:12
    |
 LL | fn call2<'a, 'b>(a: &'a usize, b: &'b usize) {
    |                     ---------     ---------
@@ -9,7 +9,7 @@ LL |     let z: Option<&'b &'a usize> = None;//~ ERROR E0623
    |            ^^^^^^^^^^^^^^^^^^^^^ ...but data from `a` flows into `b` here
 
 error[E0623]: lifetime mismatch
-  --> $DIR/regions-free-region-ordering-caller.rs:23:12
+  --> $DIR/regions-free-region-ordering-caller.rs:25:12
    |
 LL | fn call3<'a, 'b>(a: &'a usize, b: &'b usize) {
    |                     ---------     ---------
@@ -20,7 +20,7 @@ LL |     let z: Option<&'b Paramd<'a>> = None;//~ ERROR E0623
    |            ^^^^^^^^^^^^^^^^^^^^^^ ...but data from `a` flows into `b` here
 
 error[E0623]: lifetime mismatch
-  --> $DIR/regions-free-region-ordering-caller.rs:27:12
+  --> $DIR/regions-free-region-ordering-caller.rs:29:12
    |
 LL | fn call4<'a, 'b>(a: &'a usize, b: &'b usize) {
    |                     ---------     --------- these two types are declared with different lifetimes...
index 65594ab8f2e29220ee603252622bf2e83b52fbe0..01de3ddcdf8d9727026c94ef76e17a671d9bbaaa 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 // Illustrates the "projection gap": in this test, even though we know
 // that `T::Foo: 'x`, that does not tell us that `T: 'x`, because
 // there might be other ways for the caller of `func` to show that
index 41ae515bb9a1615a67801d74b84565c917e7e6f5..e6efb4d5c6b5d780fd206730fe65fc89d31f3a77 100644 (file)
@@ -1,5 +1,5 @@
 error[E0309]: the parameter type `T` may not live long enough
-  --> $DIR/regions-implied-bounds-projection-gap-1.rs:26:10
+  --> $DIR/regions-implied-bounds-projection-gap-1.rs:28:10
    |
 LL | fn func<'x, T:Trait1<'x>>(t: &'x T::Foo)
    |             -- help: consider adding an explicit lifetime bound `T: 'x`...
@@ -8,7 +8,7 @@ LL |     wf::<&'x T>();
    |          ^^^^^
    |
 note: ...so that the reference type `&'x T` does not outlive the data it points at
-  --> $DIR/regions-implied-bounds-projection-gap-1.rs:26:10
+  --> $DIR/regions-implied-bounds-projection-gap-1.rs:28:10
    |
 LL |     wf::<&'x T>();
    |          ^^^^^
index 6e1c765724b0b8b2eaba427b45f3c69e06f5f70b..a16001b5788b3ccbd4ce155890a2328a41592a73 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 // Test that a type which is contravariant with respect to its region
 // parameter yields an error when used in a covariant way.
 //
index 10cc253397f7d7c4558e0ae8592701ade9bbb796..675cbc58583480e53d84ae6acba26cdd14b68b53 100644 (file)
@@ -1,5 +1,5 @@
 error[E0623]: lifetime mismatch
-  --> $DIR/regions-infer-contravariance-due-to-decl.rs:35:35
+  --> $DIR/regions-infer-contravariance-due-to-decl.rs:37:35
    |
 LL | fn use_<'short,'long>(c: Contravariant<'short>,
    |                          --------------------- these two types are declared with different lifetimes...
index 1ab8ba4439b5d0568dbe2f5ca5288d0d1fd20e55..f794063610ae061f52bf1f941d915f9c23a3c934 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 // Test that a type which is covariant with respect to its region
 // parameter yields an error when used in a contravariant way.
 //
index fd853629f37e42accbdc062add1014d4f45cdae2..6b3673a8002849e538c509cd7dcec880ead0dda9 100644 (file)
@@ -1,5 +1,5 @@
 error[E0623]: lifetime mismatch
-  --> $DIR/regions-infer-covariance-due-to-decl.rs:32:32
+  --> $DIR/regions-infer-covariance-due-to-decl.rs:34:32
    |
 LL | fn use_<'short,'long>(c: Covariant<'long>,
    |                          ----------------
index 71606ba812fac10b6bfeff57b08cc92220f1cd0c..79300d5176eccb43fad99b86a974b7f3f4c0e76c 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 // Test that we are imposing the requirement that every associated
 // type of a bound that appears in the where clause on a struct must
 // outlive the location in which the type appears, even when the
index f0c1c0b3fc2799a7050c7e14b1700c0a9b2c6623..d0680ecbb99a20e00561ce6fa0e80f8248f3d3ee 100644 (file)
@@ -1,16 +1,16 @@
 error[E0491]: in type `&'a WithAssoc<TheType<'b>>`, reference has a longer lifetime than the data it references
-  --> $DIR/regions-outlives-projection-container-wc.rs:44:12
+  --> $DIR/regions-outlives-projection-container-wc.rs:46:12
    |
 LL |     let _: &'a WithAssoc<TheType<'b>> = loop { };
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
-note: the pointer is valid for the lifetime 'a as defined on the function body at 38:15
-  --> $DIR/regions-outlives-projection-container-wc.rs:38:15
+note: the pointer is valid for the lifetime 'a as defined on the function body at 40:15
+  --> $DIR/regions-outlives-projection-container-wc.rs:40:15
    |
 LL | fn with_assoc<'a,'b>() {
    |               ^^
-note: but the referenced data is only valid for the lifetime 'b as defined on the function body at 38:18
-  --> $DIR/regions-outlives-projection-container-wc.rs:38:18
+note: but the referenced data is only valid for the lifetime 'b as defined on the function body at 40:18
+  --> $DIR/regions-outlives-projection-container-wc.rs:40:18
    |
 LL | fn with_assoc<'a,'b>() {
    |                  ^^
index 957e56fe5109fed65344c54614d0b9b869c14cd2..e4b7a0f82db39e416b5508fad42853f5358e4805 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 // Test that we are imposing the requirement that every associated
 // type of a bound that appears in the where clause on a struct must
 // outlive the location in which the type appears. Issue #22246.
index ac8d84aa8feb68bc683a09f50437e6e38bf5f4b7..2a698f9bff5a4314ecfe28aab3dca246ea2dd509 100644 (file)
@@ -1,67 +1,67 @@
 error[E0491]: in type `&'a WithAssoc<TheType<'b>>`, reference has a longer lifetime than the data it references
-  --> $DIR/regions-outlives-projection-container.rs:48:12
+  --> $DIR/regions-outlives-projection-container.rs:50:12
    |
 LL |     let _: &'a WithAssoc<TheType<'b>> = loop { }; //~ ERROR reference has a longer lifetime
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
-note: the pointer is valid for the lifetime 'a as defined on the function body at 42:15
-  --> $DIR/regions-outlives-projection-container.rs:42:15
+note: the pointer is valid for the lifetime 'a as defined on the function body at 44:15
+  --> $DIR/regions-outlives-projection-container.rs:44:15
    |
 LL | fn with_assoc<'a,'b>() {
    |               ^^
-note: but the referenced data is only valid for the lifetime 'b as defined on the function body at 42:18
-  --> $DIR/regions-outlives-projection-container.rs:42:18
+note: but the referenced data is only valid for the lifetime 'b as defined on the function body at 44:18
+  --> $DIR/regions-outlives-projection-container.rs:44:18
    |
 LL | fn with_assoc<'a,'b>() {
    |                  ^^
 
 error[E0491]: in type `&'a WithoutAssoc<TheType<'b>>`, reference has a longer lifetime than the data it references
-  --> $DIR/regions-outlives-projection-container.rs:65:12
+  --> $DIR/regions-outlives-projection-container.rs:67:12
    |
 LL |     let _: &'a WithoutAssoc<TheType<'b>> = loop { }; //~ ERROR reference has a longer lifetime
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
-note: the pointer is valid for the lifetime 'a as defined on the function body at 61:18
-  --> $DIR/regions-outlives-projection-container.rs:61:18
+note: the pointer is valid for the lifetime 'a as defined on the function body at 63:18
+  --> $DIR/regions-outlives-projection-container.rs:63:18
    |
 LL | fn without_assoc<'a,'b>() {
    |                  ^^
-note: but the referenced data is only valid for the lifetime 'b as defined on the function body at 61:21
-  --> $DIR/regions-outlives-projection-container.rs:61:21
+note: but the referenced data is only valid for the lifetime 'b as defined on the function body at 63:21
+  --> $DIR/regions-outlives-projection-container.rs:63:21
    |
 LL | fn without_assoc<'a,'b>() {
    |                     ^^
 
 error[E0491]: in type `&'a WithAssoc<TheType<'b>>`, reference has a longer lifetime than the data it references
-  --> $DIR/regions-outlives-projection-container.rs:73:12
+  --> $DIR/regions-outlives-projection-container.rs:75:12
    |
 LL |     call::<&'a WithAssoc<TheType<'b>>>();
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
-note: the pointer is valid for the lifetime 'a as defined on the function body at 68:20
-  --> $DIR/regions-outlives-projection-container.rs:68:20
+note: the pointer is valid for the lifetime 'a as defined on the function body at 70:20
+  --> $DIR/regions-outlives-projection-container.rs:70:20
    |
 LL | fn call_with_assoc<'a,'b>() {
    |                    ^^
-note: but the referenced data is only valid for the lifetime 'b as defined on the function body at 68:23
-  --> $DIR/regions-outlives-projection-container.rs:68:23
+note: but the referenced data is only valid for the lifetime 'b as defined on the function body at 70:23
+  --> $DIR/regions-outlives-projection-container.rs:70:23
    |
 LL | fn call_with_assoc<'a,'b>() {
    |                       ^^
 
 error[E0491]: in type `&'a WithoutAssoc<TheType<'b>>`, reference has a longer lifetime than the data it references
-  --> $DIR/regions-outlives-projection-container.rs:80:12
+  --> $DIR/regions-outlives-projection-container.rs:82:12
    |
 LL |     call::<&'a WithoutAssoc<TheType<'b>>>(); //~ ERROR reference has a longer lifetime
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
-note: the pointer is valid for the lifetime 'a as defined on the function body at 77:23
-  --> $DIR/regions-outlives-projection-container.rs:77:23
+note: the pointer is valid for the lifetime 'a as defined on the function body at 79:23
+  --> $DIR/regions-outlives-projection-container.rs:79:23
    |
 LL | fn call_without_assoc<'a,'b>() {
    |                       ^^
-note: but the referenced data is only valid for the lifetime 'b as defined on the function body at 77:26
-  --> $DIR/regions-outlives-projection-container.rs:77:26
+note: but the referenced data is only valid for the lifetime 'b as defined on the function body at 79:26
+  --> $DIR/regions-outlives-projection-container.rs:79:26
    |
 LL | fn call_without_assoc<'a,'b>() {
    |                          ^^
index 1dfebd54ec3b3522ff461485babb426402678a43..a028bae40013d800a056d8e9d8811da7235b44b9 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 // Test that a type which is covariant with respect to its region
 // parameter yields an error when used in a contravariant way.
 //
index 45105e8714c9cc73b796719795653a913fb3e6d0..fd1d3ab99f38ae3e245ae523f63fbb77609e1a9a 100644 (file)
@@ -1,5 +1,5 @@
 error[E0623]: lifetime mismatch
-  --> $DIR/regions-variance-contravariant-use-covariant-in-second-position.rs:35:30
+  --> $DIR/regions-variance-contravariant-use-covariant-in-second-position.rs:37:30
    |
 LL | fn use_<'short,'long>(c: S<'long, 'short>,
    |                          ----------------
index caf6a86fc0b26e7bbe9bbd51cf1d34ee9b299cfc..84c4e52a9c07faef333c206462661958db4ab855 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 // Test that a type which is covariant with respect to its region
 // parameter yields an error when used in a contravariant way.
 //
index c883691c348939ecb45d159ef5110a2cfb4dfa3e..a1e4913aa3a306f0e10dd1da634155991a654287 100644 (file)
@@ -1,5 +1,5 @@
 error[E0623]: lifetime mismatch
-  --> $DIR/regions-variance-contravariant-use-covariant.rs:33:35
+  --> $DIR/regions-variance-contravariant-use-covariant.rs:35:35
    |
 LL | fn use_<'short,'long>(c: Contravariant<'short>,
    |                          --------------------- these two types are declared with different lifetimes...
index 60dc3d94a2edb2b3ac66162642a49d64c171e734..824a442c87d544a898ab580385e7de7ce5e973fd 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 // Test that a type which is covariant with respect to its region
 // parameter yields an error when used in a contravariant way.
 //
index a448d26f81bfe5350bb95481b83b84d35283b3be..fc1c6c304f8ad16b3cea90a761dd0b9877d5270f 100644 (file)
@@ -1,5 +1,5 @@
 error[E0623]: lifetime mismatch
-  --> $DIR/regions-variance-covariant-use-contravariant.rs:33:32
+  --> $DIR/regions-variance-covariant-use-contravariant.rs:35:32
    |
 LL | fn use_<'short,'long>(c: Covariant<'long>,
    |                          ----------------
index 96478fa590979288f66621ef6d5da23e83597a18..9c6db331c01737982b6c83a00eec8a0f3d1db284 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 // Test that an invariant region parameter used in a contravariant way
 // yields an error.
 //
index 1b0cd8e646a1e86f3b3ec802ca6d2eeb5400f4ee..6b67e6b192e9cbb8f19f15cd91ba1a2560b46243 100644 (file)
@@ -1,5 +1,5 @@
 error[E0623]: lifetime mismatch
-  --> $DIR/regions-variance-invariant-use-contravariant.rs:30:32
+  --> $DIR/regions-variance-invariant-use-contravariant.rs:32:32
    |
 LL | fn use_<'short,'long>(c: Invariant<'long>,
    |                          ----------------
index bd944a8b52cfb4617fab993e60ee4df33eeac05c..ed393de357a3f2e36d5b6cdc5116f6e77cfca887 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 // Test that a type which is invariant with respect to its region
 // parameter used in a covariant way yields an error.
 //
index 34111120a08074ffe95578dfa9ae5405c2935fe9..5b50f4bd51373e83c682f868547fc2904d931391 100644 (file)
@@ -1,13 +1,13 @@
 error[E0308]: mismatched types
-  --> $DIR/regions-variance-invariant-use-covariant.rs:27:33
+  --> $DIR/regions-variance-invariant-use-covariant.rs:29:33
    |
 LL |     let _: Invariant<'static> = c; //~ ERROR mismatched types
    |                                 ^ lifetime mismatch
    |
    = note: expected type `Invariant<'static>`
               found type `Invariant<'b>`
-note: the lifetime 'b as defined on the function body at 21:9...
-  --> $DIR/regions-variance-invariant-use-covariant.rs:21:9
+note: the lifetime 'b as defined on the function body at 23:9...
+  --> $DIR/regions-variance-invariant-use-covariant.rs:23:9
    |
 LL | fn use_<'b>(c: Invariant<'b>) {
    |         ^^
index 1c86dda3378a96fa76a133286bdd1a084ee3fcba..cc635296210a03b013d32ee0dcba41ad19cf9a6d 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 // Test that an unboxed closure that captures a free variable by
 // reference cannot escape the region of that variable.
 fn main() {
index 946a52c4673348203c97303ddc90af5b9ede6e60..a838c3608b9a9dcacadbfd55ab5f980c2061970f 100644 (file)
@@ -1,5 +1,5 @@
 error[E0597]: `x` does not live long enough
-  --> $DIR/unboxed-closure-region.rs:16:12
+  --> $DIR/unboxed-closure-region.rs:18:12
    |
 LL |         || x //~ ERROR `x` does not live long enough
    |         -- ^ borrowed value does not live long enough
index ad7e6784a0a414fb4cbc624352a4580ee6ffc068..734f89e5e0b8ba3fa5105532ca3750d735575afb 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 // Test that an unboxed closure that mutates a free variable will
 // cause borrow conflicts.
 
index cd62d77caed21a4015f710750e2eb651067cec38..9bdd1022fd179ba444f37eab6e8991a157730f3f 100644 (file)
@@ -1,5 +1,5 @@
 error[E0503]: cannot use `x` because it was mutably borrowed
-  --> $DIR/unboxed-closures-borrow-conflict.rs:17:9
+  --> $DIR/unboxed-closures-borrow-conflict.rs:19:9
    |
 LL |     let f = || x += 1;
    |             -- borrow of `x` occurs here
index 1ddbcf4ab84c75065bdfd1df2cac8d4b9a40236a..39d87a563e5169ad8ded213f71df9dad562f7caa 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 // Test that Cell is considered invariant with respect to its
 // type.
 
index 86f5c1176d9095e6166a068a565d1c23b9e9fbbe..8fb5d9bf38b3c487376e43db1ba0102b0ec2e126 100644 (file)
@@ -1,5 +1,5 @@
 error[E0623]: lifetime mismatch
-  --> $DIR/variance-cell-is-invariant.rs:24:25
+  --> $DIR/variance-cell-is-invariant.rs:26:25
    |
 LL | fn use_<'short,'long>(c: Foo<'short>,
    |                          ----------- these two types are declared with different lifetimes...
index 9b6e3c9de3bbd26482d1d2c82d9d1acccc0308f9..96791304d93d3c3e6baca85d02af5217eeccc36b 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 #![allow(dead_code)]
 
 // Test that even when `T` is only used in contravariant position, it
index 2895a9511eabbeb22aa19dda8884407962c9bcc4..282220d1037f59a4938834fde22a6f3b99a03585 100644 (file)
@@ -1,37 +1,37 @@
 error[E0308]: mismatched types
-  --> $DIR/variance-contravariant-arg-trait-match.rs:23:5
+  --> $DIR/variance-contravariant-arg-trait-match.rs:25:5
    |
 LL |     impls_get::<G,&'min i32>() //~ ERROR mismatched types
    |     ^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
    |
    = note: expected type `Get<&'min i32>`
               found type `Get<&'max i32>`
-note: the lifetime 'min as defined on the function body at 20:21...
-  --> $DIR/variance-contravariant-arg-trait-match.rs:20:21
+note: the lifetime 'min as defined on the function body at 22:21...
+  --> $DIR/variance-contravariant-arg-trait-match.rs:22:21
    |
 LL | fn get_min_from_max<'min, 'max, G>()
    |                     ^^^^
-note: ...does not necessarily outlive the lifetime 'max as defined on the function body at 20:27
-  --> $DIR/variance-contravariant-arg-trait-match.rs:20:27
+note: ...does not necessarily outlive the lifetime 'max as defined on the function body at 22:27
+  --> $DIR/variance-contravariant-arg-trait-match.rs:22:27
    |
 LL | fn get_min_from_max<'min, 'max, G>()
    |                           ^^^^
 
 error[E0308]: mismatched types
-  --> $DIR/variance-contravariant-arg-trait-match.rs:31:5
+  --> $DIR/variance-contravariant-arg-trait-match.rs:33:5
    |
 LL |     impls_get::<G,&'max i32>() //~ ERROR mismatched types
    |     ^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
    |
    = note: expected type `Get<&'max i32>`
               found type `Get<&'min i32>`
-note: the lifetime 'min as defined on the function body at 26:21...
-  --> $DIR/variance-contravariant-arg-trait-match.rs:26:21
+note: the lifetime 'min as defined on the function body at 28:21...
+  --> $DIR/variance-contravariant-arg-trait-match.rs:28:21
    |
 LL | fn get_max_from_min<'min, 'max, G>()
    |                     ^^^^
-note: ...does not necessarily outlive the lifetime 'max as defined on the function body at 26:27
-  --> $DIR/variance-contravariant-arg-trait-match.rs:26:27
+note: ...does not necessarily outlive the lifetime 'max as defined on the function body at 28:27
+  --> $DIR/variance-contravariant-arg-trait-match.rs:28:27
    |
 LL | fn get_max_from_min<'min, 'max, G>()
    |                           ^^^^
index 6d9d1e61fed61165e7fd2578870367e052c9aa9b..c04ba8862c31786e99c9e5231b3a1cbcb6944610 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 #![allow(dead_code)]
 
 // Test that even when `Self` is only used in contravariant position, it
index bc3f274a861d9184f252815272cc1e267618e711..9e60a70bc16b2c97499b1edebdec8bc39d3d6c60 100644 (file)
@@ -1,37 +1,37 @@
 error[E0308]: mismatched types
-  --> $DIR/variance-contravariant-self-trait-match.rs:23:5
+  --> $DIR/variance-contravariant-self-trait-match.rs:25:5
    |
 LL |     impls_get::<&'min G>(); //~ ERROR mismatched types
    |     ^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
    |
    = note: expected type `Get`
               found type `Get`
-note: the lifetime 'min as defined on the function body at 20:21...
-  --> $DIR/variance-contravariant-self-trait-match.rs:20:21
+note: the lifetime 'min as defined on the function body at 22:21...
+  --> $DIR/variance-contravariant-self-trait-match.rs:22:21
    |
 LL | fn get_min_from_max<'min, 'max, G>()
    |                     ^^^^
-note: ...does not necessarily outlive the lifetime 'max as defined on the function body at 20:27
-  --> $DIR/variance-contravariant-self-trait-match.rs:20:27
+note: ...does not necessarily outlive the lifetime 'max as defined on the function body at 22:27
+  --> $DIR/variance-contravariant-self-trait-match.rs:22:27
    |
 LL | fn get_min_from_max<'min, 'max, G>()
    |                           ^^^^
 
 error[E0308]: mismatched types
-  --> $DIR/variance-contravariant-self-trait-match.rs:32:5
+  --> $DIR/variance-contravariant-self-trait-match.rs:34:5
    |
 LL |     impls_get::<&'max G>(); //~ ERROR mismatched types
    |     ^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
    |
    = note: expected type `Get`
               found type `Get`
-note: the lifetime 'min as defined on the function body at 26:21...
-  --> $DIR/variance-contravariant-self-trait-match.rs:26:21
+note: the lifetime 'min as defined on the function body at 28:21...
+  --> $DIR/variance-contravariant-self-trait-match.rs:28:21
    |
 LL | fn get_max_from_min<'min, 'max, G>()
    |                     ^^^^
-note: ...does not necessarily outlive the lifetime 'max as defined on the function body at 26:27
-  --> $DIR/variance-contravariant-self-trait-match.rs:26:27
+note: ...does not necessarily outlive the lifetime 'max as defined on the function body at 28:27
+  --> $DIR/variance-contravariant-self-trait-match.rs:28:27
    |
 LL | fn get_max_from_min<'min, 'max, G>()
    |                           ^^^^
index c42a845b3b504202b085664417e086e974dcccbf..fbda62f34fa16a0625e1e647069735b8a81efe45 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 #![allow(dead_code)]
 
 // Test that even when `T` is only used in covariant position, it
index 7692a6646f27c85247b4299aa51e98016fb487f6..648acc2119f1bf17f5f5653768f630f8c1215275 100644 (file)
@@ -1,37 +1,37 @@
 error[E0308]: mismatched types
-  --> $DIR/variance-covariant-arg-trait-match.rs:24:5
+  --> $DIR/variance-covariant-arg-trait-match.rs:26:5
    |
 LL |     impls_get::<G,&'min i32>() //~ ERROR mismatched types
    |     ^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
    |
    = note: expected type `Get<&'min i32>`
               found type `Get<&'max i32>`
-note: the lifetime 'min as defined on the function body at 20:21...
-  --> $DIR/variance-covariant-arg-trait-match.rs:20:21
+note: the lifetime 'min as defined on the function body at 22:21...
+  --> $DIR/variance-covariant-arg-trait-match.rs:22:21
    |
 LL | fn get_min_from_max<'min, 'max, G>()
    |                     ^^^^
-note: ...does not necessarily outlive the lifetime 'max as defined on the function body at 20:27
-  --> $DIR/variance-covariant-arg-trait-match.rs:20:27
+note: ...does not necessarily outlive the lifetime 'max as defined on the function body at 22:27
+  --> $DIR/variance-covariant-arg-trait-match.rs:22:27
    |
 LL | fn get_min_from_max<'min, 'max, G>()
    |                           ^^^^
 
 error[E0308]: mismatched types
-  --> $DIR/variance-covariant-arg-trait-match.rs:30:5
+  --> $DIR/variance-covariant-arg-trait-match.rs:32:5
    |
 LL |     impls_get::<G,&'max i32>() //~ ERROR mismatched types
    |     ^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
    |
    = note: expected type `Get<&'max i32>`
               found type `Get<&'min i32>`
-note: the lifetime 'min as defined on the function body at 27:21...
-  --> $DIR/variance-covariant-arg-trait-match.rs:27:21
+note: the lifetime 'min as defined on the function body at 29:21...
+  --> $DIR/variance-covariant-arg-trait-match.rs:29:21
    |
 LL | fn get_max_from_min<'min, 'max, G>()
    |                     ^^^^
-note: ...does not necessarily outlive the lifetime 'max as defined on the function body at 27:27
-  --> $DIR/variance-covariant-arg-trait-match.rs:27:27
+note: ...does not necessarily outlive the lifetime 'max as defined on the function body at 29:27
+  --> $DIR/variance-covariant-arg-trait-match.rs:29:27
    |
 LL | fn get_max_from_min<'min, 'max, G>()
    |                           ^^^^
index 25148dfc0208a672776bf3156ee56dc3700c7712..3e0c1da3bca7c5b92b67ab6414560f7447792263 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 #![allow(dead_code)]
 
 // Test that even when `Self` is only used in covariant position, it
index aa82b69bbbc6b7d14759e37a7e49f9611f3a987c..cb8fe0b7890e4f42d9fe54079862ed8da09d279a 100644 (file)
@@ -1,37 +1,37 @@
 error[E0308]: mismatched types
-  --> $DIR/variance-covariant-self-trait-match.rs:24:5
+  --> $DIR/variance-covariant-self-trait-match.rs:26:5
    |
 LL |     impls_get::<&'min G>(); //~ ERROR mismatched types
    |     ^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
    |
    = note: expected type `Get`
               found type `Get`
-note: the lifetime 'min as defined on the function body at 20:21...
-  --> $DIR/variance-covariant-self-trait-match.rs:20:21
+note: the lifetime 'min as defined on the function body at 22:21...
+  --> $DIR/variance-covariant-self-trait-match.rs:22:21
    |
 LL | fn get_min_from_max<'min, 'max, G>()
    |                     ^^^^
-note: ...does not necessarily outlive the lifetime 'max as defined on the function body at 20:27
-  --> $DIR/variance-covariant-self-trait-match.rs:20:27
+note: ...does not necessarily outlive the lifetime 'max as defined on the function body at 22:27
+  --> $DIR/variance-covariant-self-trait-match.rs:22:27
    |
 LL | fn get_min_from_max<'min, 'max, G>()
    |                           ^^^^
 
 error[E0308]: mismatched types
-  --> $DIR/variance-covariant-self-trait-match.rs:30:5
+  --> $DIR/variance-covariant-self-trait-match.rs:32:5
    |
 LL |     impls_get::<&'max G>(); //~ ERROR mismatched types
    |     ^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
    |
    = note: expected type `Get`
               found type `Get`
-note: the lifetime 'min as defined on the function body at 27:21...
-  --> $DIR/variance-covariant-self-trait-match.rs:27:21
+note: the lifetime 'min as defined on the function body at 29:21...
+  --> $DIR/variance-covariant-self-trait-match.rs:29:21
    |
 LL | fn get_max_from_min<'min, 'max, G>()
    |                     ^^^^
-note: ...does not necessarily outlive the lifetime 'max as defined on the function body at 27:27
-  --> $DIR/variance-covariant-self-trait-match.rs:27:27
+note: ...does not necessarily outlive the lifetime 'max as defined on the function body at 29:27
+  --> $DIR/variance-covariant-self-trait-match.rs:29:27
    |
 LL | fn get_max_from_min<'min, 'max, G>()
    |                           ^^^^
index 45fed0b083dc1d47cfd83ef49688e00d8568a680..771fcdeb62f6d4e112337539d90080ae4eff6063 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 #![allow(dead_code)]
 
 trait Get<T> {
index fc0d5e486de75a3cda091d64a5ddb8646c112a42..3f63549506962686013686e6954c74f16dd66966 100644 (file)
@@ -1,37 +1,37 @@
 error[E0308]: mismatched types
-  --> $DIR/variance-invariant-arg-trait-match.rs:20:5
+  --> $DIR/variance-invariant-arg-trait-match.rs:22:5
    |
 LL |     impls_get::<G,&'min i32>() //~ ERROR mismatched types
    |     ^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
    |
    = note: expected type `Get<&'min i32>`
               found type `Get<&'max i32>`
-note: the lifetime 'min as defined on the function body at 17:21...
-  --> $DIR/variance-invariant-arg-trait-match.rs:17:21
+note: the lifetime 'min as defined on the function body at 19:21...
+  --> $DIR/variance-invariant-arg-trait-match.rs:19:21
    |
 LL | fn get_min_from_max<'min, 'max, G>()
    |                     ^^^^
-note: ...does not necessarily outlive the lifetime 'max as defined on the function body at 17:27
-  --> $DIR/variance-invariant-arg-trait-match.rs:17:27
+note: ...does not necessarily outlive the lifetime 'max as defined on the function body at 19:27
+  --> $DIR/variance-invariant-arg-trait-match.rs:19:27
    |
 LL | fn get_min_from_max<'min, 'max, G>()
    |                           ^^^^
 
 error[E0308]: mismatched types
-  --> $DIR/variance-invariant-arg-trait-match.rs:26:5
+  --> $DIR/variance-invariant-arg-trait-match.rs:28:5
    |
 LL |     impls_get::<G,&'max i32>() //~ ERROR mismatched types
    |     ^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
    |
    = note: expected type `Get<&'max i32>`
               found type `Get<&'min i32>`
-note: the lifetime 'min as defined on the function body at 23:21...
-  --> $DIR/variance-invariant-arg-trait-match.rs:23:21
+note: the lifetime 'min as defined on the function body at 25:21...
+  --> $DIR/variance-invariant-arg-trait-match.rs:25:21
    |
 LL | fn get_max_from_min<'min, 'max, G>()
    |                     ^^^^
-note: ...does not necessarily outlive the lifetime 'max as defined on the function body at 23:27
-  --> $DIR/variance-invariant-arg-trait-match.rs:23:27
+note: ...does not necessarily outlive the lifetime 'max as defined on the function body at 25:27
+  --> $DIR/variance-invariant-arg-trait-match.rs:25:27
    |
 LL | fn get_max_from_min<'min, 'max, G>()
    |                           ^^^^
index fe61dee23bc2a03d04f63613132160f78766edc3..57abf6f897931cfc82568633041ec840f37c5c87 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-compare-mode-nll
+
 #![allow(dead_code)]
 
 trait Get {
index b34f027e8959dec5bcc869a0b8f031f030e8e058..1b864abc4f02fcc4a66f2e7adec223d230595e7e 100644 (file)
@@ -1,37 +1,37 @@
 error[E0308]: mismatched types
-  --> $DIR/variance-invariant-self-trait-match.rs:20:5
+  --> $DIR/variance-invariant-self-trait-match.rs:22:5
    |
 LL |     impls_get::<&'min G>(); //~ ERROR mismatched types
    |     ^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
    |
    = note: expected type `Get`
               found type `Get`
-note: the lifetime 'min as defined on the function body at 17:21...
-  --> $DIR/variance-invariant-self-trait-match.rs:17:21
+note: the lifetime 'min as defined on the function body at 19:21...
+  --> $DIR/variance-invariant-self-trait-match.rs:19:21
    |
 LL | fn get_min_from_max<'min, 'max, G>()
    |                     ^^^^
-note: ...does not necessarily outlive the lifetime 'max as defined on the function body at 17:27
-  --> $DIR/variance-invariant-self-trait-match.rs:17:27
+note: ...does not necessarily outlive the lifetime 'max as defined on the function body at 19:27
+  --> $DIR/variance-invariant-self-trait-match.rs:19:27
    |
 LL | fn get_min_from_max<'min, 'max, G>()
    |                           ^^^^
 
 error[E0308]: mismatched types
-  --> $DIR/variance-invariant-self-trait-match.rs:26:5
+  --> $DIR/variance-invariant-self-trait-match.rs:28:5
    |
 LL |     impls_get::<&'max G>(); //~ ERROR mismatched types
    |     ^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
    |
    = note: expected type `Get`
               found type `Get`
-note: the lifetime 'min as defined on the function body at 23:21...
-  --> $DIR/variance-invariant-self-trait-match.rs:23:21
+note: the lifetime 'min as defined on the function body at 25:21...
+  --> $DIR/variance-invariant-self-trait-match.rs:25:21
    |
 LL | fn get_max_from_min<'min, 'max, G>()
    |                     ^^^^
-note: ...does not necessarily outlive the lifetime 'max as defined on the function body at 23:27
-  --> $DIR/variance-invariant-self-trait-match.rs:23:27
+note: ...does not necessarily outlive the lifetime 'max as defined on the function body at 25:27
+  --> $DIR/variance-invariant-self-trait-match.rs:25:27
    |
 LL | fn get_max_from_min<'min, 'max, G>()
    |                           ^^^^