From 021b203fc6f0c45d73f12da058ffbd227a0de3e0 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Fri, 1 Jul 2011 12:30:27 -0700 Subject: 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. --- src/comp/front/attr.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/comp') diff --git a/src/comp/front/attr.rs b/src/comp/front/attr.rs index 25fdcdb5faa..e29e5c95de7 100644 --- a/src/comp/front/attr.rs +++ b/src/comp/front/attr.rs @@ -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"; } } } -- cgit 1.4.1-3-g733a5