Skip to content

Commit 5345275

Browse files
committed
---
yaml --- r: 236414 b: refs/heads/auto c: c104ba3 h: refs/heads/master v: v3
1 parent 50d149d commit 5345275

File tree

9 files changed

+48
-24
lines changed

9 files changed

+48
-24
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
88
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
99
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1010
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
11-
refs/heads/auto: e0f35da9c1839aced4b0db840486b6da0742f444
11+
refs/heads/auto: c104ba37553b8887253eda2e081f2c30283b2ce9
1212
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1313
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
1414
refs/tags/0.2: 1754d02027f2924bed83b0160ee340c7f41d5ea1

branches/auto/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: grun not available, skipping lexer test...)
61+
$(info cfg: lexer tooling not available, skipping lexer test...)
6262
check-lexer:
6363

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

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

7474
endif

branches/auto/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 familiarity.
12+
help acquire such background.
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/auto/src/doc/reference.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -900,9 +900,10 @@ fn main() {}
900900

901901
### Functions
902902

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
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
906907
set of *input* [*variables*](#variables) as parameters, through which the caller
907908
passes arguments into the function, and the *output* [*type*](#types)
908909
of the value the function will return to its caller on completion.
@@ -921,7 +922,7 @@ An example of a function:
921922

922923
```
923924
fn add(x: i32, y: i32) -> i32 {
924-
return x + y;
925+
x + y
925926
}
926927
```
927928

branches/auto/src/libcollections/str.rs

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -715,8 +715,7 @@ 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 the
719-
/// split.
718+
/// determines if a character matches.
720719
///
721720
/// # Examples
722721
///
@@ -760,7 +759,7 @@ impl str {
760759
/// Returns `None` if it doesn't exist.
761760
///
762761
/// The pattern can be a simple `&str`, `char`,
763-
/// or a closure that determines the split.
762+
/// or a closure that determines if a character matches.
764763
///
765764
/// # Examples
766765
///
@@ -1096,7 +1095,7 @@ impl str {
10961095
/// An iterator over the matches of a pattern within `self`.
10971096
///
10981097
/// The pattern can be a simple `&str`, `char`, or a closure that
1099-
/// determines the split.
1098+
/// determines if a character matches.
11001099
/// Additional libraries might provide more complex patterns like
11011100
/// regular expressions.
11021101
///
@@ -1129,7 +1128,7 @@ impl str {
11291128
/// reverse order.
11301129
///
11311130
/// The pattern can be a simple `&str`, `char`, or a closure that
1132-
/// determines the split.
1131+
/// determines if a character matches.
11331132
/// Additional libraries might provide more complex patterns like
11341133
/// regular expressions.
11351134
///
@@ -1166,8 +1165,7 @@ impl str {
11661165
/// match are returned.
11671166
///
11681167
/// The pattern can be a simple `&str`, `char`, or a closure that
1169-
/// determines
1170-
/// the split.
1168+
/// determines if a character matches.
11711169
/// Additional libraries might provide more complex patterns like
11721170
/// regular expressions.
11731171
///
@@ -1214,8 +1212,7 @@ impl str {
12141212
/// match are returned.
12151213
///
12161214
/// The pattern can be a simple `&str`, `char`, or a closure that
1217-
/// determines
1218-
/// the split.
1215+
/// determines if a character matches.
12191216
/// Additional libraries might provide more complex patterns like
12201217
/// regular expressions.
12211218
///
@@ -1296,7 +1293,7 @@ impl str {
12961293
/// repeatedly removed.
12971294
///
12981295
/// The pattern can be a simple `char`, or a closure that determines
1299-
/// the split.
1296+
/// if a character matches.
13001297
///
13011298
/// # Examples
13021299
///
@@ -1326,7 +1323,7 @@ impl str {
13261323
/// repeatedly removed.
13271324
///
13281325
/// The pattern can be a simple `&str`, `char`, or a closure that
1329-
/// determines the split.
1326+
/// determines if a character matches.
13301327
///
13311328
/// # Examples
13321329
///
@@ -1346,7 +1343,7 @@ impl str {
13461343
/// repeatedly removed.
13471344
///
13481345
/// The pattern can be a simple `&str`, `char`, or a closure that
1349-
/// determines the split.
1346+
/// determines if a character matches.
13501347
///
13511348
/// # Examples
13521349
///

branches/auto/src/liblibc/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1683,10 +1683,12 @@ 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_int, c_uint, c_long, time_t};
1686+
use types::os::arch::c95::{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};
16901692

16911693
pub type nlink_t = uint32_t;
16921694
pub type blksize_t = uint32_t;

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,9 +1399,8 @@ 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, ref r) => {
1402+
hir::ExprAssign(ref l, _) => {
14031403
this.check_lvalue(&**l);
1404-
this.visit_expr(&**r);
14051404

14061405
visit::walk_expr(this, expr);
14071406
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
#![deny(unused_variables)]
12+
13+
fn f(_: i32) {}
14+
15+
fn main() {
16+
let mut v = 0;
17+
f(v);
18+
v = match 0 { a => 0 }; //~ ERROR: unused variable: `a`
19+
f(v);
20+
}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ 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
8893
else
8994
EXTRACFLAGS := -lm -lrt -ldl -lpthread
9095
EXTRACXXFLAGS := -lstdc++

0 commit comments

Comments
 (0)