diff options
| author | varkor <github@varkor.com> | 2019-12-22 21:08:53 +0000 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2019-12-23 11:20:13 +0000 |
| commit | 35979a92bf6dba402885a1488ecfd84046e4bd71 (patch) | |
| tree | 7d58702befa5cd9f8ffffa0222f3615978503520 /src/test/ui | |
| parent | 5ab4735559aeeece0b5811dad95fdf515b1bcfbd (diff) | |
| download | rust-35979a92bf6dba402885a1488ecfd84046e4bd71.tar.gz rust-35979a92bf6dba402885a1488ecfd84046e4bd71.zip | |
Add span information to `ExprKind::Assign`
Diffstat (limited to 'src/test/ui')
| -rw-r--r-- | src/test/ui/bad/bad-expr-lhs.stderr | 16 | ||||
| -rw-r--r-- | src/test/ui/bad/destructuring-assignment.stderr | 20 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0070.stderr | 12 | ||||
| -rw-r--r-- | src/test/ui/issues/issue-13407.stderr | 4 | ||||
| -rw-r--r-- | src/test/ui/issues/issue-26093.stderr | 4 | ||||
| -rw-r--r-- | src/test/ui/issues/issue-34334.stderr | 4 | ||||
| -rw-r--r-- | src/test/ui/type/type-check/assignment-expected-bool.stderr | 4 |
7 files changed, 32 insertions, 32 deletions
diff --git a/src/test/ui/bad/bad-expr-lhs.stderr b/src/test/ui/bad/bad-expr-lhs.stderr index 61c25bb471c..ce793d8910b 100644 --- a/src/test/ui/bad/bad-expr-lhs.stderr +++ b/src/test/ui/bad/bad-expr-lhs.stderr @@ -1,8 +1,8 @@ error[E0070]: invalid left-hand side of assignment - --> $DIR/bad-expr-lhs.rs:2:5 + --> $DIR/bad-expr-lhs.rs:2:7 | LL | 1 = 2; - | -^^^^ + | - ^ | | | cannot assign to this expression @@ -15,18 +15,18 @@ LL | 1 += 2; | cannot assign to this expression error[E0070]: invalid left-hand side of assignment - --> $DIR/bad-expr-lhs.rs:4:5 + --> $DIR/bad-expr-lhs.rs:4:12 | LL | (1, 2) = (3, 4); - | ------^^^^^^^^^ + | ------ ^ | | | cannot assign to this expression error[E0070]: invalid left-hand side of assignment - --> $DIR/bad-expr-lhs.rs:7:5 + --> $DIR/bad-expr-lhs.rs:7:12 | LL | (a, b) = (3, 4); - | ------^^^^^^^^^ + | ------ ^ | | | cannot assign to this expression | @@ -34,10 +34,10 @@ LL | (a, b) = (3, 4); = note: for more information, see https://github.com/rust-lang/rfcs/issues/372 error[E0070]: invalid left-hand side of assignment - --> $DIR/bad-expr-lhs.rs:9:5 + --> $DIR/bad-expr-lhs.rs:9:10 | LL | None = Some(3); - | ----^^^^^^^^^^ + | ---- ^ | | | cannot assign to this expression diff --git a/src/test/ui/bad/destructuring-assignment.stderr b/src/test/ui/bad/destructuring-assignment.stderr index 845008b0693..3e0925b5658 100644 --- a/src/test/ui/bad/destructuring-assignment.stderr +++ b/src/test/ui/bad/destructuring-assignment.stderr @@ -1,8 +1,8 @@ error[E0070]: invalid left-hand side of assignment - --> $DIR/destructuring-assignment.rs:6:5 + --> $DIR/destructuring-assignment.rs:6:12 | LL | (a, b) = (3, 4); - | ------^^^^^^^^^ + | ------ ^ | | | cannot assign to this expression | @@ -31,10 +31,10 @@ LL | (a, b) += (3, 4); = note: for more information, see https://github.com/rust-lang/rfcs/issues/372 error[E0070]: invalid left-hand side of assignment - --> $DIR/destructuring-assignment.rs:10:5 + --> $DIR/destructuring-assignment.rs:10:12 | LL | [a, b] = [3, 4]; - | ------^^^^^^^^^ + | ------ ^ | | | cannot assign to this expression | @@ -63,10 +63,10 @@ LL | [a, b] += [3, 4]; = note: for more information, see https://github.com/rust-lang/rfcs/issues/372 error[E0070]: invalid left-hand side of assignment - --> $DIR/destructuring-assignment.rs:16:5 + --> $DIR/destructuring-assignment.rs:16:22 | LL | S { x: a, y: b } = s; - | ----------------^^^^ + | ---------------- ^ | | | cannot assign to this expression | @@ -95,10 +95,10 @@ LL | S { x: a, y: b } += s; = note: for more information, see https://github.com/rust-lang/rfcs/issues/372 error[E0070]: invalid left-hand side of assignment - --> $DIR/destructuring-assignment.rs:20:5 + --> $DIR/destructuring-assignment.rs:20:21 | LL | S { x: a, ..s } = S { x: 3, y: 4 }; - | ---------------^^^^^^^^^^^^^^^^^^^ + | --------------- ^ | | | cannot assign to this expression | @@ -106,10 +106,10 @@ LL | S { x: a, ..s } = S { x: 3, y: 4 }; = note: for more information, see https://github.com/rust-lang/rfcs/issues/372 error[E0070]: invalid left-hand side of assignment - --> $DIR/destructuring-assignment.rs:24:5 + --> $DIR/destructuring-assignment.rs:24:17 | LL | ((a, b), c) = ((3, 4), 5); - | -----------^^^^^^^^^^^^^^ + | ----------- ^ | | | cannot assign to this expression | diff --git a/src/test/ui/error-codes/E0070.stderr b/src/test/ui/error-codes/E0070.stderr index 1fb812d9467..d809bb18dee 100644 --- a/src/test/ui/error-codes/E0070.stderr +++ b/src/test/ui/error-codes/E0070.stderr @@ -1,16 +1,16 @@ error[E0070]: invalid left-hand side of assignment - --> $DIR/E0070.rs:6:5 + --> $DIR/E0070.rs:6:16 | LL | SOME_CONST = 14; - | ----------^^^^^ + | ---------- ^ | | | cannot assign to this expression error[E0070]: invalid left-hand side of assignment - --> $DIR/E0070.rs:7:5 + --> $DIR/E0070.rs:7:7 | LL | 1 = 3; - | -^^^^ + | - ^ | | | cannot assign to this expression @@ -21,10 +21,10 @@ LL | some_other_func() = 4; | ^ expected `()`, found integer error[E0070]: invalid left-hand side of assignment - --> $DIR/E0070.rs:8:5 + --> $DIR/E0070.rs:8:23 | LL | some_other_func() = 4; - | -----------------^^^^ + | ----------------- ^ | | | cannot assign to this expression diff --git a/src/test/ui/issues/issue-13407.stderr b/src/test/ui/issues/issue-13407.stderr index 05fd97b025f..b280de3158f 100644 --- a/src/test/ui/issues/issue-13407.stderr +++ b/src/test/ui/issues/issue-13407.stderr @@ -11,10 +11,10 @@ LL | A::C = 1; | ^ expected struct `A::C`, found integer error[E0070]: invalid left-hand side of assignment - --> $DIR/issue-13407.rs:6:5 + --> $DIR/issue-13407.rs:6:10 | LL | A::C = 1; - | ----^^^^ + | ---- ^ | | | cannot assign to this expression diff --git a/src/test/ui/issues/issue-26093.stderr b/src/test/ui/issues/issue-26093.stderr index 48f72cef0a8..c96228b518a 100644 --- a/src/test/ui/issues/issue-26093.stderr +++ b/src/test/ui/issues/issue-26093.stderr @@ -1,8 +1,8 @@ error[E0070]: invalid left-hand side of assignment - --> $DIR/issue-26093.rs:3:9 + --> $DIR/issue-26093.rs:3:16 | LL | $thing = 42; - | ^^^^^^^^^^^ + | ^ ... LL | not_a_place!(99); | ----------------- diff --git a/src/test/ui/issues/issue-34334.stderr b/src/test/ui/issues/issue-34334.stderr index e54f0c77cd9..3055e316a08 100644 --- a/src/test/ui/issues/issue-34334.stderr +++ b/src/test/ui/issues/issue-34334.stderr @@ -36,10 +36,10 @@ LL | let sr: Vec<(u32, _, _) = vec![]; = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) error[E0070]: invalid left-hand side of assignment - --> $DIR/issue-34334.rs:2:13 + --> $DIR/issue-34334.rs:2:29 | LL | let sr: Vec<(u32, _, _) = vec![]; - | ---------------^^^^^^^^^ + | --------------- ^ | | | cannot assign to this expression diff --git a/src/test/ui/type/type-check/assignment-expected-bool.stderr b/src/test/ui/type/type-check/assignment-expected-bool.stderr index bbd961f8450..3f1caddf728 100644 --- a/src/test/ui/type/type-check/assignment-expected-bool.stderr +++ b/src/test/ui/type/type-check/assignment-expected-bool.stderr @@ -98,10 +98,10 @@ LL | || (0 = 0); | help: try comparing for equality: `0 == 0` error[E0070]: invalid left-hand side of assignment - --> $DIR/assignment-expected-bool.rs:31:20 + --> $DIR/assignment-expected-bool.rs:31:22 | LL | let _: usize = 0 = 0; - | -^^^^ + | - ^ | | | cannot assign to this expression |
