Skip to content

Commit 2c47c14

Browse files
committed
---
yaml --- r: 55162 b: refs/heads/snap-stage3 c: 84e97d5 h: refs/heads/master v: v3
1 parent 1ccc863 commit 2c47c14

File tree

7 files changed

+5
-34
lines changed

7 files changed

+5
-34
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: 5f13e9ccc2e3328d4cd8ca49f84e6840dd998346
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: c081ffbd1e845687202a975ea2e698b623e5722f
4+
refs/heads/snap-stage3: 84e97d5596fdc665036646f715f4ffd030d9031f
55
refs/heads/try: 8eb2bab100b42f0ba751552d8eff00eb2134c55a
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ pub fn uniq_len<T>(v: &const ~[T]) -> uint {
137137
}
138138

139139
/**
140-
* Creates and initializes an immutable vector.
140+
* Creates and initializes an owned vector.
141141
*
142-
* Creates an immutable vector of size `n_elts` and initializes the elements
142+
* Creates an owned vector of size `n_elts` and initializes the elements
143143
* to the value returned by the function `op`.
144144
*/
145145
pub fn from_fn<T>(n_elts: uint, op: old_iter::InitOp<T>) -> ~[T] {
@@ -159,9 +159,9 @@ pub fn from_fn<T>(n_elts: uint, op: old_iter::InitOp<T>) -> ~[T] {
159159
}
160160

161161
/**
162-
* Creates and initializes an immutable vector.
162+
* Creates and initializes an owned vector.
163163
*
164-
* Creates an immutable vector of size `n_elts` and initializes the elements
164+
* Creates an owned vector of size `n_elts` and initializes the elements
165165
* to the value `t`.
166166
*/
167167
pub fn from_elem<T:Copy>(n_elts: uint, t: T) -> ~[T] {

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,8 +551,6 @@ pub fn specialize(cx: @MatchCheckCtxt,
551551
Some(vec::append(args, vec::from_slice(r.tail())))
552552
}
553553
def_variant(_, _) => None,
554-
555-
def_fn(*) |
556554
def_struct(*) => {
557555
// FIXME #4731: Is this right? --pcw
558556
let new_args;

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,6 @@ pub impl mem_categorization_ctxt {
912912
self.cat_pattern(subcmt, *subpat, op);
913913
}
914914
}
915-
Some(&ast::def_fn(*)) |
916915
Some(&ast::def_struct(*)) => {
917916
for subpats.each |subpat| {
918917
let cmt_field = self.cat_anon_struct_field(*subpat,

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4277,7 +4277,6 @@ pub impl Resolver {
42774277
pat_enum(path, _) => {
42784278
// This must be an enum variant, struct or const.
42794279
match self.resolve_path(path, ValueNS, false, visitor) {
4280-
Some(def @ def_fn(*)) |
42814280
Some(def @ def_variant(*)) |
42824281
Some(def @ def_struct(*)) |
42834282
Some(def @ def_const(*)) => {

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,6 @@ pub fn variant_opt(bcx: block, pat_id: ast::node_id)
291291
}
292292
::core::util::unreachable();
293293
}
294-
ast::def_fn(*) |
295294
ast::def_struct(_) => {
296295
return lit(UnitLikeStructLit(pat_id));
297296
}
@@ -819,7 +818,6 @@ pub fn get_options(bcx: block, m: &[@Match], col: uint) -> ~[Opt] {
819818
// This could be one of: a tuple-like enum variant, a
820819
// struct-like enum variant, or a struct.
821820
match ccx.tcx.def_map.find(&cur.id) {
822-
Some(&ast::def_fn(*)) |
823821
Some(&ast::def_variant(*)) => {
824822
add_to_set(ccx.tcx, &mut found,
825823
variant_opt(bcx, cur.id));
@@ -1013,7 +1011,6 @@ pub fn any_tuple_struct_pat(bcx: block, m: &[@Match], col: uint) -> bool {
10131011
match pat.node {
10141012
ast::pat_enum(_, Some(_)) => {
10151013
match bcx.tcx().def_map.find(&pat.id) {
1016-
Some(&ast::def_fn(*)) |
10171014
Some(&ast::def_struct(*)) => true,
10181015
_ => false
10191016
}
@@ -1783,7 +1780,6 @@ pub fn bind_irrefutable_pat(bcx: block,
17831780
}
17841781
}
17851782
}
1786-
Some(&ast::def_fn(*)) |
17871783
Some(&ast::def_struct(*)) => {
17881784
match *sub_pats {
17891785
None => {

branches/snap-stage3/src/test/run-pass/cross-crate-newtype-struct-pat.rs

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)