We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ed33080 + b68fa1a commit 1bb42e5Copy full SHA for 1bb42e5
src/libsyntax/attr.rs
@@ -271,21 +271,6 @@ pub fn sort_meta_items(items: &[Gc<MetaItem>]) -> Vec<Gc<MetaItem>> {
271
}).collect()
272
}
273
274
-/**
275
- * From a list of crate attributes get only the meta_items that affect crate
276
- * linkage
277
- */
278
-pub fn find_linkage_metas(attrs: &[Attribute]) -> Vec<Gc<MetaItem>> {
279
- let mut result = Vec::new();
280
- for attr in attrs.iter().filter(|at| at.check_name("link")) {
281
- match attr.meta().node {
282
- MetaList(_, ref items) => result.push_all(items.as_slice()),
283
- _ => ()
284
- }
285
286
- result
287
-}
288
-
289
pub fn find_crateid(attrs: &[Attribute]) -> Option<CrateId> {
290
match first_attr_value_str_by_name(attrs, "crate_id") {
291
None => None,
0 commit comments