From d283574558b98b659997fd7bc97028158297388c Mon Sep 17 00:00:00 2001 From: Jakub Wieczorek Date: Sun, 17 Aug 2014 22:10:25 +0200 Subject: Forbid extern statics from appearing in patterns Fixes #16149. --- src/libsyntax/ast_util.rs | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/libsyntax') diff --git a/src/libsyntax/ast_util.rs b/src/libsyntax/ast_util.rs index 5674c6675f9..1a4b41404be 100644 --- a/src/libsyntax/ast_util.rs +++ b/src/libsyntax/ast_util.rs @@ -209,21 +209,6 @@ pub fn name_to_dummy_lifetime(name: Name) -> Lifetime { name: name } } -pub fn is_unguarded(a: &Arm) -> bool { - match a.guard { - None => true, - _ => false - } -} - -pub fn unguarded_pat(a: &Arm) -> Option>> { - if is_unguarded(a) { - Some(/* FIXME (#2543) */ a.pats.clone()) - } else { - None - } -} - /// Generate a "pretty" name for an `impl` from its type and trait. /// This is designed so that symbols of `impl`'d methods give some /// hint of where they came from, (previously they would all just be -- cgit 1.4.1-3-g733a5