Skip to content

Commit e0c892c

Browse files
committed
---
yaml --- r: 120775 b: refs/heads/dist-snap c: 81c0223 h: refs/heads/master i: 120773: 93d6af0 120771: 5260a40 120767: 7a0f338 v: v3
1 parent 20d5ab3 commit e0c892c

30 files changed

+380
-253
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 1813e5aa1a03b0596b8de7abd1af31edf5d6098f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 925ff6511887d917c09c61cb9d41f97ce7eab942
9+
refs/heads/dist-snap: 81c022317a67042f6eef9491a12d6bdb10cf6e46
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/doc/rust.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,6 +1036,7 @@ Unsafe operations are those that potentially violate the memory-safety guarantee
10361036
The following language level features cannot be used in the safe subset of Rust:
10371037

10381038
- Dereferencing a [raw pointer](#pointer-types).
1039+
- Reading or writing a [mutable static variable](#mutable-statics).
10391040
- Calling an unsafe function (including an intrinsic or foreign function).
10401041

10411042
##### Unsafe functions

branches/dist-snap/src/libcore/cmp.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
//! assert!(SketchyNum {num: 25} != SketchyNum {num: 57});
3838
//! ```
3939
40+
pub use PartialEq = cmp::Eq;
41+
pub use PartialOrd = cmp::Ord;
42+
4043
/// Trait for values that can be compared for equality and inequality.
4144
///
4245
/// This trait allows partial equality, where types can be unordered instead of

branches/dist-snap/src/librustc/middle/cfg/construct.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ impl<'a> CFGBuilder<'a> {
113113
self.add_node(pat.id, [pred])
114114
}
115115

116-
ast::PatUniq(subpat) |
116+
ast::PatBox(subpat) |
117117
ast::PatRegion(subpat) |
118118
ast::PatIdent(_, _, Some(subpat)) => {
119119
let subpat_exit = self.pat(subpat, pred);

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ fn pat_ctor_id(cx: &MatchCheckCtxt, p: @Pat) -> Option<ctor> {
383383
_ => Some(single)
384384
}
385385
}
386-
PatUniq(_) | PatTup(_) | PatRegion(..) => {
386+
PatBox(_) | PatTup(_) | PatRegion(..) => {
387387
Some(single)
388388
}
389389
PatVec(ref before, slice, ref after) => {
@@ -764,7 +764,7 @@ fn specialize(cx: &MatchCheckCtxt,
764764
PatTup(args) => {
765765
Some(args.iter().map(|x| *x).collect::<Vec<_>>().append(r.tail()))
766766
}
767-
PatUniq(a) | PatRegion(a) => {
767+
PatBox(a) | PatRegion(a) => {
768768
Some((vec!(a)).append(r.tail()))
769769
}
770770
PatLit(expr) => {
@@ -924,7 +924,7 @@ fn find_refutable(cx: &MatchCheckCtxt, pat: &Pat, spans: &mut Vec<Span>) {
924924
}
925925

926926
match pat.node {
927-
PatUniq(sub) | PatRegion(sub) | PatIdent(_, _, Some(sub)) => {
927+
PatBox(sub) | PatRegion(sub) | PatIdent(_, _, Some(sub)) => {
928928
find_refutable(cx, sub, spans)
929929
}
930930
PatWild | PatWildMulti | PatIdent(_, _, None) => {}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@ impl<'t,TYPER:Typer> MemCategorizationContext<'t,TYPER> {
10641064
}
10651065
}
10661066

1067-
ast::PatUniq(subpat) | ast::PatRegion(subpat) => {
1067+
ast::PatBox(subpat) | ast::PatRegion(subpat) => {
10681068
// @p1, ~p1
10691069
let subcmt = self.cat_deref(pat, cmt, 0);
10701070
if_ok!(self.cat_pattern(subcmt, subpat, op));

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ fn resolve_local(visitor: &mut RegionResolutionVisitor,
671671
subpats.iter().any(|&p| is_binding_pat(p))
672672
}
673673

674-
ast::PatUniq(subpat) => {
674+
ast::PatBox(subpat) => {
675675
is_binding_pat(subpat)
676676
}
677677

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ fn enter_uniq<'a, 'b>(
838838
let dummy = @ast::Pat {id: 0, node: ast::PatWild, span: DUMMY_SP};
839839
enter_match(bcx, dm, m, col, val, |p| {
840840
match p.node {
841-
ast::PatUniq(sub) => {
841+
ast::PatBox(sub) => {
842842
Some(vec!(sub))
843843
}
844844
_ => {
@@ -1105,7 +1105,7 @@ macro_rules! any_pat (
11051105
)
11061106

11071107
fn any_uniq_pat(m: &[Match], col: uint) -> bool {
1108-
any_pat!(m, ast::PatUniq(_))
1108+
any_pat!(m, ast::PatBox(_))
11091109
}
11101110

11111111
fn any_region_pat(m: &[Match], col: uint) -> bool {
@@ -2270,7 +2270,7 @@ fn bind_irrefutable_pat<'a>(
22702270
binding_mode, cleanup_scope);
22712271
}
22722272
}
2273-
ast::PatUniq(inner) => {
2273+
ast::PatBox(inner) => {
22742274
let llbox = Load(bcx, val);
22752275
bcx = bind_irrefutable_pat(bcx, inner, llbox, binding_mode, cleanup_scope);
22762276
}

0 commit comments

Comments
 (0)