Skip to content

Commit ec43916

Browse files
committed
---
yaml --- r: 7371 b: refs/heads/master c: a7bd817 h: refs/heads/master i: 7369: 6d05942 7367: aaca739 v: v3
1 parent d4422aa commit ec43916

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 87418dbc937ffbadb18d369808af4372484d57bc
2+
refs/heads/master: a7bd817017c247edb0680936c6cf34ec4d8e7fc0

trunk/src/comp/back/link.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,10 @@ fn build_link_meta(sess: session, c: ast::crate, output: str,
445445
let name =
446446
{
447447
let os = str::split(fs::basename(output), '.' as u8);
448-
assert (vec::len(os) >= 2u);
448+
if (vec::len(os) < 2u) {
449+
sess.fatal(#fmt("Output file name %s doesn't\
450+
appear to have an extension", output));
451+
}
449452
vec::pop(os);
450453
str::connect(os, ".")
451454
};

0 commit comments

Comments
 (0)