about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-07-01 12:30:27 -0700
committerBrian Anderson <banderson@mozilla.com>2011-07-01 12:30:27 -0700
commit021b203fc6f0c45d73f12da058ffbd227a0de3e0 (patch)
treedada0c37bf7f052ae12865737a4f845600b92a79 /src
parent22be98264e7af16d1869348e938de5b3bcd401a7 (diff)
downloadrust-021b203fc6f0c45d73f12da058ffbd227a0de3e0.tar.gz
rust-021b203fc6f0c45d73f12da058ffbd227a0de3e0.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/comp/front/attr.rs3
1 files changed, 1 insertions, 2 deletions
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";
             }
         }
     }