Skip to content

Commit f299707

Browse files
committed
---
yaml --- r: 195314 b: refs/heads/snap-stage3 c: aaf74d1 h: refs/heads/master v: v3
1 parent 1a11d65 commit f299707

Some content is hidden

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

77 files changed

+104
-105
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 14192d6df5cc714e5c9a3ca70b08f2514d977be2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 5eb4be4c562c369921a6b71812a2003c4cf3163e
4+
refs/heads/snap-stage3: aaf74d1c1b743b7235e3973b6934ed4df1329ece
55
refs/heads/try: 961e0358e1a5c0faaef606e31e9965742c1643bf
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/src/doc/trpl/installing-rust.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ Linux or a Mac, all you need to do is this (note that you don't need to type
66
in the `$`s, they just indicate the start of each command):
77

88
```bash
9-
$ curl -sf -L https://static.rust-lang.org/rustup.sh | sudo sh
9+
$ curl -L https://static.rust-lang.org/rustup.sh | sudo sh
1010
```
1111

1212
If you're concerned about the [potential insecurity](http://curlpipesh.tumblr.com/) of using `curl | sudo sh`,
1313
please keep reading and see our disclaimer below. And feel free to use a two-step version of the installation and examine our installation script:
1414

1515
```bash
16-
$ curl -f -L https://static.rust-lang.org/rustup.sh -O
16+
$ curl -L https://static.rust-lang.org/rustup.sh -O
1717
$ sudo sh rustup.sh
1818
```
1919

branches/snap-stage3/src/doc/trpl/method-syntax.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ You can think of this first parameter as being the `x` in `x.foo()`. The three
5151
variants correspond to the three kinds of thing `x` could be: `self` if it's
5252
just a value on the stack, `&self` if it's a reference, and `&mut self` if it's
5353
a mutable reference. We should default to using `&self`, as it's the most
54-
common, as Rustaceans prefer borrowing over taking ownership, and references
55-
over mutable references. Here's an example of all three variants:
54+
common. Here's an example of all three variants:
5655

5756
```rust
5857
struct Circle {
@@ -101,16 +100,16 @@ impl Circle {
101100
std::f64::consts::PI * (self.radius * self.radius)
102101
}
103102
104-
fn grow(&self, increment: f64) -> Circle {
105-
Circle { x: self.x, y: self.y, radius: self.radius + increment }
103+
fn grow(&self) -> Circle {
104+
Circle { x: self.x, y: self.y, radius: (self.radius * 10.0) }
106105
}
107106
}
108107
109108
fn main() {
110109
let c = Circle { x: 0.0, y: 0.0, radius: 2.0 };
111110
println!("{}", c.area());
112111
113-
let d = c.grow(2.0).area();
112+
let d = c.grow().area();
114113
println!("{}", d);
115114
}
116115
```
@@ -125,7 +124,7 @@ fn grow(&self) -> Circle {
125124
```
126125

127126
We just say we're returning a `Circle`. With this method, we can grow a new
128-
circle to any arbitrary size.
127+
circle with an area that's 100 times larger than the old one.
129128

130129
## Static methods
131130

branches/snap-stage3/src/doc/trpl/traits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ impl Foo for OverrideDefault {
479479
}
480480

481481
let default = UseDefault;
482-
default.baz(); // prints "We called bar."
482+
default.baz(); // prints "We called baz."
483483

484484
let over = OverrideDefault;
485485
over.baz(); // prints "Override baz!"

branches/snap-stage3/src/liballoc/arc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ use core::prelude::*;
7676
use core::atomic;
7777
use core::atomic::Ordering::{Relaxed, Release, Acquire, SeqCst};
7878
use core::fmt;
79-
use core::cmp::Ordering;
79+
use core::cmp::{Ordering};
8080
use core::default::Default;
8181
use core::mem::{min_align_of, size_of};
8282
use core::mem;

branches/snap-stage3/src/libcollections/btree/map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use core::default::Default;
2424
use core::fmt::Debug;
2525
use core::hash::{Hash, Hasher};
2626
use core::iter::{Map, FromIterator, IntoIterator};
27-
use core::ops::Index;
27+
use core::ops::{Index};
2828
use core::{iter, fmt, mem, usize};
2929
use Bound::{self, Included, Excluded, Unbounded};
3030

branches/snap-stage3/src/libcollections/vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ use core::prelude::*;
5252
use alloc::boxed::Box;
5353
use alloc::heap::{EMPTY, allocate, reallocate, deallocate};
5454
use core::cmp::max;
55-
use core::cmp::Ordering;
55+
use core::cmp::{Ordering};
5656
use core::default::Default;
5757
use core::fmt;
5858
use core::hash::{self, Hash};

branches/snap-stage3/src/libcore/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ use fmt::{Debug, Display};
8787

8888
/// Base functionality for all errors in Rust.
8989
#[stable(feature = "rust1", since = "1.0.0")]
90-
pub trait Error: Debug + Display {
90+
pub trait Error: Debug + Display + Send {
9191
/// A short description of the error.
9292
///
9393
/// The description should not contain newlines or sentence-ending

branches/snap-stage3/src/libcore/option.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ use self::Option::*;
148148
use clone::Clone;
149149
use cmp::{Eq, Ord};
150150
use default::Default;
151-
use iter::ExactSizeIterator;
151+
use iter::{ExactSizeIterator};
152152
use iter::{Iterator, IteratorExt, DoubleEndedIterator, FromIterator, IntoIterator};
153153
use mem;
154154
use ops::FnOnce;

branches/snap-stage3/src/librand/distributions/range.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
// this is surprisingly complicated to be both generic & correct
1414

15-
use core::prelude::PartialOrd;
15+
use core::prelude::{PartialOrd};
1616
use core::num::Int;
1717
use core::num::wrapping::WrappingOps;
1818

branches/snap-stage3/src/librustc/metadata/encoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use metadata::cstore;
2222
use metadata::decoder;
2323
use metadata::tyencode;
2424
use middle::def;
25-
use middle::ty::lookup_item_type;
25+
use middle::ty::{lookup_item_type};
2626
use middle::ty::{self, Ty};
2727
use middle::stability;
2828
use util::nodemap::{FnvHashMap, NodeMap, NodeSet};

branches/snap-stage3/src/librustc/metadata/loader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@
212212
//! no means all of the necessary details. Take a look at the rest of
213213
//! metadata::loader or metadata::creader for all the juicy details!
214214
215-
use back::archive::METADATA_FILENAME;
215+
use back::archive::{METADATA_FILENAME};
216216
use back::svh::Svh;
217217
use session::Session;
218218
use session::search_paths::PathKind;

branches/snap-stage3/src/librustc/middle/astencode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ use rbml::writer::Encoder;
5050
use rbml;
5151
use serialize;
5252
use serialize::{Decodable, Decoder, DecoderHelpers, Encodable};
53-
use serialize::EncoderHelpers;
53+
use serialize::{EncoderHelpers};
5454

5555
#[cfg(test)] use std::io::Cursor;
5656
#[cfg(test)] use syntax::parse;

branches/snap-stage3/src/librustc/middle/check_match.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use middle::const_eval::{const_expr_to_pat, lookup_const_by_id};
1818
use middle::def::*;
1919
use middle::expr_use_visitor::{ConsumeMode, Delegate, ExprUseVisitor, Init};
2020
use middle::expr_use_visitor::{JustWrite, LoanCause, MutateMode};
21-
use middle::expr_use_visitor::WriteAndRead;
21+
use middle::expr_use_visitor::{WriteAndRead};
2222
use middle::expr_use_visitor as euv;
2323
use middle::mem_categorization::cmt;
2424
use middle::pat_util::*;

branches/snap-stage3/src/librustc/middle/infer/bivariate.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
//! In particular, it might be enough to say (A,B) are bivariant for
2626
//! all (A,B).
2727
28-
use middle::ty::BuiltinBounds;
28+
use middle::ty::{BuiltinBounds};
2929
use middle::ty::{self, Ty};
3030
use middle::ty::TyVar;
3131
use middle::infer::combine::*;
32-
use middle::infer::cres;
33-
use middle::infer::type_variable::BiTo;
34-
use util::ppaux::Repr;
32+
use middle::infer::{cres};
33+
use middle::infer::type_variable::{BiTo};
34+
use util::ppaux::{Repr};
3535

3636
pub struct Bivariate<'f, 'tcx: 'f> {
3737
fields: CombineFields<'f, 'tcx>

branches/snap-stage3/src/librustc/middle/infer/combine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ use middle::subst;
4646
use middle::subst::{ErasedRegions, NonerasedRegions, Substs};
4747
use middle::ty::{FloatVar, FnSig, IntVar, TyVar};
4848
use middle::ty::{IntType, UintType};
49-
use middle::ty::BuiltinBounds;
49+
use middle::ty::{BuiltinBounds};
5050
use middle::ty::{self, Ty};
5151
use middle::ty_fold;
5252
use middle::ty_fold::{TypeFolder, TypeFoldable};

branches/snap-stage3/src/librustc/middle/infer/equate.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
use middle::ty::{self, Ty};
1212
use middle::ty::TyVar;
1313
use middle::infer::combine::*;
14-
use middle::infer::cres;
15-
use middle::infer::Subtype;
16-
use middle::infer::type_variable::EqTo;
17-
use util::ppaux::Repr;
14+
use middle::infer::{cres};
15+
use middle::infer::{Subtype};
16+
use middle::infer::type_variable::{EqTo};
17+
use util::ppaux::{Repr};
1818

1919
pub struct Equate<'f, 'tcx: 'f> {
2020
fields: CombineFields<'f, 'tcx>

branches/snap-stage3/src/librustc/middle/infer/glb.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use super::combine::*;
1212
use super::lattice::*;
1313
use super::higher_ranked::HigherRankedRelations;
14-
use super::cres;
14+
use super::{cres};
1515
use super::Subtype;
1616

1717
use middle::ty::{self, Ty};

branches/snap-stage3/src/librustc/middle/infer/lattice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ use super::combine::*;
3434
use super::glb::Glb;
3535
use super::lub::Lub;
3636

37-
use middle::ty::TyVar;
37+
use middle::ty::{TyVar};
3838
use middle::ty::{self, Ty};
3939
use util::ppaux::Repr;
4040

branches/snap-stage3/src/librustc/middle/infer/lub.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
use super::combine::*;
1212
use super::higher_ranked::HigherRankedRelations;
1313
use super::lattice::*;
14-
use super::cres;
15-
use super::Subtype;
14+
use super::{cres};
15+
use super::{Subtype};
1616

1717
use middle::ty::{self, Ty};
1818
use util::ppaux::Repr;

branches/snap-stage3/src/librustc/middle/infer/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ use middle::ty::{TyVid, IntVid, FloatVid, RegionVid, UnconstrainedNumeric};
2828
use middle::ty::replace_late_bound_regions;
2929
use middle::ty::{self, Ty};
3030
use middle::ty_fold::{TypeFolder, TypeFoldable};
31-
use std::cell::RefCell;
31+
use std::cell::{RefCell};
3232
use std::fmt;
3333
use std::rc::Rc;
3434
use syntax::ast;
3535
use syntax::codemap;
3636
use syntax::codemap::Span;
3737
use util::nodemap::FnvHashMap;
38-
use util::ppaux::ty_to_string;
38+
use util::ppaux::{ty_to_string};
3939
use util::ppaux::{Repr, UserString};
4040

4141
use self::combine::{Combine, Combineable, CombineFields};

branches/snap-stage3/src/librustc/middle/infer/sub.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
// except according to those terms.
1010

1111
use super::combine::*;
12-
use super::cres;
12+
use super::{cres};
1313
use super::higher_ranked::HigherRankedRelations;
14-
use super::Subtype;
14+
use super::{Subtype};
1515
use super::type_variable::{SubtypeOf, SupertypeOf};
1616

1717
use middle::ty::{self, Ty};
1818
use middle::ty::TyVar;
19-
use util::ppaux::Repr;
19+
use util::ppaux::{Repr};
2020

2121
/// "Greatest lower bound" (common subtype)
2222
pub struct Sub<'f, 'tcx: 'f> {

branches/snap-stage3/src/librustc/middle/mem_categorization.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ use middle::check_const;
7575
use middle::def;
7676
use middle::region;
7777
use middle::ty::{self, Ty};
78-
use util::nodemap::NodeMap;
78+
use util::nodemap::{NodeMap};
7979
use util::ppaux::{Repr, UserString};
8080

8181
use syntax::ast::{MutImmutable, MutMutable};

branches/snap-stage3/src/librustc/middle/pat_util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use middle::ty;
1313
use util::nodemap::FnvHashMap;
1414

1515
use syntax::ast;
16-
use syntax::ast_util::walk_pat;
16+
use syntax::ast_util::{walk_pat};
1717
use syntax::codemap::{Span, DUMMY_SP};
1818

1919
pub type PatIdMap = FnvHashMap<ast::Ident, ast::NodeId>;

branches/snap-stage3/src/librustc/middle/region.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use std::cell::RefCell;
2525
use syntax::codemap::{self, Span};
2626
use syntax::{ast, visit};
2727
use syntax::ast::{Block, Item, FnDecl, NodeId, Arm, Pat, Stmt, Expr, Local};
28-
use syntax::ast_util::stmt_id;
28+
use syntax::ast_util::{stmt_id};
2929
use syntax::ast_map;
3030
use syntax::ptr::P;
3131
use syntax::visit::{Visitor, FnKind};

branches/snap-stage3/src/librustc/middle/resolve_lifetime.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ use syntax::ast;
2828
use syntax::codemap::Span;
2929
use syntax::parse::token::special_idents;
3030
use syntax::parse::token;
31-
use syntax::print::pprust::lifetime_to_string;
31+
use syntax::print::pprust::{lifetime_to_string};
3232
use syntax::visit;
3333
use syntax::visit::Visitor;
3434
use util::nodemap::NodeMap;

branches/snap-stage3/src/librustc/middle/traits/coherence.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
use super::Normalized;
1414
use super::SelectionContext;
15-
use super::ObligationCause;
15+
use super::{ObligationCause};
1616
use super::PredicateObligation;
1717
use super::project;
1818
use super::util;

branches/snap-stage3/src/librustc/middle/traits/fulfill.rs

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

11-
use middle::infer::InferCtxt;
11+
use middle::infer::{InferCtxt};
1212
use middle::ty::{self, RegionEscape, Ty};
1313
use std::collections::HashSet;
1414
use std::default::Default;

branches/snap-stage3/src/librustc/middle/traits/select.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ use super::DerivedObligationCause;
2121
use super::project;
2222
use super::project::{normalize_with_depth, Normalized};
2323
use super::{PredicateObligation, TraitObligation, ObligationCause};
24-
use super::report_overflow_error;
24+
use super::{report_overflow_error};
2525
use super::{ObligationCauseCode, BuiltinDerivedObligation, ImplDerivedObligation};
2626
use super::{SelectionError, Unimplemented, OutputTypeParameterMismatch};
27-
use super::Selection;
28-
use super::SelectionResult;
27+
use super::{Selection};
28+
use super::{SelectionResult};
2929
use super::{VtableBuiltin, VtableImpl, VtableParam, VtableClosure,
3030
VtableFnPointer, VtableObject, VtableDefaultImpl};
3131
use super::{VtableImplData, VtableObjectData, VtableBuiltinData, VtableDefaultImplData};
3232
use super::object_safety;
33-
use super::util;
33+
use super::{util};
3434

3535
use middle::fast_reject;
3636
use middle::subst::{Subst, Substs, TypeSpace, VecPerParamSpace};

branches/snap-stage3/src/librustc/middle/ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ use util::ppaux::ty_to_string;
6464
use util::ppaux::{Repr, UserString};
6565
use util::common::{memoized, ErrorReported};
6666
use util::nodemap::{NodeMap, NodeSet, DefIdMap, DefIdSet};
67-
use util::nodemap::FnvHashMap;
67+
use util::nodemap::{FnvHashMap};
6868

6969
use arena::TypedArena;
7070
use std::borrow::{Borrow, Cow};

branches/snap-stage3/src/librustc/plugin/registry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use session::Session;
1515

1616
use syntax::ext::base::{SyntaxExtension, NamedSyntaxExtension, NormalTT};
1717
use syntax::ext::base::{IdentTT, Decorator, Modifier, MultiModifier, MacroRulesTT};
18-
use syntax::ext::base::MacroExpanderFn;
18+
use syntax::ext::base::{MacroExpanderFn};
1919
use syntax::codemap::Span;
2020
use syntax::parse::token;
2121
use syntax::ptr::P;

branches/snap-stage3/src/librustc/util/nodemap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
#![allow(non_snake_case)]
1414

15-
use std::collections::hash_state::DefaultState;
15+
use std::collections::hash_state::{DefaultState};
1616
use std::collections::{HashMap, HashSet};
1717
use std::default::Default;
1818
use std::hash::{Hasher, Hash};

branches/snap-stage3/src/librustc/util/ppaux.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use middle::ty::{mt, Ty, ParamTy};
2121
use middle::ty::{ty_bool, ty_char, ty_struct, ty_enum};
2222
use middle::ty::{ty_err, ty_str, ty_vec, ty_float, ty_bare_fn};
2323
use middle::ty::{ty_param, ty_ptr, ty_rptr, ty_tup};
24-
use middle::ty::ty_closure;
24+
use middle::ty::{ty_closure};
2525
use middle::ty::{ty_uniq, ty_trait, ty_int, ty_uint, ty_infer};
2626
use middle::ty;
2727
use middle::ty_fold::TypeFoldable;

branches/snap-stage3/src/librustc_borrowck/borrowck/fragments.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
use self::Fragment::*;
1616

1717
use borrowck::InteriorKind::{InteriorField, InteriorElement};
18-
use borrowck::LoanPath;
18+
use borrowck::{LoanPath};
1919
use borrowck::LoanPathKind::{LpVar, LpUpvar, LpDowncast, LpExtend};
2020
use borrowck::LoanPathElem::{LpDeref, LpInterior};
21-
use borrowck::move_data::InvalidMovePathIndex;
21+
use borrowck::move_data::{InvalidMovePathIndex};
2222
use borrowck::move_data::{MoveData, MovePathIndex};
2323
use rustc::middle::ty;
2424
use rustc::middle::mem_categorization as mc;

0 commit comments

Comments
 (0)