Skip to content

Commit 1565416

Browse files
committed
---
yaml --- r: 177115 b: refs/heads/auto c: 1669f89 h: refs/heads/master i: 177113: 81804a0 177111: ad44e42 v: v3
1 parent 5102a5c commit 1565416

File tree

467 files changed

+7005
-4989
lines changed

Some content is hidden

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

467 files changed

+7005
-4989
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: 1c502f1d435734990dc6eee34d80caf737db2076
13+
refs/heads/auto: 1669f89e14c8231d3bf45ab30f0956702682dc8d
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/AUTHORS.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ Olivier Saut <[email protected]>
516516
Olle Jonsson <[email protected]>
517517
Or Brostovski <[email protected]>
518518
Oren Hazi <[email protected]>
519-
Orphée Lafond-Lummis <o@orftz.com>
519+
Orpheus Lummis <o@orpheuslummis.com>
520520
521521
Pablo Brasero <[email protected]>
522522
Palmer Cox <[email protected]>

branches/auto/mk/tests.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ tidy:
301301
| grep '^$(S)src/rust-installer' -v \
302302
| xargs $(CFG_PYTHON) $(S)src/etc/check-binaries.py
303303
$(Q) $(CFG_PYTHON) $(S)src/etc/errorck.py $(S)src/
304+
$(Q) $(CFG_PYTHON) $(S)src/etc/featureck.py $(S)src/
304305

305306

306307
endif

branches/auto/src/compiletest/common.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use std::fmt;
1313
use std::str::FromStr;
1414

1515
#[cfg(stage0)] // NOTE: remove impl after snapshot
16-
#[derive(Clone, PartialEq, Show)]
16+
#[derive(Clone, Copy, PartialEq, Show)]
1717
pub enum Mode {
1818
CompileFail,
1919
RunFail,
@@ -26,7 +26,7 @@ pub enum Mode {
2626
}
2727

2828
#[cfg(not(stage0))] // NOTE: remove cfg after snapshot
29-
#[derive(Clone, PartialEq, Debug)]
29+
#[derive(Clone, Copy, PartialEq, Debug)]
3030
pub enum Mode {
3131
CompileFail,
3232
RunFail,
@@ -38,9 +38,6 @@ pub enum Mode {
3838
Codegen
3939
}
4040

41-
42-
impl Copy for Mode {}
43-
4441
impl FromStr for Mode {
4542
fn from_str(s: &str) -> Option<Mode> {
4643
match s {

branches/auto/src/compiletest/compiletest.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,15 @@
1313
#![feature(slicing_syntax, unboxed_closures)]
1414
#![feature(box_syntax)]
1515
#![feature(int_uint)]
16-
#![allow(unstable)]
16+
#![feature(test)]
17+
#![feature(rustc_private)]
18+
#![feature(std_misc)]
19+
#![feature(path)]
20+
#![feature(io)]
21+
#![feature(core)]
22+
#![feature(collections)]
23+
#![feature(os)]
24+
#![feature(unicode)]
1725

1826
#![deny(warnings)]
1927

branches/auto/src/doc/reference.md

Lines changed: 3 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1680,8 +1680,8 @@ specific type.
16801680
Implementations are defined with the keyword `impl`.
16811681

16821682
```
1683+
# #[derive(Copy)]
16831684
# struct Point {x: f64, y: f64};
1684-
# impl Copy for Point {}
16851685
# type Surface = i32;
16861686
# struct BoundingBox {x: f64, y: f64, width: f64, height: f64};
16871687
# trait Shape { fn draw(&self, Surface); fn bounding_box(&self) -> BoundingBox; }
@@ -2219,7 +2219,7 @@ For any lint check `C`:
22192219

22202220
The lint checks supported by the compiler can be found via `rustc -W help`,
22212221
along with their default settings. [Compiler
2222-
plugins](book/plugin.html#lint-plugins) can provide additional lint checks.
2222+
plugins](book/plugins.html#lint-plugins) can provide additional lint checks.
22232223

22242224
```{.ignore}
22252225
mod m1 {
@@ -2359,77 +2359,6 @@ Supported traits for `derive` are:
23592359
* `Show`, to format a value using the `{}` formatter.
23602360
* `Zero`, to create a zero instance of a numeric data type.
23612361

2362-
### Stability
2363-
2364-
One can indicate the stability of an API using the following attributes:
2365-
2366-
* `deprecated`: This item should no longer be used, e.g. it has been
2367-
replaced. No guarantee of backwards-compatibility.
2368-
* `experimental`: This item was only recently introduced or is
2369-
otherwise in a state of flux. It may change significantly, or even
2370-
be removed. No guarantee of backwards-compatibility.
2371-
* `unstable`: This item is still under development, but requires more
2372-
testing to be considered stable. No guarantee of backwards-compatibility.
2373-
* `stable`: This item is considered stable, and will not change
2374-
significantly. Guarantee of backwards-compatibility.
2375-
* `frozen`: This item is very stable, and is unlikely to
2376-
change. Guarantee of backwards-compatibility.
2377-
* `locked`: This item will never change unless a serious bug is
2378-
found. Guarantee of backwards-compatibility.
2379-
2380-
These levels are directly inspired by
2381-
[Node.js' "stability index"](http://nodejs.org/api/documentation.html).
2382-
2383-
Stability levels are inherited, so an item's stability attribute is the default
2384-
stability for everything nested underneath it.
2385-
2386-
There are lints for disallowing items marked with certain levels: `deprecated`,
2387-
`experimental` and `unstable`. For now, only `deprecated` warns by default, but
2388-
this will change once the standard library has been stabilized. Stability
2389-
levels are meant to be promises at the crate level, so these lints only apply
2390-
when referencing items from an _external_ crate, not to items defined within
2391-
the current crate. Items with no stability level are considered to be unstable
2392-
for the purposes of the lint. One can give an optional string that will be
2393-
displayed when the lint flags the use of an item.
2394-
2395-
For example, if we define one crate called `stability_levels`:
2396-
2397-
```{.ignore}
2398-
#[deprecated="replaced by `best`"]
2399-
pub fn bad() {
2400-
// delete everything
2401-
}
2402-
2403-
pub fn better() {
2404-
// delete fewer things
2405-
}
2406-
2407-
#[stable]
2408-
pub fn best() {
2409-
// delete nothing
2410-
}
2411-
```
2412-
2413-
then the lints will work as follows for a client crate:
2414-
2415-
```{.ignore}
2416-
#![warn(unstable)]
2417-
extern crate stability_levels;
2418-
use stability_levels::{bad, better, best};
2419-
2420-
fn main() {
2421-
bad(); // "warning: use of deprecated item: replaced by `best`"
2422-
2423-
better(); // "warning: use of unmarked item"
2424-
2425-
best(); // no warning
2426-
}
2427-
```
2428-
2429-
> **Note:** Currently these are only checked when applied to individual
2430-
> functions, structs, methods and enum variants, *not* to entire modules,
2431-
> traits, impls or enums themselves.
2432-
24332362
### Compiler Features
24342363

24352364
Certain aspects of Rust may be implemented in the compiler, but they're not
@@ -4234,4 +4163,4 @@ that have since been removed):
42344163
pattern syntax
42354164

42364165
[ffi]: book/ffi.html
4237-
[plugin]: book/plugin.html
4166+
[plugin]: book/plugins.html

branches/auto/src/doc/trpl/more-strings.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,5 +279,5 @@ Many more bytes than graphemes!
279279

280280
# Other Documentation
281281

282-
* [the `&str` API documentation](std/str/index.html)
283-
* [the `String` API documentation](std/string/index.html)
282+
* [the `&str` API documentation](../std/str/index.html)
283+
* [the `String` API documentation](../std/string/index.html)

branches/auto/src/doc/trpl/ownership.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@ fn substr<'a>(s: &'a str, until: u32) -> &'a str; // expanded
533533
fn get_str() -> &str; // ILLEGAL, no inputs
534534
535535
fn frob(s: &str, t: &str) -> &str; // ILLEGAL, two inputs
536+
fn frob<'a, 'b>(s: &'a str, t: &'b str) -> &str; // Expanded: Output lifetime is unclear
536537
537538
fn get_mut(&mut self) -> &mut T; // elided
538539
fn get_mut<'a>(&'a mut self) -> &'a mut T; // expanded

branches/auto/src/driver/driver.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![allow(unstable)]
11+
#![allow(unknown_features)]
12+
#![cfg_attr(rustc, feature(rustc_private))]
13+
#![cfg_attr(rustdoc, feature(rustdoc))]
1214

1315
#[cfg(rustdoc)]
1416
extern crate "rustdoc" as this;

branches/auto/src/etc/check-summary.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
if __name__ == '__main__':
1717
summaries = []
18+
1819
def summarise(fname):
1920
summary = {}
2021
with open(fname) as fd:
@@ -27,12 +28,14 @@ def summarise(fname):
2728
# track bench runs
2829
if splitline[1] == 'ns/iter':
2930
status = 'bench'
30-
if not summary.has_key(status):
31+
if status not in summary:
3132
summary[status] = []
3233
summary[status].append(test)
3334
summaries.append((fname, summary))
35+
3436
def count(t):
3537
return sum(map(lambda (f, s): len(s.get(t, [])), summaries))
38+
3639
logfiles = sys.argv[1:]
3740
for files in map(glob.glob, logfiles):
3841
map(summarise, files)
@@ -41,8 +44,9 @@ def count(t):
4144
ignored = count('ignored')
4245
measured = count('bench')
4346
print "summary of %d test runs: %d passed; %d failed; %d ignored; %d measured" % \
44-
(len(logfiles), ok, failed, ignored, measured)
47+
(len(logfiles), ok, failed, ignored, measured)
4548
print ""
49+
4650
if failed > 0:
4751
print "failed tests:"
4852
for f, s in summaries:

branches/auto/src/etc/errorck.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
# Digs error codes out of files named 'diagnostics.rs' across
1212
# the tree, and ensures thare are no duplicates.
1313

14-
import sys, os, re
14+
import sys
15+
import os
16+
import re
1517

1618
src_dir = sys.argv[1]
1719
errcode_map = {}

0 commit comments

Comments
 (0)