Add some logging to attr when reading crate link attributes
Only link attributes of the meta_list type are considered when matching crate attributes. Instead of doing nothing we can at least log that link attributes of other types were ignored.
This commit is contained in:
parent
22be98264e
commit
021b203fc6
1 changed files with 1 additions and 2 deletions
|
|
@ -28,8 +28,7 @@ fn find_linkage_metas(vec[ast::attribute] attrs) -> vec[@ast::meta_item] {
|
|||
metas += items;
|
||||
}
|
||||
case (_) {
|
||||
// FIXME: Maybe need a warning that this attr isn't
|
||||
// being used for linkage
|
||||
log "ignoring link attribute that has incorrect type";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue