Skip to content

Commit b79c05a

Browse files
committed
---
yaml --- r: 102403 b: refs/heads/master c: 0e95b08 h: refs/heads/master i: 102401: 982b9bd 102399: 13a319b v: v3
1 parent db74a33 commit b79c05a

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
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: 13e10f5b7e6fef35770cb6f835492893d43c2e07
2+
refs/heads/master: 0e95b086db515386faf41549b490515a540165b1
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
}

trunk/src/librustdoc/html/markdown.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ use std::vec;
3838
use collections::HashMap;
3939

4040
use html::highlight;
41-
use html::escape::Escape;
4241

4342
/// A unit struct which has the `fmt::Show` trait implemented. When
4443
/// formatted, this struct will emit the HTML corresponding to the rendered
@@ -198,7 +197,7 @@ pub fn render(w: &mut io::Writer, s: &str) -> fmt::Result {
198197

199198
// Render the HTML
200199
let text = format!(r#"<h{lvl} id="{id}">{}</h{lvl}>"#,
201-
Escape(s.as_slice()), lvl = level, id = id);
200+
s, lvl = level, id = id);
202201
text.with_c_str(|p| unsafe { bufputs(ob, p) });
203202
}
204203

0 commit comments

Comments
 (0)