Skip to content

Commit 95b7ad8

Browse files
committed
---
yaml --- r: 216247 b: refs/heads/stable c: 0f1bfda h: refs/heads/master i: 216245: 85b5581 216243: 2fc02a9 216239: 437e181 v: v3
1 parent a317103 commit 95b7ad8

File tree

191 files changed

+2159
-3293
lines changed

Some content is hidden

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

191 files changed

+2159
-3293
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ refs/heads/tmp: 378a370ff2057afeb1eae86eb6e78c476866a4a6
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: a5286998df566e736b32f6795bfc3803bdaf453d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: d3724342a3ef8eff3473de988f80bc088dc2668d
32+
refs/heads/stable: 0f1bfda00663e935cbaad278acc69142aa0703e7
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375

branches/stable/configure

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -337,15 +337,6 @@ to_gnu_triple() {
337337
esac
338338
}
339339

340-
# Prints the absolute path of a directory to stdout
341-
abs_path() {
342-
local _path="$1"
343-
# Unset CDPATH because it causes havok: it makes the destination unpredictable
344-
# and triggers 'cd' to print the path to stdout. Route `cd`'s output to /dev/null
345-
# for good measure.
346-
(unset CDPATH && cd "$_path" > /dev/null && pwd)
347-
}
348-
349340
msg "looking for configure programs"
350341
need_cmd cmp
351342
need_cmd mkdir
@@ -518,7 +509,7 @@ fi
518509

519510
DEFAULT_BUILD="${CFG_CPUTYPE}-${CFG_OSTYPE}"
520511

521-
CFG_SRC_DIR="$(abs_path $(dirname $0))/"
512+
CFG_SRC_DIR="$(cd $(dirname $0) && pwd)/"
522513
CFG_BUILD_DIR="$(pwd)/"
523514
CFG_SELF="$0"
524515
CFG_CONFIGURE_ARGS="$@"
@@ -659,9 +650,9 @@ if [ -n "$CFG_ENABLE_DEBUG" ]; then
659650
CFG_DISABLE_OPTIMIZE=1
660651
CFG_DISABLE_OPTIMIZE_CXX=1
661652
fi
662-
CFG_ENABLE_LLVM_ASSERTIONS=1
663653
CFG_ENABLE_DEBUG_ASSERTIONS=1
664654
CFG_ENABLE_DEBUG_JEMALLOC=1
655+
CFG_ENABLE_LLVM_ASSERTIONS=1
665656
fi
666657

667658
# OK, now write the debugging options

branches/stable/mk/main.mk

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,8 @@ CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)
3030
CFG_DISABLE_UNSTABLE_FEATURES=1
3131
endif
3232
ifeq ($(CFG_RELEASE_CHANNEL),beta)
33-
CFG_RELEASE=$(CFG_RELEASE_NUM)-beta
34-
# When building beta distributables just reuse the same "beta" name
35-
# so when we upload we'll always override the previous beta. This
36-
# doesn't actually impact the version reported by rustc - it's just
37-
# for file naming.
38-
CFG_PACKAGE_VERS=beta
33+
CFG_RELEASE=$(CFG_RELEASE_NUM)-beta$(CFG_PRERELEASE_VERSION)
34+
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-beta$(CFG_PRERELEASE_VERSION)
3935
CFG_DISABLE_UNSTABLE_FEATURES=1
4036
endif
4137
ifeq ($(CFG_RELEASE_CHANNEL),nightly)

branches/stable/mk/tests.mk

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -753,22 +753,20 @@ PRETTY_DEPS_pretty-rpass-full = $(RPASS_FULL_TESTS)
753753
PRETTY_DEPS_pretty-rfail = $(RFAIL_TESTS)
754754
PRETTY_DEPS_pretty-bench = $(BENCH_TESTS)
755755
PRETTY_DEPS_pretty-pretty = $(PRETTY_TESTS)
756+
# The stage- and host-specific dependencies are for e.g. macro_crate_test which pulls in
757+
# external crates.
758+
PRETTY_DEPS$(1)_H_$(3)_pretty-rpass =
759+
PRETTY_DEPS$(1)_H_$(3)_pretty-rpass-full = $$(HLIB$(1)_H_$(3))/stamp.syntax $$(HLIB$(1)_H_$(3))/stamp.rustc
760+
PRETTY_DEPS$(1)_H_$(3)_pretty-rfail =
761+
PRETTY_DEPS$(1)_H_$(3)_pretty-bench =
762+
PRETTY_DEPS$(1)_H_$(3)_pretty-pretty =
756763
PRETTY_DIRNAME_pretty-rpass = run-pass
757764
PRETTY_DIRNAME_pretty-rpass-valgrind = run-pass-valgrind
758765
PRETTY_DIRNAME_pretty-rpass-full = run-pass-fulldeps
759766
PRETTY_DIRNAME_pretty-rfail = run-fail
760767
PRETTY_DIRNAME_pretty-bench = bench
761768
PRETTY_DIRNAME_pretty-pretty = pretty
762769

763-
define DEF_PRETTY_FULLDEPS
764-
PRETTY_DEPS$(1)_T_$(2)_H_$(3)_pretty-rpass-full = $$(CSREQ$(1)_T_$(3)_H_$(3))
765-
endef
766-
767-
$(foreach host,$(CFG_HOST), \
768-
$(foreach target,$(CFG_TARGET), \
769-
$(foreach stage,$(STAGES), \
770-
$(eval $(call DEF_PRETTY_FULLDEPS,$(stage),$(target),$(host))))))
771-
772770
define DEF_RUN_PRETTY_TEST
773771

774772
PRETTY_ARGS$(1)-T-$(2)-H-$(3)-$(4) := \
@@ -782,7 +780,7 @@ check-stage$(1)-T-$(2)-H-$(3)-$(4)-exec: $$(call TEST_OK_FILE,$(1),$(2),$(3),$(4
782780
$$(call TEST_OK_FILE,$(1),$(2),$(3),$(4)): \
783781
$$(TEST_SREQ$(1)_T_$(2)_H_$(3)) \
784782
$$(PRETTY_DEPS_$(4)) \
785-
$$(PRETTY_DEPS$(1)_T_$(2)_H_$(3)_$(4))
783+
$$(PRETTY_DEPS$(1)_H_$(3)_$(4))
786784
@$$(call E, run pretty-rpass [$(2)]: $$<)
787785
$$(Q)touch $$@.start_time
788786
$$(Q)$$(call CFG_RUN_CTEST_$(2),$(1),$$<,$(3)) \

branches/stable/src/compiletest/runtest.rs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -979,25 +979,13 @@ fn check_expected_errors(expected_errors: Vec<errors::ExpectedError> ,
979979
// is the ending point, and * represents ANSI color codes.
980980
for line in proc_res.stderr.lines() {
981981
let mut was_expected = false;
982-
let mut prev = 0;
983982
for (i, ee) in expected_errors.iter().enumerate() {
984983
if !found_flags[i] {
985984
debug!("prefix={} ee.kind={} ee.msg={} line={}",
986985
prefixes[i],
987986
ee.kind,
988987
ee.msg,
989988
line);
990-
// Suggestions have no line number in their output, so take on the line number of
991-
// the previous expected error
992-
if ee.kind == "suggestion" {
993-
assert!(expected_errors[prev].kind == "help",
994-
"SUGGESTIONs must be preceded by a HELP");
995-
if line.contains(&ee.msg) {
996-
found_flags[i] = true;
997-
was_expected = true;
998-
break;
999-
}
1000-
}
1001989
if (prefix_matches(line, &prefixes[i]) || continuation(line)) &&
1002990
line.contains(&ee.kind) &&
1003991
line.contains(&ee.msg) {
@@ -1006,7 +994,6 @@ fn check_expected_errors(expected_errors: Vec<errors::ExpectedError> ,
1006994
break;
1007995
}
1008996
}
1009-
prev = i;
1010997
}
1011998

1012999
// ignore this msg which gets printed at the end
@@ -1465,7 +1452,7 @@ fn make_out_name(config: &Config, testfile: &Path, extension: &str) -> PathBuf {
14651452
fn aux_output_dir_name(config: &Config, testfile: &Path) -> PathBuf {
14661453
let f = output_base_name(config, testfile);
14671454
let mut fname = f.file_name().unwrap().to_os_string();
1468-
fname.push(&format!(".{}.libaux", config.mode));
1455+
fname.push("libaux");
14691456
f.with_file_name(&fname)
14701457
}
14711458

branches/stable/src/doc/grammar.md

Lines changed: 20 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,12 @@ explicit codepoint lists. [^inputformat]
9696
## Special Unicode Productions
9797

9898
The following productions in the Rust grammar are defined in terms of Unicode
99-
properties: `ident`, `non_null`, `non_eol`, `non_single_quote` and
100-
`non_double_quote`.
99+
properties: `ident`, `non_null`, `non_star`, `non_eol`, `non_slash_or_star`,
100+
`non_single_quote` and `non_double_quote`.
101101

102102
### Identifiers
103103

104-
The `ident` production is any nonempty Unicode[^non_ascii_idents] string of
105-
the following form:
106-
107-
[^non_ascii_idents]: Non-ASCII characters in identifiers are currently feature
108-
gated. This is expected to improve soon.
104+
The `ident` production is any nonempty Unicode string of the following form:
109105

110106
- The first character has property `XID_start`
111107
- The remaining characters have property `XID_continue`
@@ -122,6 +118,8 @@ Some productions are defined by exclusion of particular Unicode characters:
122118

123119
- `non_null` is any single Unicode character aside from `U+0000` (null)
124120
- `non_eol` is `non_null` restricted to exclude `U+000A` (`'\n'`)
121+
- `non_star` is `non_null` restricted to exclude `U+002A` (`*`)
122+
- `non_slash_or_star` is `non_null` restricted to exclude `U+002F` (`/`) and `U+002A` (`*`)
125123
- `non_single_quote` is `non_null` restricted to exclude `U+0027` (`'`)
126124
- `non_double_quote` is `non_null` restricted to exclude `U+0022` (`"`)
127125

@@ -154,19 +152,19 @@ token : simple_token | ident | literal | symbol | whitespace token ;
154152

155153
<p id="keyword-table-marker"></p>
156154

157-
| | | | | |
158-
|----------|----------|----------|----------|---------|
159-
| abstract | alignof | as | become | box |
160-
| break | const | continue | crate | do |
161-
| else | enum | extern | false | final |
162-
| fn | for | if | impl | in |
163-
| let | loop | macro | match | mod |
164-
| move | mut | offsetof | override | priv |
165-
| proc | pub | pure | ref | return |
166-
| Self | self | sizeof | static | struct |
167-
| super | trait | true | type | typeof |
168-
| unsafe | unsized | use | virtual | where |
169-
| while | yield | | | |
155+
| | | | | |
156+
|----------|----------|----------|----------|--------|
157+
| abstract | alignof | as | become | box |
158+
| break | const | continue | crate | do |
159+
| else | enum | extern | false | final |
160+
| fn | for | if | impl | in |
161+
| let | loop | match | mod | move |
162+
| mut | offsetof | once | override | priv |
163+
| proc | pub | pure | ref | return |
164+
| sizeof | static | self | struct | super |
165+
| true | trait | type | typeof | unsafe |
166+
| unsized | use | virtual | where | while |
167+
| yield | | | | |
170168

171169

172170
Each of these keywords has special meaning in its grammar, and all of them are
@@ -526,15 +524,6 @@ array_elems : [expr [',' expr]*] | [expr ',' ".." expr] ;
526524
idx_expr : expr '[' expr ']' ;
527525
```
528526

529-
### Range expressions
530-
531-
```antlr
532-
range_expr : expr ".." expr |
533-
expr ".." |
534-
".." expr |
535-
".." ;
536-
```
537-
538527
### Unary operator expressions
539528

540529
**FIXME:** grammar?
@@ -621,7 +610,7 @@ lambda_expr : '|' ident_list '|' expr ;
621610
### While loops
622611

623612
```antlr
624-
while_expr : [ lifetime ':' ] "while" no_struct_literal_expr '{' block '}' ;
613+
while_expr : "while" no_struct_literal_expr '{' block '}' ;
625614
```
626615

627616
### Infinite loops
@@ -645,7 +634,7 @@ continue_expr : "continue" [ lifetime ];
645634
### For expressions
646635

647636
```antlr
648-
for_expr : [ lifetime ':' ] "for" pat "in" no_struct_literal_expr '{' block '}' ;
637+
for_expr : "for" pat "in" no_struct_literal_expr '{' block '}' ;
649638
```
650639

651640
### If expressions

0 commit comments

Comments
 (0)