Skip to content

Commit aeb0536

Browse files
committed
---
yaml --- r: 130557 b: refs/heads/snap-stage3 c: cf35cb3 h: refs/heads/master i: 130555: 99aea81 v: v3
1 parent 78a2cd2 commit aeb0536

39 files changed

+3655
-4181
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: ee72e46638f2b2ae92e99df2a7ea92690baa0d07
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: da1395b6cbd613054ed1f0400b0599226a7ddcee
4+
refs/heads/snap-stage3: cf35cb365a4efee53f6372095aaff4798544bf94
55
refs/heads/try: a2473a89da106f7dd3be86e9d52fe23f43d5bfa5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libglob/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,6 @@ mod test {
680680
}
681681

682682
#[test]
683-
#[ignore(cfg(windows))] // FIXME (#9406)
684683
fn test_lots_of_files() {
685684
// this is a good test because it touches lots of differently named files
686685
glob("/*/*/*/*").skip(10000).next();

branches/snap-stage3/src/libnum/rational.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ impl<T: Clone + Integer + PartialOrd>
154154
Ratio::from_integer(self.numer / self.denom)
155155
}
156156

157-
/// Returns the fractional part of a number.
157+
///Returns the fractional part of a number.
158158
#[inline]
159159
pub fn fract(&self) -> Ratio<T> {
160160
Ratio::new_raw(self.numer % self.denom, self.denom.clone())
@@ -243,7 +243,7 @@ macro_rules! arith_impl {
243243
}
244244
}
245245

246-
// a/b + c/d = (a*d + b*c)/(b*d)
246+
// a/b + c/d = (a*d + b*c)/(b*d
247247
arith_impl!(impl Add, add)
248248

249249
// a/b - c/d = (a*d - b*c)/(b*d)

branches/snap-stage3/src/librustc/back/link.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -715,14 +715,14 @@ fn symbol_hash(tcx: &ty::ctxt,
715715
}
716716

717717
fn get_symbol_hash(ccx: &CrateContext, t: ty::t) -> String {
718-
match ccx.type_hashcodes.borrow().find(&t) {
718+
match ccx.type_hashcodes().borrow().find(&t) {
719719
Some(h) => return h.to_string(),
720720
None => {}
721721
}
722722

723-
let mut symbol_hasher = ccx.symbol_hasher.borrow_mut();
724-
let hash = symbol_hash(ccx.tcx(), &mut *symbol_hasher, t, &ccx.link_meta);
725-
ccx.type_hashcodes.borrow_mut().insert(t, hash.clone());
723+
let mut symbol_hasher = ccx.symbol_hasher().borrow_mut();
724+
let hash = symbol_hash(ccx.tcx(), &mut *symbol_hasher, t, ccx.link_meta());
725+
ccx.type_hashcodes().borrow_mut().insert(t, hash.clone());
726726
hash
727727
}
728728

branches/snap-stage3/src/librustc/lint/context.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ impl LintStore {
103103
}
104104

105105
pub fn get_lint_groups<'t>(&'t self) -> Vec<(&'static str, Vec<LintId>, bool)> {
106-
self.lint_groups.iter().map(|(k, v)| (*k,
107-
v.ref0().clone(),
108-
*v.ref1())).collect()
106+
self.lint_groups.iter().map(|(k, &(ref v, b))| (*k, v.clone(), b)).collect()
109107
}
110108

111109
pub fn register_pass(&mut self, sess: Option<&Session>,
@@ -212,7 +210,7 @@ impl LintStore {
212210
match self.by_name.find_equiv(&lint_name.as_slice()) {
213211
Some(&lint_id) => self.set_level(lint_id, (level, CommandLine)),
214212
None => {
215-
match self.lint_groups.iter().map(|(&x, pair)| (x, pair.ref0().clone()))
213+
match self.lint_groups.iter().map(|(&x, &(ref y, _))| (x, y.clone()))
216214
.collect::<HashMap<&'static str, Vec<LintId>>>()
217215
.find_equiv(&lint_name.as_slice()) {
218216
Some(v) => {

branches/snap-stage3/src/librustc/middle/trans/_match.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ fn get_branches<'a>(bcx: &'a Block, m: &[Match], col: uint) -> Vec<Opt<'a>> {
563563
}
564564
ast::PatIdent(..) | ast::PatEnum(..) | ast::PatStruct(..) => {
565565
// This is either an enum variant or a variable binding.
566-
let opt_def = ccx.tcx.def_map.borrow().find_copy(&cur.id);
566+
let opt_def = ccx.tcx().def_map.borrow().find_copy(&cur.id);
567567
match opt_def {
568568
Some(def::DefVariant(enum_id, var_id, _)) => {
569569
let variant = ty::enum_variant_with_id(ccx.tcx(), enum_id, var_id);

branches/snap-stage3/src/librustc/middle/trans/adt.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,14 @@ pub fn represent_node(bcx: &Block, node: ast::NodeId) -> Rc<Repr> {
150150
/// Decides how to represent a given type.
151151
pub fn represent_type(cx: &CrateContext, t: ty::t) -> Rc<Repr> {
152152
debug!("Representing: {}", ty_to_string(cx.tcx(), t));
153-
match cx.adt_reprs.borrow().find(&t) {
153+
match cx.adt_reprs().borrow().find(&t) {
154154
Some(repr) => return repr.clone(),
155155
None => {}
156156
}
157157

158158
let repr = Rc::new(represent_type_uncached(cx, t));
159159
debug!("Represented as: {:?}", repr)
160-
cx.adt_reprs.borrow_mut().insert(t, repr.clone());
160+
cx.adt_reprs().borrow_mut().insert(t, repr.clone());
161161
repr
162162
}
163163

@@ -423,7 +423,7 @@ fn range_to_inttype(cx: &CrateContext, hint: Hint, bounds: &IntBounds) -> IntTyp
423423
attempts = choose_shortest;
424424
},
425425
attr::ReprPacked => {
426-
cx.tcx.sess.bug("range_to_inttype: found ReprPacked on an enum");
426+
cx.tcx().sess.bug("range_to_inttype: found ReprPacked on an enum");
427427
}
428428
}
429429
for &ity in attempts.iter() {

0 commit comments

Comments
 (0)