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:
Brian Anderson 2011-07-01 12:30:27 -07:00
parent 22be98264e
commit 021b203fc6
1 changed files with 1 additions and 2 deletions

View File

@ -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";
}
}
}