]> git.lizzy.rs Git - rust.git/commitdiff
Added note referencing issue which added error.
authorDavid Wood <david@davidtw.co>
Thu, 6 Sep 2018 22:37:44 +0000 (00:37 +0200)
committerDavid Wood <david@davidtw.co>
Thu, 6 Sep 2018 22:37:44 +0000 (00:37 +0200)
src/librustc_passes/ast_validation.rs
src/test/ui/rfc-2497-if-let-chains/syntax-ambiguity-2015.stderr
src/test/ui/rfc-2497-if-let-chains/syntax-ambiguity-2018.stderr

index 3981d9f0c6453af87050dbce9659234b64de70de..52d61792ed2d3993ac6f0cffd06eaea5e407ef1d 100644 (file)
@@ -180,6 +180,9 @@ fn while_if_let_ambiguity(&self, expr: &P<Expr>) {
             err.note(
                 "this will be a error until the `let_chains` feature is stabilized"
             );
+            err.note(
+                "see rust-lang/rust#53668 for more information"
+            );
 
             if let Ok(snippet) = self.session.source_map().span_to_snippet(span) {
                 err.span_suggestion(
index 0e6ccb5d9d8a7d92f27a8db5a3170d17937a7417..8597294913f2754fa92bb582bcff6e49522c6592 100644 (file)
@@ -5,6 +5,7 @@ LL |     if let Range { start: _, end: _ } = true..true && false { }
    |                                               ^^^^^^^^^^^^^ help: consider adding parentheses: `(true && false)`
    |
    = note: this will be a error until the `let_chains` feature is stabilized
+   = note: see rust-lang/rust#53668 for more information
 
 error: ambigious use of `||`
   --> $DIR/syntax-ambiguity-2015.rs:24:47
@@ -13,6 +14,7 @@ LL |     if let Range { start: _, end: _ } = true..true || false { }
    |                                               ^^^^^^^^^^^^^ help: consider adding parentheses: `(true || false)`
    |
    = note: this will be a error until the `let_chains` feature is stabilized
+   = note: see rust-lang/rust#53668 for more information
 
 error: ambigious use of `&&`
   --> $DIR/syntax-ambiguity-2015.rs:27:50
@@ -21,6 +23,7 @@ LL |     while let Range { start: _, end: _ } = true..true && false { }
    |                                                  ^^^^^^^^^^^^^ help: consider adding parentheses: `(true && false)`
    |
    = note: this will be a error until the `let_chains` feature is stabilized
+   = note: see rust-lang/rust#53668 for more information
 
 error: ambigious use of `||`
   --> $DIR/syntax-ambiguity-2015.rs:30:50
@@ -29,6 +32,7 @@ LL |     while let Range { start: _, end: _ } = true..true || false { }
    |                                                  ^^^^^^^^^^^^^ help: consider adding parentheses: `(true || false)`
    |
    = note: this will be a error until the `let_chains` feature is stabilized
+   = note: see rust-lang/rust#53668 for more information
 
 error: ambigious use of `&&`
   --> $DIR/syntax-ambiguity-2015.rs:33:19
@@ -37,6 +41,7 @@ LL |     if let true = false && false { }
    |                   ^^^^^^^^^^^^^^ help: consider adding parentheses: `(false && false)`
    |
    = note: this will be a error until the `let_chains` feature is stabilized
+   = note: see rust-lang/rust#53668 for more information
 
 error: ambigious use of `&&`
   --> $DIR/syntax-ambiguity-2015.rs:36:22
@@ -45,6 +50,7 @@ LL |     while let true = (1 == 2) && false { }
    |                      ^^^^^^^^^^^^^^^^^ help: consider adding parentheses: `((1 == 2) && false)`
    |
    = note: this will be a error until the `let_chains` feature is stabilized
+   = note: see rust-lang/rust#53668 for more information
 
 error: aborting due to 6 previous errors
 
index 2bbeda360d7553d1eb754f800f40672aad79c41e..86ee04747b29dbc80bf75287831923f8ed314df3 100644 (file)
@@ -5,6 +5,7 @@ LL |     if let Range { start: _, end: _ } = true..true && false { }
    |                                               ^^^^^^^^^^^^^ help: consider adding parentheses: `(true && false)`
    |
    = note: this will be a error until the `let_chains` feature is stabilized
+   = note: see rust-lang/rust#53668 for more information
 
 error: ambigious use of `||`
   --> $DIR/syntax-ambiguity-2018.rs:24:47
@@ -13,6 +14,7 @@ LL |     if let Range { start: _, end: _ } = true..true || false { }
    |                                               ^^^^^^^^^^^^^ help: consider adding parentheses: `(true || false)`
    |
    = note: this will be a error until the `let_chains` feature is stabilized
+   = note: see rust-lang/rust#53668 for more information
 
 error: ambigious use of `&&`
   --> $DIR/syntax-ambiguity-2018.rs:27:50
@@ -21,6 +23,7 @@ LL |     while let Range { start: _, end: _ } = true..true && false { }
    |                                                  ^^^^^^^^^^^^^ help: consider adding parentheses: `(true && false)`
    |
    = note: this will be a error until the `let_chains` feature is stabilized
+   = note: see rust-lang/rust#53668 for more information
 
 error: ambigious use of `||`
   --> $DIR/syntax-ambiguity-2018.rs:30:50
@@ -29,6 +32,7 @@ LL |     while let Range { start: _, end: _ } = true..true || false { }
    |                                                  ^^^^^^^^^^^^^ help: consider adding parentheses: `(true || false)`
    |
    = note: this will be a error until the `let_chains` feature is stabilized
+   = note: see rust-lang/rust#53668 for more information
 
 error: ambigious use of `&&`
   --> $DIR/syntax-ambiguity-2018.rs:33:19
@@ -37,6 +41,7 @@ LL |     if let true = false && false { }
    |                   ^^^^^^^^^^^^^^ help: consider adding parentheses: `(false && false)`
    |
    = note: this will be a error until the `let_chains` feature is stabilized
+   = note: see rust-lang/rust#53668 for more information
 
 error: ambigious use of `&&`
   --> $DIR/syntax-ambiguity-2018.rs:36:22
@@ -45,6 +50,7 @@ LL |     while let true = (1 == 2) && false { }
    |                      ^^^^^^^^^^^^^^^^^ help: consider adding parentheses: `((1 == 2) && false)`
    |
    = note: this will be a error until the `let_chains` feature is stabilized
+   = note: see rust-lang/rust#53668 for more information
 
 error: aborting due to 6 previous errors