Skip to content

Commit 3dfc574

Browse files
committed
---
yaml --- r: 106031 b: refs/heads/auto c: 869c96d h: refs/heads/master i: 106029: 0b29a3f 106027: bca4233 106023: be9c160 106015: 09b3272 v: v3
1 parent 7757410 commit 3dfc574

File tree

11 files changed

+137
-134
lines changed

11 files changed

+137
-134
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: 6879916a060218cbbec69a235efd7b6da9b32021
16+
refs/heads/auto: 869c96dbf088203867c62776c9c28a19658edd8d
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/librustc/middle/typeck/astconv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* `AstConv` instance; in this phase, the `get_item_ty()` function
2121
* triggers a recursive call to `ty_of_item()` (note that
2222
* `ast_ty_to_ty()` will detect recursive types and report an error).
23-
* In the check phase, when the @FnCtxt is used as the `AstConv`,
23+
* In the check phase, when the FnCtxt is used as the `AstConv`,
2424
* `get_item_ty()` just looks up the item type in `tcx.tcache`.
2525
*
2626
* The `RegionScope` trait controls what happens when the user does

branches/auto/src/librustc/middle/typeck/check/_match.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use syntax::parse::token;
2727
use syntax::codemap::Span;
2828
use syntax::print::pprust;
2929

30-
pub fn check_match(fcx: @FnCtxt,
30+
pub fn check_match(fcx: &FnCtxt,
3131
expr: &ast::Expr,
3232
discrim: &ast::Expr,
3333
arms: &[ast::Arm]) {
@@ -104,7 +104,7 @@ pub fn check_match(fcx: @FnCtxt,
104104
}
105105

106106
pub struct pat_ctxt<'a> {
107-
fcx: @FnCtxt<'a>,
107+
fcx: &'a FnCtxt<'a>,
108108
map: PatIdMap,
109109
}
110110

branches/auto/src/librustc/middle/typeck/check/demand.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub fn suptype_with_fn(fcx: &FnCtxt,
4646
}
4747
}
4848

49-
pub fn eqtype(fcx: @FnCtxt, sp: Span, expected: ty::t, actual: ty::t) {
49+
pub fn eqtype(fcx: &FnCtxt, sp: Span, expected: ty::t, actual: ty::t) {
5050
match infer::mk_eqty(fcx.infcx(), false, infer::Misc(sp), actual, expected) {
5151
Ok(()) => { /* ok */ }
5252
Err(ref err) => {
@@ -56,7 +56,7 @@ pub fn eqtype(fcx: @FnCtxt, sp: Span, expected: ty::t, actual: ty::t) {
5656
}
5757

5858
// Checks that the type `actual` can be coerced to `expected`.
59-
pub fn coerce(fcx: @FnCtxt, sp: Span, expected: ty::t, expr: &ast::Expr) {
59+
pub fn coerce(fcx: &FnCtxt, sp: Span, expected: ty::t, expr: &ast::Expr) {
6060
let expr_ty = fcx.expr_ty(expr);
6161
match fcx.mk_assignty(expr, expr_ty, expected) {
6262
result::Ok(()) => { /* ok */ }

branches/auto/src/librustc/middle/typeck/check/method.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ pub enum AutoderefReceiverFlag {
120120
}
121121

122122
pub fn lookup<'a>(
123-
fcx: @FnCtxt,
123+
fcx: &'a FnCtxt<'a>,
124124

125125
// In a call `a.b::<X, Y, ...>(...)`:
126126
expr: &ast::Expr, // The expression `a.b(...)`.
@@ -165,7 +165,7 @@ pub fn lookup<'a>(
165165
}
166166

167167
pub fn lookup_in_trait<'a>(
168-
fcx: @FnCtxt,
168+
fcx: &'a FnCtxt<'a>,
169169

170170
// In a call `a.b::<X, Y, ...>(...)`:
171171
span: Span, // The expression `a.b(...)`'s span.
@@ -199,7 +199,7 @@ pub fn lookup_in_trait<'a>(
199199
}
200200

201201
struct LookupContext<'a> {
202-
fcx: @FnCtxt<'a>,
202+
fcx: &'a FnCtxt<'a>,
203203
span: Span,
204204

205205
// The receiver to the method call. Only `None` in the case of
@@ -1351,7 +1351,7 @@ impl<'a> LookupContext<'a> {
13511351
}
13521352
}
13531353

1354-
fn rcvr_matches_ty(fcx: @FnCtxt,
1354+
fn rcvr_matches_ty(fcx: &FnCtxt,
13551355
rcvr_ty: ty::t,
13561356
candidate: &Candidate) -> bool {
13571357
match candidate.rcvr_match_condition {

0 commit comments

Comments
 (0)