Skip to content

Commit 021b203

Browse files
committed
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.
1 parent 22be982 commit 021b203

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/comp/front/attr.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ fn find_linkage_metas(vec[ast::attribute] attrs) -> vec[@ast::meta_item] {
2828
metas += items;
2929
}
3030
case (_) {
31-
// FIXME: Maybe need a warning that this attr isn't
32-
// being used for linkage
31+
log "ignoring link attribute that has incorrect type";
3332
}
3433
}
3534
}

0 commit comments

Comments
 (0)