Correctly locate the crate's version from the link attribute

This commit is contained in:
Brian Anderson 2011-06-29 14:19:29 -07:00
parent 29afe1a518
commit d4b5b48e0a

View file

@ -298,7 +298,7 @@ fn build_link_meta(&session::session sess, &ast::crate c,
// FIXME: Should probably warn about duplicate name items
name = some(v);
}
case (ast::meta_name_value("value", ?v)) {
case (ast::meta_name_value("vers", ?v)) {
// FIXME: Should probably warn about duplicate value items
vers = some(v);
}