Merge pull request #906 from Manishearth/birkenfeld-master
Rustup to *rustc 1.10.0-nightly (62e2b2fb7 2016-05-06)*
This commit is contained in:
commit
d70e7bb5fc
10 changed files with 49 additions and 47 deletions
|
|
@ -340,7 +340,7 @@ fn main() {
|
|||
for (_, v) in &m {
|
||||
//~^ you seem to want to iterate on a map's values
|
||||
//~| HELP use the corresponding method
|
||||
//~| SUGGESTION for v in &m.values()
|
||||
//~| SUGGESTION for v in m.values()
|
||||
let _v = v;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ fn ref_pats() {
|
|||
match v {
|
||||
//~^ERROR add `&` to all patterns
|
||||
//~|HELP instead of
|
||||
//~|SUGGESTION `match *v { .. }`
|
||||
//~|SUGGESTION match *v { .. }
|
||||
&Some(v) => println!("{:?}", v),
|
||||
&None => println!("none"),
|
||||
}
|
||||
|
|
@ -153,7 +153,7 @@ fn ref_pats() {
|
|||
match tup {
|
||||
//~^ERROR add `&` to all patterns
|
||||
//~|HELP instead of
|
||||
//~|SUGGESTION `match *tup { .. }`
|
||||
//~|SUGGESTION match *tup { .. }
|
||||
&(v, 1) => println!("{}", v),
|
||||
_ => println!("none"),
|
||||
}
|
||||
|
|
@ -162,7 +162,7 @@ fn ref_pats() {
|
|||
match &w {
|
||||
//~^ERROR add `&` to both
|
||||
//~|HELP try
|
||||
//~|SUGGESTION `match w { .. }`
|
||||
//~|SUGGESTION match w { .. }
|
||||
&Some(v) => println!("{:?}", v),
|
||||
&None => println!("none"),
|
||||
}
|
||||
|
|
@ -176,7 +176,7 @@ fn ref_pats() {
|
|||
if let &None = a {
|
||||
//~^ERROR add `&` to all patterns
|
||||
//~|HELP instead of
|
||||
//~|SUGGESTION `if let ... = *a { .. }`
|
||||
//~|SUGGESTION if let .. = *a { .. }
|
||||
println!("none");
|
||||
}
|
||||
|
||||
|
|
@ -184,7 +184,7 @@ fn ref_pats() {
|
|||
if let &None = &b {
|
||||
//~^ERROR add `&` to both
|
||||
//~|HELP try
|
||||
//~|SUGGESTION `if let ... = b { .. }`
|
||||
//~|SUGGESTION if let .. = b { .. }
|
||||
println!("none");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@ fn syntax_error() {
|
|||
//~^ERROR: regex syntax error: empty alternate
|
||||
let wrong_char_ranice = Regex::new("[z-a]");
|
||||
//~^ERROR: regex syntax error: invalid character class range
|
||||
let some_unicode = Regex::new("[é-è]");
|
||||
//~^ERROR: regex syntax error: invalid character class range
|
||||
|
||||
let some_regex = Regex::new(OPENING_PAREN);
|
||||
//~^ERROR: regex syntax error on position 0: unclosed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue