Skip to content

Commit 15b680a

Browse files
committed
Test fixes and rebase conflicts
1 parent 41ed455 commit 15b680a

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/librustc/metadata/creader.rs

+1-1
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(),

src/librustc/middle/trans/debuginfo.rs

+1-1
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> {

src/test/run-make/issue-11908/Makefile

+4-2
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)