Skip to content

Commit 213c5fd

Browse files
committed
---
yaml --- r: 131583 b: refs/heads/dist-snap c: 15b680a h: refs/heads/master i: 131581: 6013e16 131579: c0cd60e 131575: 26d6ed3 131567: e2acc61 131551: da44a61 131519: d656def 131455: f1f7b43 131327: 6d566ed 131071: 126dbf5 v: v3
1 parent c8bec3e commit 213c5fd

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 457a3c991d79b971be07fce75f9d0c12848fb37c
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 41ed455db8cbde3cfff0d72e0ae383c20721b27a
9+
refs/heads/dist-snap: 15b680ae86eefae754c3a348d89207fa100b4ca6
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/librustc/metadata/creader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ pub fn validate_crate_name(sess: Option<&Session>, s: &str, sp: Option<Span>) {
180180
for c in s.chars() {
181181
if c.is_alphanumeric() { continue }
182182
if c == '_' || c == '-' { continue }
183-
err(format!("invalid character in crate name: `{}`", c).as_slice());
183+
err(format!("invalid character `{}` in crate name: `{}`", c, s).as_slice());
184184
}
185185
match sess {
186186
Some(sess) => sess.abort_if_errors(),

branches/dist-snap/src/librustc/middle/trans/debuginfo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3972,7 +3972,7 @@ impl NamespaceTreeNode {
39723972
}
39733973

39743974
fn crate_root_namespace<'a>(cx: &'a CrateContext) -> &'a str {
3975-
cx.link_meta.crateid.name.as_slice()
3975+
cx.link_meta.crate_name.as_slice()
39763976
}
39773977

39783978
fn namespace_for_item(cx: &CrateContext, def_id: ast::DefId) -> Rc<NamespaceTreeNode> {

branches/dist-snap/src/test/run-make/issue-11908/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@
1010
all:
1111
mkdir $(TMPDIR)/other
1212
$(RUSTC) foo.rs --crate-type=dylib
13-
$(RUSTC) foo.rs --crate-type=dylib -o $(TMPDIR)/other/libfoo.so
13+
mv $(call DYLIB,foo) $(TMPDIR)/other
14+
$(RUSTC) foo.rs --crate-type=dylib
1415
$(RUSTC) bar.rs -L $(TMPDIR)/other 2>&1 | \
1516
grep "multiple dylib candidates"
1617
rm -rf $(TMPDIR)
1718
mkdir -p $(TMPDIR)/other
1819
$(RUSTC) foo.rs --crate-type=rlib
19-
$(RUSTC) foo.rs --crate-type=rlib -o $(TMPDIR)/other/libfoo.rlib
20+
mv $(TMPDIR)/libfoo.rlib $(TMPDIR)/other
21+
$(RUSTC) foo.rs --crate-type=rlib
2022
$(RUSTC) bar.rs -L $(TMPDIR)/other 2>&1 | \
2123
grep "multiple rlib candidates"

0 commit comments

Comments
 (0)