Skip to content

Commit 74371d1

Browse files
committed
---
yaml --- r: 111487 b: refs/heads/master c: 6c82eb5 h: refs/heads/master i: 111485: c95971d 111483: 4337d0d 111479: 436814a 111471: 81e2b95 111455: 1f528c0 111423: 784bffe 111359: 7b37193 v: v3
1 parent 60c0f9a commit 74371d1

Some content is hidden

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

93 files changed

+1563
-1021
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: 0a0e2c36aff801f648773596ece6aeaabb30f979
2+
refs/heads/master: 6c82eb5d4de012ccf38620f81d8655308d37e318
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: b5dd3f05fe95168b5569d0f519636149479eb6ac
55
refs/heads/try: 38201d7c6bf0c32b0e5bdc8ecd63976ebc1b3a4c

trunk/mk/platform.mk

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

545+
FIND_COMPILER = $(word 1,$(1:ccache=))
546+
545547
define CFG_MAKE_TOOLCHAIN
546548
# Prepend the tools with their prefix if cross compiling
547549
ifneq ($(CFG_BUILD),$(1))
548550
CC_$(1)=$(CROSS_PREFIX_$(1))$(CC_$(1))
549551
CXX_$(1)=$(CROSS_PREFIX_$(1))$(CXX_$(1))
550552
CPP_$(1)=$(CROSS_PREFIX_$(1))$(CPP_$(1))
551553
AR_$(1)=$(CROSS_PREFIX_$(1))$(AR_$(1))
552-
RUSTC_CROSS_FLAGS_$(1)=-C linker=$$(CXX_$(1)) -C ar=$$(AR_$(1)) $(RUSTC_CROSS_FLAGS_$(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))
553556

554557
RUSTC_FLAGS_$(1)=$$(RUSTC_CROSS_FLAGS_$(1)) $(RUSTC_FLAGS_$(1))
555558
endif

trunk/src/compiletest/header.rs

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ 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>,
2022
// If present, the name of a file that this test should match when
2123
// pretty-printed
2224
pub pp_exact: Option<Path>,
@@ -42,6 +44,7 @@ pub fn load_props(testfile: &Path) -> TestProps {
4244
let mut aux_builds = Vec::new();
4345
let mut exec_env = Vec::new();
4446
let mut compile_flags = None;
47+
let mut run_flags = None;
4548
let mut pp_exact = None;
4649
let mut debugger_cmds = Vec::new();
4750
let mut check_lines = Vec::new();
@@ -58,6 +61,10 @@ pub fn load_props(testfile: &Path) -> TestProps {
5861
compile_flags = parse_compile_flags(ln);
5962
}
6063

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

97104
true
98105
});
99-
return TestProps {
106+
107+
TestProps {
100108
error_patterns: error_patterns,
101109
compile_flags: compile_flags,
110+
run_flags: run_flags,
102111
pp_exact: pp_exact,
103112
aux_builds: aux_builds,
104113
exec_env: exec_env,
@@ -107,7 +116,7 @@ pub fn load_props(testfile: &Path) -> TestProps {
107116
force_host: force_host,
108117
check_stdout: check_stdout,
109118
no_prefer_dynamic: no_prefer_dynamic,
110-
};
119+
}
111120
}
112121

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

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

trunk/src/compiletest/runtest.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,14 +835,19 @@ 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+
844845
// FIXME (#9639): This needs to handle non-utf8 paths
845846
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+
846851
let prog = args.shift().unwrap();
847852
return ProcArgs {prog: prog, args: args};
848853
}

trunk/src/doc/full-toc.inc

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

trunk/src/doc/guide-lifetimes.md

Lines changed: 2 additions & 2 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
@@ -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.

trunk/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!()`.

trunk/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)