From 2edd123a233fff2fbccd17299e0c14d2203e1acc Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Thu, 16 Apr 2020 12:44:57 -0700 Subject: Dogfood or_patterns in the standard library --- src/liballoc/collections/btree/map.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/liballoc/collections') diff --git a/src/liballoc/collections/btree/map.rs b/src/liballoc/collections/btree/map.rs index 3fc1b5e16b3..38196b2d4b4 100644 --- a/src/liballoc/collections/btree/map.rs +++ b/src/liballoc/collections/btree/map.rs @@ -2058,12 +2058,7 @@ where (Excluded(s), Excluded(e)) if s == e => { panic!("range start and end are equal and excluded in BTreeMap") } - (Included(s), Included(e)) - | (Included(s), Excluded(e)) - | (Excluded(s), Included(e)) - | (Excluded(s), Excluded(e)) - if s > e => - { + (Included(s) | Excluded(s), Included(e) | Excluded(e)) if s > e => { panic!("range start is greater than range end in BTreeMap") } _ => {} -- cgit 1.4.1-3-g733a5