Skip to content

Commit 9d79458

Browse files
committed
---
yaml --- r: 3595 b: refs/heads/master c: 375f0b2 h: refs/heads/master i: 3593: b4ed021 3591: db4e84d v: v3
1 parent f1e9835 commit 9d79458

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

[refs]

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: a793b85fbd92c8937d219d62928a5019d21bf821
2+
refs/heads/master: 375f0b22113c5718139247907390255049579873

trunk/src/comp/metadata/creader.rs

+2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ fn find_library_crate(&session::session sess, &ast::ident ident,
5858
&vec[str] library_search_paths) ->
5959
option::t[tup(str, vec[u8])] {
6060

61+
attr::require_unique_names(sess, metas);
62+
6163
auto crate_name = {
6264
auto name_items = attr::find_meta_items_by_name(metas, "name");
6365
alt (vec::last(name_items)) {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// xfail-stage0
2+
// error-pattern:duplicate meta item `name`
3+
4+
use std(name = "std",
5+
name = "nonstd");
6+
7+
fn main(){}

0 commit comments

Comments
 (0)