diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2013-01-22 11:57:39 -0800 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2013-01-22 11:58:08 -0800 |
| commit | a8d076d2de662cb1a13cc1efa092e7202b129eae (patch) | |
| tree | 03992d0115aa2063fdfbd5e991dc9baee0ec04a1 /src/libsyntax/attr.rs | |
| parent | 8869e723869fe95af0cd022d84c134f7a84fd4a0 (diff) | |
| download | rust-a8d076d2de662cb1a13cc1efa092e7202b129eae.tar.gz rust-a8d076d2de662cb1a13cc1efa092e7202b129eae.zip | |
syntax/rustc: Make some metadata-related functions take slices, kill bad copies
Too small to review.
Diffstat (limited to 'src/libsyntax/attr.rs')
| -rw-r--r-- | src/libsyntax/attr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/attr.rs b/src/libsyntax/attr.rs index 3906711b4b6..531b9501d6c 100644 --- a/src/libsyntax/attr.rs +++ b/src/libsyntax/attr.rs @@ -369,7 +369,7 @@ impl inline_attr : cmp::Eq { } /// True if something like #[inline] is found in the list of attrs. -fn find_inline_attr(attrs: ~[ast::attribute]) -> inline_attr { +fn find_inline_attr(attrs: &[ast::attribute]) -> inline_attr { // FIXME (#2809)---validate the usage of #[inline] and #[inline(always)] do vec::foldl(ia_none, attrs) |ia,attr| { match attr.node.value.node { |
