diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-12-19 16:53:02 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-12-20 12:38:46 +1100 |
| commit | 48fedcb36ffdb4248c238a1bfa7a846e6e27cb68 (patch) | |
| tree | 1c5efc1bd2871cbbb038bf2f2999d5192bf28dd1 /src/libsyntax | |
| parent | 721609e4ae50142e631e4c9d190a6065fd3f63f7 (diff) | |
| download | rust-48fedcb36ffdb4248c238a1bfa7a846e6e27cb68.tar.gz rust-48fedcb36ffdb4248c238a1bfa7a846e6e27cb68.zip | |
extra: remove sort in favour of the std method.
Fixes #9676.
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/attr.rs | 4 |
1 files changed, 1 insertions, 3 deletions
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)| { |
