Skip to content

Commit 982b9bd

Browse files
committed
---
yaml --- r: 102401 b: refs/heads/master c: bd47f67 h: refs/heads/master i: 102399: 13a319b v: v3
1 parent f221981 commit 982b9bd

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 9f6bcedb6767dafbb65d6536429eccea2c600103
2+
refs/heads/master: bd47f679faffaeedd0c046d814d11dc9d2755ee1
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 6e7f170fedd3c526a643c0b2d13863acd982be02
55
refs/heads/try: a97642026c18a624ff6ea01075dd9550f8ed07ff

trunk/src/doc/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3167,7 +3167,7 @@ Now compile and run like this (adjust to your platform if necessary):
31673167
Notice that the library produced contains the version in the file name
31683168
as well as an inscrutable string of alphanumerics. As explained in the previous paragraph,
31693169
these are both part of Rust's library versioning scheme. The alphanumerics are
3170-
a hash representing the crates id.
3170+
a hash representing the crate's id.
31713171

31723172
## The standard library and the prelude
31733173

trunk/src/librustc/back/link.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use util::common::time;
2626
use util::ppaux;
2727
use util::sha2::{Digest, Sha256};
2828

29-
use std::c_str::ToCStr;
29+
use std::c_str::{ToCStr, CString};
3030
use std::char;
3131
use std::os::consts::{macos, freebsd, linux, android, win32};
3232
use std::ptr;
@@ -61,7 +61,9 @@ pub fn llvm_err(sess: Session, msg: ~str) -> ! {
6161
if cstr == ptr::null() {
6262
sess.fatal(msg);
6363
} else {
64-
sess.fatal(msg + ": " + str::raw::from_c_str(cstr));
64+
let err = CString::new(cstr, false);
65+
let err = str::from_utf8_lossy(err.as_bytes());
66+
sess.fatal(msg + ": " + err.as_slice());
6567
}
6668
}
6769
}

0 commit comments

Comments
 (0)