about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2019-02-05 03:22:25 -0800
committerEsteban Küber <esteban@kuber.com.ar>2019-02-07 01:42:54 -0800
commit80c0b326d6513bb7812a85bc4c753cb211a0033d (patch)
treecdc1ef642b07a24ee7f6cf34a344cf9126bdad7b /src/libsyntax
parent60459429c584d9ef98fc03b4a93518e3dd1307ac (diff)
downloadrust-80c0b326d6513bb7812a85bc4c753cb211a0033d.tar.gz
rust-80c0b326d6513bb7812a85bc4c753cb211a0033d.zip
Remove unused `match`
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/parse/parser.rs23
1 files changed, 4 insertions, 19 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 949033b6a5e..c1dd75b47c8 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -1170,23 +1170,7 @@ impl<'a> Parser<'a> {
 
                 Ok(())
             },
-            None => {
-                match (
-                    &self.token,
-                    self.unmatched_angle_bracket_count,
-                    self.max_angle_bracket_count > 1,
-                ) {
-                    // (token::OpenDelim(_), 1, true) | (token::Semi, 1, true) => {
-                    //     self.struct_span_err(
-                    //         self.span,
-                    //         &format!("expected `>`, found `{}`", self.this_token_to_string()),
-                    //     // ).span_suggestion_short(
-                    //     ).emit();
-                    //     Ok(())
-                    // }
-                    _ => self.unexpected(),
-                }
-            }
+            None => self.unexpected(),
         }
     }
 
@@ -5846,11 +5830,12 @@ impl<'a> Parser<'a> {
                     .span_suggestion(
                         span,
                         &format!(
-                            "remove extra angle bracket{}",
+                            "{}remove extra angle bracket{}",
+                            if plural { "" } else { "maybe " }, // account for `S::<u64(3)`
                             if plural { "s" } else { "" }
                         ),
                         String::new(),
-                        Applicability::MachineApplicable,
+                        Applicability::MaybeIncorrect,
                     )
                     .emit();