Skip to content

Commit c625c0a

Browse files
committed
---
yaml --- r: 95019 b: refs/heads/dist-snap c: d7e8f4c h: refs/heads/master i: 95017: a145c59 95015: e1b2021 v: v3
1 parent edbfc1e commit c625c0a

File tree

116 files changed

+775
-896
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+775
-896
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: c151d371fcfb51fbf4d84f0ef266e30d64acd71a
9+
refs/heads/dist-snap: d7e8f4cb03e577169f78d57b74dc17877e1c96d3
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/Makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@ endif
141141

142142
# version-string calculation
143143
CFG_GIT_DIR := $(CFG_SRC_DIR).git
144-
CFG_RELEASE = 0.9-pre
144+
CFG_RELEASE = 0.8
145145
CFG_VERSION = $(CFG_RELEASE)
146146
# windows exe's need numeric versions - don't use anything but
147147
# numbers and dots here
148-
CFG_VERSION_WIN = 0.9
148+
CFG_VERSION_WIN = 0.8
149149

150150
ifneq ($(wildcard $(CFG_GIT)),)
151151
ifneq ($(wildcard $(CFG_GIT_DIR)),)

branches/dist-snap/mk/clean.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ clean-misc:
5454
$(Q)rm -Rf rust-stage0-*.tar.bz2 $(PKG_NAME)-*.tar.gz dist
5555
$(Q)rm -Rf $(foreach ext, \
5656
html aux cp fn ky log pdf pg toc tp vr cps, \
57-
$(wildcard doc/*.$(ext)))
58-
$(Q)find doc/std doc/extra -mindepth 1 | xargs rm -Rf
57+
$(wildcard doc/*.$(ext) \
58+
doc/*/*.$(ext) \
59+
doc/*/*/*.$(ext)))
5960
$(Q)rm -Rf doc/version.md
6061
$(Q)rm -Rf $(foreach sub, index styles files search javascript, \
6162
$(wildcard doc/*/$(sub)))

branches/dist-snap/src/etc/kate/rust.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<!ENTITY rustIdent "[a-zA-Z_][a-zA-Z_0-9]*">
88
<!ENTITY rustIntSuf "([iu](8|16|32|64)?)?">
99
]>
10-
<language name="Rust" version="0.9-pre" kateversion="2.4" section="Sources" extensions="*.rs;*.rc" mimetype="text/x-rust" priority="15">
10+
<language name="Rust" version="0.8" kateversion="2.4" section="Sources" extensions="*.rs;*.rc" mimetype="text/x-rust" priority="15">
1111
<highlighting>
1212
<list name="fn">
1313
<item> fn </item>

branches/dist-snap/src/libextra/base64.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl<'self> ToBase64 for &'self [u8] {
6868
*
6969
* fn main () {
7070
* let str = [52,32].to_base64(standard);
71-
* println!("{}", str);
71+
* printfln!("%s", str);
7272
* }
7373
* ```
7474
*/
@@ -177,11 +177,11 @@ impl<'self> FromBase64 for &'self str {
177177
*
178178
* fn main () {
179179
* let hello_str = "Hello, World".to_base64(standard);
180-
* println!("{}", hello_str);
180+
* printfln!("%s", hello_str);
181181
* let bytes = hello_str.from_base64();
182-
* println!("{:?}", bytes);
182+
* printfln!("%?", bytes);
183183
* let result_str = str::from_utf8(bytes);
184-
* println!("{}", result_str);
184+
* printfln!("%s", result_str);
185185
* }
186186
* ```
187187
*/

branches/dist-snap/src/libextra/extra.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Rust extras are part of the standard Rust distribution.
2121
*/
2222

2323
#[link(name = "extra",
24-
vers = "0.9-pre",
24+
vers = "0.8",
2525
uuid = "122bed0b-c19b-4b82-b0b7-7ae8aead7297",
2626
url = "https://github.com/mozilla/rust/tree/master/src/libextra")];
2727

branches/dist-snap/src/libextra/future.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* # fn make_a_sandwich() {};
2020
* let mut delayed_fib = extra::future::spawn (|| fib(5000) );
2121
* make_a_sandwich();
22-
* println!("fib(5000) = {}", delayed_fib.get())
22+
* printfln!("fib(5000) = %?", delayed_fib.get())
2323
* ```
2424
*/
2525

branches/dist-snap/src/libextra/getopts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
//! }
4444
//!
4545
//! fn print_usage(program: &str, _opts: &[Opt]) {
46-
//! println!("Usage: {} [options]", program);
46+
//! printfln!("Usage: %s [options]", program);
4747
//! println("-o\t\tOutput");
4848
//! println("-h --help\tUsage");
4949
//! }

branches/dist-snap/src/libextra/hex.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ impl<'self> ToHex for &'self [u8] {
3333
*
3434
* fn main () {
3535
* let str = [52,32].to_hex();
36-
* println!("{}", str);
36+
* printfln!("%s", str);
3737
* }
3838
* ```
3939
*/
@@ -77,11 +77,11 @@ impl<'self> FromHex for &'self str {
7777
*
7878
* fn main () {
7979
* let hello_str = "Hello, World".to_hex();
80-
* println!("{}", hello_str);
80+
* printfln!("%s", hello_str);
8181
* let bytes = hello_str.from_hex().unwrap();
82-
* println!("{:?}", bytes);
82+
* printfln!("%?", bytes);
8383
* let result_str = str::from_utf8(bytes);
84-
* println!("{}", result_str);
84+
* printfln!("%s", result_str);
8585
* }
8686
* ```
8787
*/

branches/dist-snap/src/libextra/task_pool.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,6 @@ fn test_task_pool() {
103103
};
104104
let mut pool = TaskPool::new(4, Some(SingleThreaded), f);
105105
do 8.times {
106-
pool.execute(|i| println!("Hello from thread {}!", *i));
106+
pool.execute(|i| printfln!("Hello from thread %u!", *i));
107107
}
108108
}

branches/dist-snap/src/librust/rust.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// FIXME #2238 Make run only accept source that emits an executable
1414

1515
#[link(name = "rust",
16-
vers = "0.9-pre",
16+
vers = "0.8",
1717
uuid = "4a24da33-5cc8-4037-9352-2cbe9bd9d27c",
1818
url = "https://github.com/mozilla/rust/tree/master/src/rust")];
1919

@@ -136,13 +136,13 @@ fn cmd_help(args: &[~str]) -> ValidUsage {
136136
match find_cmd(command_string) {
137137
Some(command) => {
138138
match command.action {
139-
CallMain(prog, _) => println!(
140-
"The {} command is an alias for the {} program.",
139+
CallMain(prog, _) => printfln!(
140+
"The %s command is an alias for the %s program.",
141141
command.cmd, prog),
142142
_ => ()
143143
}
144144
match command.usage_full {
145-
UsgStr(msg) => println!("{}\n", msg),
145+
UsgStr(msg) => printfln!("%s\n", msg),
146146
UsgCall(f) => f(),
147147
}
148148
Valid(0)
@@ -215,7 +215,7 @@ fn usage() {
215215

216216
for command in COMMANDS.iter() {
217217
let padding = " ".repeat(INDENT - command.cmd.len());
218-
println!(" {}{}{}", command.cmd, padding, command.usage_line);
218+
printfln!(" %s%s%s", command.cmd, padding, command.usage_line);
219219
}
220220

221221
io::print(

branches/dist-snap/src/librustc/front/std_inject.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use syntax::fold::ast_fold;
2020
use syntax::fold;
2121
use syntax::opt_vec;
2222

23-
static STD_VERSION: &'static str = "0.9-pre";
23+
static STD_VERSION: &'static str = "0.8";
2424

2525
pub fn maybe_inject_libstd_ref(sess: Session, crate: @ast::Crate)
2626
-> @ast::Crate {

branches/dist-snap/src/librustc/front/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ fn mk_std(cx: &TestCtxt) -> ast::view_item {
279279
path_node(~[id_extra]),
280280
ast::DUMMY_NODE_ID))])
281281
} else {
282-
let mi = attr::mk_name_value_item_str(@"vers", @"0.9-pre");
282+
let mi = attr::mk_name_value_item_str(@"vers", @"0.8");
283283
ast::view_item_extern_mod(id_extra, None, ~[mi], ast::DUMMY_NODE_ID)
284284
};
285285
ast::view_item {

branches/dist-snap/src/librustc/metadata/encoder.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1822,17 +1822,17 @@ pub fn encode_metadata(parms: EncodeParams, crate: &Crate) -> ~[u8] {
18221822
}
18231823

18241824
io::println("metadata stats:");
1825-
println!(" inline bytes: {}", ecx.stats.inline_bytes);
1826-
println!(" attribute bytes: {}", ecx.stats.attr_bytes);
1827-
println!(" dep bytes: {}", ecx.stats.dep_bytes);
1828-
println!(" lang item bytes: {}", ecx.stats.lang_item_bytes);
1829-
println!(" link args bytes: {}", ecx.stats.link_args_bytes);
1830-
println!(" impl bytes: {}", ecx.stats.impl_bytes);
1831-
println!(" misc bytes: {}", ecx.stats.misc_bytes);
1832-
println!(" item bytes: {}", ecx.stats.item_bytes);
1833-
println!(" index bytes: {}", ecx.stats.index_bytes);
1834-
println!(" zero bytes: {}", ecx.stats.zero_bytes);
1835-
println!(" total bytes: {}", ecx.stats.total_bytes);
1825+
printfln!(" inline bytes: %u", ecx.stats.inline_bytes);
1826+
printfln!(" attribute bytes: %u", ecx.stats.attr_bytes);
1827+
printfln!(" dep bytes: %u", ecx.stats.dep_bytes);
1828+
printfln!(" lang item bytes: %u", ecx.stats.lang_item_bytes);
1829+
printfln!(" link args bytes: %u", ecx.stats.link_args_bytes);
1830+
printfln!(" impl bytes: %u", ecx.stats.impl_bytes);
1831+
printfln!(" misc bytes: %u", ecx.stats.misc_bytes);
1832+
printfln!(" item bytes: %u", ecx.stats.item_bytes);
1833+
printfln!(" index bytes: %u", ecx.stats.index_bytes);
1834+
printfln!(" zero bytes: %u", ecx.stats.zero_bytes);
1835+
printfln!(" total bytes: %u", ecx.stats.total_bytes);
18361836
}
18371837

18381838
// Pad this, since something (LLVM, presumably) is cutting off the

branches/dist-snap/src/librustc/middle/borrowck/mod.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,16 @@ pub fn check_crate(
100100

101101
if tcx.sess.borrowck_stats() {
102102
io::println("--- borrowck stats ---");
103-
println!("paths requiring guarantees: {}",
104-
bccx.stats.guaranteed_paths);
105-
println!("paths requiring loans : {}",
106-
make_stat(bccx, bccx.stats.loaned_paths_same));
107-
println!("paths requiring imm loans : {}",
108-
make_stat(bccx, bccx.stats.loaned_paths_imm));
109-
println!("stable paths : {}",
110-
make_stat(bccx, bccx.stats.stable_paths));
111-
println!("paths requiring purity : {}",
112-
make_stat(bccx, bccx.stats.req_pure_paths));
103+
printfln!("paths requiring guarantees: %u",
104+
bccx.stats.guaranteed_paths);
105+
printfln!("paths requiring loans : %s",
106+
make_stat(bccx, bccx.stats.loaned_paths_same));
107+
printfln!("paths requiring imm loans : %s",
108+
make_stat(bccx, bccx.stats.loaned_paths_imm));
109+
printfln!("stable paths : %s",
110+
make_stat(bccx, bccx.stats.stable_paths));
111+
printfln!("paths requiring purity : %s",
112+
make_stat(bccx, bccx.stats.req_pure_paths));
113113
}
114114

115115
return (bccx.root_map, bccx.write_guard_map);

0 commit comments

Comments
 (0)