diff options
| author | bors <bors@rust-lang.org> | 2014-06-17 22:31:41 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-06-17 22:31:41 +0000 |
| commit | 1bb42e557c9ce41a8ccd3e6992dfcd81d5aef66f (patch) | |
| tree | 42110158ce1e5da55d19e8c78af4a2d67de14f21 /src | |
| parent | ed3308098c7ddd00039f2fcb1a128791757b2b1b (diff) | |
| parent | b68fa1ad5ed4312a538ff03c01c6ba523d28c6d9 (diff) | |
| download | rust-1bb42e557c9ce41a8ccd3e6992dfcd81d5aef66f.tar.gz rust-1bb42e557c9ce41a8ccd3e6992dfcd81d5aef66f.zip | |
auto merge of #14956 : nathantypanski/rust/master, r=alexcrichton
Closes #14329 Recent-ish uses of `find_linkage_metas` from my `git grep` output are [here](https://gist.github.com/nathantypanski/b9d2d453718a22765f5c), for those interested who wish to tread through the history.
Diffstat (limited to 'src')
| -rw-r--r-- | src/libsyntax/attr.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/libsyntax/attr.rs b/src/libsyntax/attr.rs index 31dd07f463c..18a91fe465e 100644 --- a/src/libsyntax/attr.rs +++ b/src/libsyntax/attr.rs @@ -271,21 +271,6 @@ pub fn sort_meta_items(items: &[Gc<MetaItem>]) -> Vec<Gc<MetaItem>> { }).collect() } -/** - * From a list of crate attributes get only the meta_items that affect crate - * linkage - */ -pub fn find_linkage_metas(attrs: &[Attribute]) -> Vec<Gc<MetaItem>> { - let mut result = Vec::new(); - for attr in attrs.iter().filter(|at| at.check_name("link")) { - match attr.meta().node { - MetaList(_, ref items) => result.push_all(items.as_slice()), - _ => () - } - } - result -} - pub fn find_crateid(attrs: &[Attribute]) -> Option<CrateId> { match first_attr_value_str_by_name(attrs, "crate_id") { None => None, |
