Skip to content

Commit c1f0989

Browse files
committed
---
yaml --- r: 236541 b: refs/heads/tmp c: 0b13ee0 h: refs/heads/master i: 236539: cd500bd v: v3
1 parent eb47bfa commit c1f0989

File tree

9 files changed

+37
-57
lines changed

9 files changed

+37
-57
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2626
refs/heads/beta: d2e13e822a73e0ea46ae9e21afdd3155fc997f6d
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
28-
refs/heads/tmp: e314ac601aa87c6b7958cec1199d646a1f7f2691
28+
refs/heads/tmp: 0b13ee0ced39db0acaf1bb966e57417bd42b0423
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828

branches/tmp/mk/grammar.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,17 @@ check-lexer: $(BG) $(BG)RustLexer.class check-build-lexer-verifier
5858
$(Q)$(SG)check.sh $(S) "$(BG)" \
5959
"$(CFG_GRUN)" "$(BG)verify" "$(BG)RustLexer.tokens"
6060
else
61-
$(info cfg: lexer tooling not available, skipping lexer test...)
61+
$(info cfg: grun not available, skipping lexer test...)
6262
check-lexer:
6363

6464
endif
6565
else
66-
$(info cfg: lexer tooling not available, skipping lexer test...)
66+
$(info cfg: antlr4 not available, skipping lexer test...)
6767
check-lexer:
6868

6969
endif
7070
else
71-
$(info cfg: lexer tooling not available, skipping lexer test...)
71+
$(info cfg: javac not available, skipping lexer test...)
7272
check-lexer:
7373

7474
endif

branches/tmp/src/doc/grammar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ provides only one kind of material:
99

1010
This document does not serve as an introduction to the language. Background
1111
familiarity with the language is assumed. A separate [guide] is available to
12-
help acquire such background.
12+
help acquire such background familiarity.
1313

1414
This document also does not serve as a reference to the [standard] library
1515
included in the language distribution. Those libraries are documented

branches/tmp/src/doc/reference.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ There are several kinds of item:
674674
* [modules](#modules)
675675
* [functions](#functions)
676676
* [type definitions](grammar.html#type-definitions)
677-
* [structures](#structures)
677+
* [structs](#structs)
678678
* [enumerations](#enumerations)
679679
* [constant items](#constant-items)
680680
* [static items](#static-items)
@@ -900,10 +900,9 @@ fn main() {}
900900

901901
### Functions
902902

903-
A _function item_ defines a sequence of [statements](#statements) and a
904-
final [expression](#expressions), along with a name and a set of
905-
parameters. Other than a name, all these are optional.
906-
Functions are declared with the keyword `fn`. Functions may declare a
903+
A _function item_ defines a sequence of [statements](#statements) and an
904+
optional final [expression](#expressions), along with a name and a set of
905+
parameters. Functions are declared with the keyword `fn`. Functions declare a
907906
set of *input* [*variables*](#variables) as parameters, through which the caller
908907
passes arguments into the function, and the *output* [*type*](#types)
909908
of the value the function will return to its caller on completion.
@@ -922,7 +921,7 @@ An example of a function:
922921

923922
```
924923
fn add(x: i32, y: i32) -> i32 {
925-
x + y
924+
return x + y;
926925
}
927926
```
928927

@@ -1156,7 +1155,7 @@ type Point = (u8, u8);
11561155
let p: Point = (41, 68);
11571156
```
11581157

1159-
### Structures
1158+
### Structs
11601159

11611160
A _structure_ is a nominal [structure type](#structure-types) defined with the
11621161
keyword `struct`.
@@ -2615,21 +2614,21 @@ comma:
26152614
### Structure expressions
26162615

26172616
There are several forms of structure expressions. A _structure expression_
2618-
consists of the [path](#paths) of a [structure item](#structures), followed by
2617+
consists of the [path](#paths) of a [structure item](#structs), followed by
26192618
a brace-enclosed list of one or more comma-separated name-value pairs,
26202619
providing the field values of a new instance of the structure. A field name
26212620
can be any identifier, and is separated from its value expression by a colon.
26222621
The location denoted by a structure field is mutable if and only if the
26232622
enclosing structure is mutable.
26242623

26252624
A _tuple structure expression_ consists of the [path](#paths) of a [structure
2626-
item](#structures), followed by a parenthesized list of one or more
2625+
item](#structs), followed by a parenthesized list of one or more
26272626
comma-separated expressions (in other words, the path of a structure item
26282627
followed by a tuple expression). The structure item must be a tuple structure
26292628
item.
26302629

26312630
A _unit-like structure expression_ consists only of the [path](#paths) of a
2632-
[structure item](#structures).
2631+
[structure item](#structs).
26332632

26342633
The following are examples of structure expressions:
26352634

@@ -3146,7 +3145,7 @@ if` condition is evaluated. If all `if` and `else if` conditions evaluate to
31463145

31473146
A `match` expression branches on a *pattern*. The exact form of matching that
31483147
occurs depends on the pattern. Patterns consist of some combination of
3149-
literals, destructured arrays or enum constructors, structures and tuples,
3148+
literals, destructured arrays or enum constructors, structs and tuples,
31503149
variable binding specifications, wildcards (`..`), and placeholders (`_`). A
31513150
`match` expression has a *head expression*, which is the value to compare to
31523151
the patterns. The type of the patterns must equal the type of the head
@@ -3470,7 +3469,7 @@ named reference to an [`enum` item](#enumerations).
34703469
### Recursive types
34713470

34723471
Nominal types — [enumerations](#enumerated-types) and
3473-
[structures](#structure-types) — may be recursive. That is, each `enum`
3472+
[structs](#structure-types) — may be recursive. That is, each `enum`
34743473
constructor or `struct` field may refer, directly or indirectly, to the
34753474
enclosing `enum` or `struct` type itself. Such recursion has restrictions:
34763475

@@ -3498,7 +3497,7 @@ let a: List<i32> = List::Cons(7, Box::new(List::Cons(13, Box::new(List::Nil))));
34983497
### Pointer types
34993498

35003499
All pointers in Rust are explicit first-class values. They can be copied,
3501-
stored into data structures, and returned from functions. There are two
3500+
stored into data structs, and returned from functions. There are two
35023501
varieties of pointer in Rust:
35033502

35043503
* References (`&`)
@@ -3898,7 +3897,7 @@ references to boxes are dropped.
38983897
### Variables
38993898

39003899
A _variable_ is a component of a stack frame, either a named function parameter,
3901-
an anonymous [temporary](#lvalues-rvalues-and-temporaries), or a named local
3900+
an anonymous [temporary](#lvalues,-rvalues-and-temporaries), or a named local
39023901
variable.
39033902

39043903
A _local variable_ (or *stack-local* allocation) holds a value directly,
@@ -4037,6 +4036,10 @@ In general, `--crate-type=bin` or `--crate-type=lib` should be sufficient for
40374036
all compilation needs, and the other options are just available if more
40384037
fine-grained control is desired over the output format of a Rust crate.
40394038

4039+
# Appendix: Rationales and design trade-offs
4040+
4041+
*TODO*.
4042+
40404043
# Appendix: Influences
40414044

40424045
Rust is not a particularly original language, with design elements coming from

branches/tmp/src/libcollections/str.rs

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,8 @@ impl str {
715715
/// Returns `None` if it doesn't exist.
716716
///
717717
/// The pattern can be a simple `&str`, `char`, or a closure that
718-
/// determines if a character matches.
718+
/// determines the
719+
/// split.
719720
///
720721
/// # Examples
721722
///
@@ -759,7 +760,7 @@ impl str {
759760
/// Returns `None` if it doesn't exist.
760761
///
761762
/// The pattern can be a simple `&str`, `char`,
762-
/// or a closure that determines if a character matches.
763+
/// or a closure that determines the split.
763764
///
764765
/// # Examples
765766
///
@@ -1095,7 +1096,7 @@ impl str {
10951096
/// An iterator over the matches of a pattern within `self`.
10961097
///
10971098
/// The pattern can be a simple `&str`, `char`, or a closure that
1098-
/// determines if a character matches.
1099+
/// determines the split.
10991100
/// Additional libraries might provide more complex patterns like
11001101
/// regular expressions.
11011102
///
@@ -1128,7 +1129,7 @@ impl str {
11281129
/// reverse order.
11291130
///
11301131
/// The pattern can be a simple `&str`, `char`, or a closure that
1131-
/// determines if a character matches.
1132+
/// determines the split.
11321133
/// Additional libraries might provide more complex patterns like
11331134
/// regular expressions.
11341135
///
@@ -1165,7 +1166,8 @@ impl str {
11651166
/// match are returned.
11661167
///
11671168
/// The pattern can be a simple `&str`, `char`, or a closure that
1168-
/// determines if a character matches.
1169+
/// determines
1170+
/// the split.
11691171
/// Additional libraries might provide more complex patterns like
11701172
/// regular expressions.
11711173
///
@@ -1212,7 +1214,8 @@ impl str {
12121214
/// match are returned.
12131215
///
12141216
/// The pattern can be a simple `&str`, `char`, or a closure that
1215-
/// determines if a character matches.
1217+
/// determines
1218+
/// the split.
12161219
/// Additional libraries might provide more complex patterns like
12171220
/// regular expressions.
12181221
///
@@ -1293,7 +1296,7 @@ impl str {
12931296
/// repeatedly removed.
12941297
///
12951298
/// The pattern can be a simple `char`, or a closure that determines
1296-
/// if a character matches.
1299+
/// the split.
12971300
///
12981301
/// # Examples
12991302
///
@@ -1323,7 +1326,7 @@ impl str {
13231326
/// repeatedly removed.
13241327
///
13251328
/// The pattern can be a simple `&str`, `char`, or a closure that
1326-
/// determines if a character matches.
1329+
/// determines the split.
13271330
///
13281331
/// # Examples
13291332
///
@@ -1343,7 +1346,7 @@ impl str {
13431346
/// repeatedly removed.
13441347
///
13451348
/// The pattern can be a simple `&str`, `char`, or a closure that
1346-
/// determines if a character matches.
1349+
/// determines the split.
13471350
///
13481351
/// # Examples
13491352
///

branches/tmp/src/liblibc/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1683,12 +1683,10 @@ pub mod types {
16831683
pub mod posix01 {
16841684
use types::common::c95::{c_void};
16851685
use types::common::c99::{uint32_t, uint64_t};
1686-
use types::os::arch::c95::{c_long, time_t};
1686+
use types::os::arch::c95::{c_int, c_uint, c_long, time_t};
16871687
use types::os::arch::posix88::{dev_t, gid_t};
16881688
use types::os::arch::posix88::{mode_t, off_t};
16891689
use types::os::arch::posix88::{uid_t};
1690-
#[cfg(target_os = "netbsd")]
1691-
use types::os::arch::c95::{c_int, c_uint};
16921690

16931691
pub type nlink_t = uint32_t;
16941692
pub type blksize_t = uint32_t;

branches/tmp/src/librustc/middle/liveness.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1399,8 +1399,9 @@ fn check_arm(this: &mut Liveness, arm: &hir::Arm) {
13991399

14001400
fn check_expr(this: &mut Liveness, expr: &Expr) {
14011401
match expr.node {
1402-
hir::ExprAssign(ref l, _) => {
1402+
hir::ExprAssign(ref l, ref r) => {
14031403
this.check_lvalue(&**l);
1404+
this.visit_expr(&**r);
14041405

14051406
visit::walk_expr(this, expr);
14061407
}

branches/tmp/src/test/compile-fail/issue-22599.rs

Lines changed: 0 additions & 20 deletions
This file was deleted.

branches/tmp/src/test/run-make/tools.mk

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,6 @@ ifeq ($(UNAME),Bitrig)
8585
else
8686
ifeq ($(UNAME),OpenBSD)
8787
EXTRACFLAGS := -lm -lpthread
88-
# extend search lib for found estdc++ if build using gcc from
89-
# ports under OpenBSD. This is needed for:
90-
# - run-make/execution-engine
91-
# - run-make/issue-19371
92-
RUSTC := $(RUSTC) -L/usr/local/lib
9388
else
9489
EXTRACFLAGS := -lm -lrt -ldl -lpthread
9590
EXTRACXXFLAGS := -lstdc++

0 commit comments

Comments
 (0)