Skip to content

Commit b25e785

Browse files
committed
Fix some comment drift
1 parent 33ee731 commit b25e785

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/comp/metadata/creader.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,15 @@ fn find_library_crate(sess: session::session, ident: ast::ident,
112112

113113
attr::require_unique_names(sess, metas);
114114

115-
// FIXME: Probably want a warning here since the user
116-
// is using the wrong type of meta item
117115
let crate_name =
118116
{
119117
let name_items = attr::find_meta_items_by_name(metas, "name");
120118
alt vec::last(name_items) {
121119
some(i) {
122120
alt attr::get_meta_item_value_str(i) {
123121
some(n) { n }
122+
// FIXME: Probably want a warning here since the user
123+
// is using the wrong type of meta item
124124
_ { ident }
125125
}
126126
}

0 commit comments

Comments
 (0)