Skip to content

Commit 2f18332

Browse files
committed
---
yaml --- r: 150975 b: refs/heads/try2 c: 97c91c9 h: refs/heads/master i: 150973: c5ba150 150971: 5bf2c45 150967: 3e2e934 150959: 3bbdb44 150943: 46a73d4 150911: cda1696 v: v3
1 parent 4ac8f24 commit 2f18332

Some content is hidden

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

97 files changed

+1136
-2121
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: 7d725a340f7cb0a256cd468daa189e46416c6afa
8+
refs/heads/try2: 97c91c971336f88ddd25071dcdc3b39893ec9fb6
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/mk/platform.mk

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -542,17 +542,14 @@ ifdef CFG_CCACHE_BASEDIR
542542
export CCACHE_BASEDIR
543543
endif
544544

545-
FIND_COMPILER = $(word 1,$(1:ccache=))
546-
547545
define CFG_MAKE_TOOLCHAIN
548546
# Prepend the tools with their prefix if cross compiling
549547
ifneq ($(CFG_BUILD),$(1))
550548
CC_$(1)=$(CROSS_PREFIX_$(1))$(CC_$(1))
551549
CXX_$(1)=$(CROSS_PREFIX_$(1))$(CXX_$(1))
552550
CPP_$(1)=$(CROSS_PREFIX_$(1))$(CPP_$(1))
553551
AR_$(1)=$(CROSS_PREFIX_$(1))$(AR_$(1))
554-
RUSTC_CROSS_FLAGS_$(1)=-C linker=$$(call FIND_COMPILER,$$(CXX_$(1))) \
555-
-C ar=$$(call FIND_COMPILER,$$(AR_$(1))) $(RUSTC_CROSS_FLAGS_$(1))
552+
RUSTC_CROSS_FLAGS_$(1)=-C linker=$$(CXX_$(1)) -C ar=$$(AR_$(1)) $(RUSTC_CROSS_FLAGS_$(1))
556553

557554
RUSTC_FLAGS_$(1)=$$(RUSTC_CROSS_FLAGS_$(1)) $(RUSTC_FLAGS_$(1))
558555
endif

branches/try2/src/compiletest/header.rs

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ pub struct TestProps {
1717
pub error_patterns: Vec<~str> ,
1818
// Extra flags to pass to the compiler
1919
pub compile_flags: Option<~str>,
20-
// Extra flags to pass when the compiled code is run (such as --bench)
21-
pub run_flags: Option<~str>,
2220
// If present, the name of a file that this test should match when
2321
// pretty-printed
2422
pub pp_exact: Option<Path>,
@@ -44,7 +42,6 @@ pub fn load_props(testfile: &Path) -> TestProps {
4442
let mut aux_builds = Vec::new();
4543
let mut exec_env = Vec::new();
4644
let mut compile_flags = None;
47-
let mut run_flags = None;
4845
let mut pp_exact = None;
4946
let mut debugger_cmds = Vec::new();
5047
let mut check_lines = Vec::new();
@@ -61,10 +58,6 @@ pub fn load_props(testfile: &Path) -> TestProps {
6158
compile_flags = parse_compile_flags(ln);
6259
}
6360

64-
if run_flags.is_none() {
65-
run_flags = parse_run_flags(ln);
66-
}
67-
6861
if pp_exact.is_none() {
6962
pp_exact = parse_pp_exact(ln, testfile);
7063
}
@@ -103,11 +96,9 @@ pub fn load_props(testfile: &Path) -> TestProps {
10396

10497
true
10598
});
106-
107-
TestProps {
99+
return TestProps {
108100
error_patterns: error_patterns,
109101
compile_flags: compile_flags,
110-
run_flags: run_flags,
111102
pp_exact: pp_exact,
112103
aux_builds: aux_builds,
113104
exec_env: exec_env,
@@ -116,7 +107,7 @@ pub fn load_props(testfile: &Path) -> TestProps {
116107
force_host: force_host,
117108
check_stdout: check_stdout,
118109
no_prefer_dynamic: no_prefer_dynamic,
119-
}
110+
};
120111
}
121112

122113
pub fn is_test_ignored(config: &config, testfile: &Path) -> bool {
@@ -169,10 +160,6 @@ fn parse_compile_flags(line: &str) -> Option<~str> {
169160
parse_name_value_directive(line, "compile-flags".to_owned())
170161
}
171162

172-
fn parse_run_flags(line: &str) -> Option<~str> {
173-
parse_name_value_directive(line, ~"run-flags")
174-
}
175-
176163
fn parse_debugger_cmd(line: &str) -> Option<~str> {
177164
parse_name_value_directive(line, "debugger".to_owned())
178165
}

branches/try2/src/compiletest/runtest.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -835,19 +835,14 @@ fn make_exe_name(config: &config, testfile: &Path) -> Path {
835835
f
836836
}
837837

838-
fn make_run_args(config: &config, props: &TestProps, testfile: &Path) ->
838+
fn make_run_args(config: &config, _props: &TestProps, testfile: &Path) ->
839839
ProcArgs {
840840
// If we've got another tool to run under (valgrind),
841841
// then split apart its command
842842
let mut args = split_maybe_args(&config.runtool);
843843
let exe_file = make_exe_name(config, testfile);
844-
845844
// FIXME (#9639): This needs to handle non-utf8 paths
846845
args.push(exe_file.as_str().unwrap().to_owned());
847-
848-
// Add the arguments in the run_flags directive
849-
args.push_all_move(split_maybe_args(&props.run_flags));
850-
851846
let prog = args.shift().unwrap();
852847
return ProcArgs {prog: prog, args: args};
853848
}

branches/try2/src/doc/complement-cheatsheet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ let x: int = 42;
2929
let y: ~str = format!("{:t}", x); // binary
3030
let y: ~str = format!("{:o}", x); // octal
3131
let y: ~str = format!("{:x}", x); // lowercase hexadecimal
32-
let y: ~str = format!("{:X}", x); // uppercase hexadecimal
32+
let y: ~str = format!("{:X}", x); // uppercase hexidecimal
3333
~~~
3434

3535
**String to int, in non-base-10**

branches/try2/src/doc/full-toc.inc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
<style>
22
/* Display the full TOC */
3-
nav {
4-
column-count: auto;
5-
-moz-column-count: auto;
6-
-webkit-column-count: auto;
7-
}
8-
nav ul ul {
3+
#TOC ul ul {
94
display: block;
105
padding-left: 2em;
116
}

branches/try2/src/doc/guide-ffi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ Besides classical synchronization mechanisms like mutexes, one possibility in
337337
Rust is to use channels (in `std::comm`) to forward data from the C thread
338338
that invoked the callback into a Rust task.
339339

340-
If an asynchronous callback targets a special object in the Rust address space
340+
If an asychronous callback targets a special object in the Rust address space
341341
it is also absolutely necessary that no more callbacks are performed by the
342342
C library after the respective Rust object gets destroyed.
343343
This can be achieved by unregistering the callback in the object's

branches/try2/src/doc/guide-lifetimes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ it. It would violate memory safety for the box that was originally
236236
assigned to `x` to be garbage-collected, since a non-heap
237237
pointer *`y`* still points into it.
238238

239-
> *Note:* Our current implementation implements the garbage collector
239+
> ***Note:*** Our current implementation implements the garbage collector
240240
> using reference counting and cycle detection.
241241
242242
For this reason, whenever an `&` expression borrows the interior of a
@@ -561,7 +561,7 @@ points at a static constant).
561561

562562
Lifetimes can be named and referenced. For example, the special lifetime
563563
`'static`, which does not go out of scope, can be used to create global
564-
variables and communicate between tasks (see the manual for use cases).
564+
variables and communicate between tasks (see the manual for usecases).
565565

566566
## Parameter Lifetimes
567567

@@ -674,7 +674,7 @@ Named lifetime notation can also be used to control the flow of execution:
674674
}
675675
~~~
676676

677-
> *Note:* Labelled breaks are not currently supported within `while` loops.
677+
> ***Note:*** Labelled breaks are not currently supported within `while` loops.
678678
679679
Named labels are hygienic and can be used safely within macros.
680680
See the macros guide section on hygiene for more details.

branches/try2/src/doc/guide-tasks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ an `Error` result.
456456

457457
[`Result`]: std/result/index.html
458458

459-
> *Note:* A failed task does not currently produce a useful error
459+
> ***Note:*** A failed task does not currently produce a useful error
460460
> value (`try` always returns `Err(())`). In the
461461
> future, it may be possible for tasks to intercept the value passed to
462462
> `fail!()`.

branches/try2/src/doc/intro.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ Now here's the exciting part:
226226
because `numbers` is an owned type,
227227
when it is sent across the channel,
228228
it is actually *moved*,
229-
transferring ownership of `numbers` between tasks.
229+
transfering ownership of `numbers` between tasks.
230230
This ownership transfer is *very fast* -
231231
in this case simply copying a pointer -
232232
while also ensuring that the original owning task cannot create data races by continuing to read or write to `numbers` in parallel with the new owner.
@@ -318,7 +318,7 @@ fn main() {
318318
This is almost exactly the same,
319319
except that this time `numbers` is first put into an `Arc`.
320320
`Arc::new` creates the `Arc`,
321-
`.clone()` makes another `Arc` that refers to the same contents.
321+
`.clone()` makes another `Arc` that referrs to the same contents.
322322
So we clone the `Arc` for each task,
323323
send that clone down the channel,
324324
and then use it to print out a number.

branches/try2/src/doc/po/ja/tutorial.md.po

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,11 @@ msgstr ""
196196
#. type: Plain text
197197
#: src/doc/tutorial.md:57
198198
msgid ""
199-
"> *Warning:* Rust is a language under ongoing development. Notes > about "
199+
"> ***Warning:*** Rust is a language under ongoing development. Notes > about "
200200
"potential changes to the language, implementation > deficiencies, and other "
201201
"caveats appear offset in blockquotes."
202202
msgstr ""
203-
"> *警告:* Rust は開発途上の言語です。将来予定されている言語への変更や、実"
203+
"> ***警告:*** Rust は開発途上の言語です。将来予定されている言語への変更や、実"
204204
"装上の不備、その他の注意事項など、 blockquote の段落 (この段落もそうです) に"
205205
"注意してください。"
206206

@@ -287,13 +287,13 @@ msgstr ""
287287
#. type: Plain text
288288
#: src/doc/tutorial.md:88
289289
msgid ""
290-
"> *Note:* Windows users should read the detailed > \"[getting started]"
290+
"> ***Note:*** Windows users should read the detailed > \"[getting started]"
291291
"[wiki-start]\" notes on the wiki. Even when using > the binary installer, "
292292
"the Windows build requires a MinGW installation, > the precise details of "
293293
"which are not discussed here. Finally, `rustc` may > need to be [referred to "
294294
"as `rustc.exe`][bug-3319]. It's a bummer, we > know."
295295
msgstr ""
296-
"> *注意:* Windows ユーザーは wiki の [getting started][wiki-start] の記事"
296+
"> ***注意:*** Windows ユーザーは wiki の [getting started][wiki-start] の記事"
297297
"を読んでください。 本書では詳細を説明しませんが、インストーラを利用する場合で"
298298
"も、MinGW のインストールなど、追加の手順が必要です。また、コンパイラは "
299299
"`rustc` ではなく、 [`rustc.exe` として呼び出す必要がある][bug-3319] かもしれ"
@@ -1254,11 +1254,11 @@ msgstr ""
12541254
#. type: Plain text
12551255
#: src/doc/tutorial.md:504
12561256
msgid ""
1257-
"> *Note:* The following code makes use of tuples (`(f64, f64)`) which > "
1257+
"> ***Note:*** The following code makes use of tuples (`(f64, f64)`) which > "
12581258
"are explained in section 5.3. For now you can think of tuples as a list of > "
12591259
"items."
12601260
msgstr ""
1261-
"> *注意:* 以下のコード例では5.3 節で説明されるタプル (`(f64, f64)`) を"
1261+
"> ***注意:*** 以下のコード例では5.3 節で説明されるタプル (`(f64, f64)`) を"
12621262
"使っています。現時点では、タプルは項目のリストのようなものだとみなしてくださ"
12631263
"い。"
12641264

@@ -3005,11 +3005,11 @@ msgstr ""
30053005
#. type: Plain text
30063006
#: src/doc/tutorial.md:1774
30073007
msgid ""
3008-
"> *Note:* Both the syntax and the semantics will be changing > in small "
3008+
"> ***Note:*** Both the syntax and the semantics will be changing > in small "
30093009
"ways. At the moment they can be unsound in some > scenarios, particularly "
30103010
"with non-copyable types."
30113011
msgstr ""
3012-
"> *注意* コードの文法と意味は将来的に変更されるかもしれません。現時点では"
3012+
"> ***注意*** コードの文法と意味は将来的に変更されるかもしれません。現時点では"
30133013
"いくつかの状況、特にコピーできない型が関連するケースにおいて望ましくない振る"
30143014
"舞いが起こされる場合があります。"
30153015

@@ -3660,10 +3660,10 @@ msgstr ""
36603660
#. type: Plain text
36613661
#: src/doc/tutorial.md:2099
36623662
msgid ""
3663-
"> *Note:* These two traits were referred to as 'kinds' in earlier > "
3663+
"> ***Note:*** These two traits were referred to as 'kinds' in earlier > "
36643664
"iterations of the language, and often still are."
36653665
msgstr ""
3666-
"> *注意* これら2つのトレイトは、以前は 「種」 (kind) と呼ばれており、現在"
3666+
"> ***注意*** これら2つのトレイトは、以前は 「種」 (kind) と呼ばれており、現在"
36673667
"でもそう呼ばれる場合があります。"
36683668

36693669
#. type: Plain text
@@ -4374,9 +4374,9 @@ msgstr ""
43744374

43754375
#. type: Plain text
43764376
#: src/doc/tutorial.md:2511
4377-
msgid "> *Note:* Trait inheritance does not actually work with objects yet"
4377+
msgid "> ***Note:*** Trait inheritance does not actually work with objects yet"
43784378
msgstr ""
4379-
"> *注意* トレイトの継承は、実際にはまだオブジェクトに対しては動作しませ"
4379+
"> ***注意*** トレイトの継承は、実際にはまだオブジェクトに対しては動作しませ"
43804380
"ん。"
43814381

43824382
#. type: Plain text

0 commit comments

Comments
 (0)