Skip to content

Commit bcbb2e2

Browse files
committed
---
yaml --- r: 149787 b: refs/heads/try2 c: bd47f67 h: refs/heads/master i: 149785: 63fb4a9 149783: 8504adf v: v3
1 parent 37a07db commit bcbb2e2

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
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 9f6bcedb6767dafbb65d6536429eccea2c600103
8+
refs/heads/try2: bd47f679faffaeedd0c046d814d11dc9d2755ee1
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/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

branches/try2/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)