syntax/rustc: Make some metadata-related functions take slices, kill bad copies

Too small to review.
This commit is contained in:
Tim Chevalier
2013-01-22 11:57:39 -08:00
parent 8869e72386
commit a8d076d2de
5 changed files with 67 additions and 69 deletions

View File

@@ -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 {