Skip to content

Commit f221981

Browse files
committed
---
yaml --- r: 102400 b: refs/heads/master c: 9f6bced h: refs/heads/master v: v3
1 parent 13a319b commit f221981

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
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: 987de2986539fe01e86aa711b43f05e94becba89
2+
refs/heads/master: 9f6bcedb6767dafbb65d6536429eccea2c600103
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 crate's id.
3170+
a hash representing the crates id.
31713171

31723172
## The standard library and the prelude
31733173

trunk/src/librustc/back/link.rs

Lines changed: 2 additions & 4 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, CString};
29+
use std::c_str::ToCStr;
3030
use std::char;
3131
use std::os::consts::{macos, freebsd, linux, android, win32};
3232
use std::ptr;
@@ -61,9 +61,7 @@ pub fn llvm_err(sess: Session, msg: ~str) -> ! {
6161
if cstr == ptr::null() {
6262
sess.fatal(msg);
6363
} else {
64-
let err = CString::new(cstr, false);
65-
let err = str::from_utf8_lossy(err.as_bytes());
66-
sess.fatal(msg + ": " + err.as_slice());
64+
sess.fatal(msg + ": " + str::raw::from_c_str(cstr));
6765
}
6866
}
6967
}

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)