From 48fedcb36ffdb4248c238a1bfa7a846e6e27cb68 Mon Sep 17 00:00:00 2001 From: Huon Wilson Date: Thu, 19 Dec 2013 16:53:02 +1100 Subject: extra: remove sort in favour of the std method. Fixes #9676. --- src/libsyntax/attr.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/libsyntax') diff --git a/src/libsyntax/attr.rs b/src/libsyntax/attr.rs index 5e16213190c..9b616781d4f 100644 --- a/src/libsyntax/attr.rs +++ b/src/libsyntax/attr.rs @@ -10,8 +10,6 @@ // Functions dealing with attributes and meta items -use extra; - use ast; use ast::{Attribute, Attribute_, MetaItem, MetaWord, MetaNameValue, MetaList}; use codemap::{Span, Spanned, spanned, dummy_spanned}; @@ -205,7 +203,7 @@ pub fn sort_meta_items(items: &[@MetaItem]) -> ~[@MetaItem] { .map(|&mi| (mi.name(), mi)) .collect::<~[(@str, @MetaItem)]>(); - extra::sort::quick_sort(v, |&(a, _), &(b, _)| a <= b); + v.sort(|&(a, _), &(b, _)| a <= b); // There doesn't seem to be a more optimal way to do this v.move_iter().map(|(_, m)| { -- cgit 1.4.1-3-g733a5