Skip to content

Commit 8f3cfe0

Browse files
committed
rustc: de-@ ty::type_err.
1 parent 3fbc578 commit 8f3cfe0

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

src/librustc/middle/ty.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,6 @@ pub enum type_err {
820820
terr_regions_overly_polymorphic(BoundRegion, Region),
821821
terr_vstores_differ(terr_vstore_kind, expected_found<Vstore>),
822822
terr_trait_stores_differ(terr_vstore_kind, expected_found<TraitStore>),
823-
terr_in_field(@type_err, ast::Ident),
824823
terr_sorts(expected_found<t>),
825824
terr_integer_as_char,
826825
terr_int_mismatch(expected_found<IntVarValue>),
@@ -3407,10 +3406,6 @@ pub fn type_err_to_str(cx: &ctxt, err: &type_err) -> ~str {
34073406
trait_store_to_str(cx, (*values).expected),
34083407
trait_store_to_str(cx, (*values).found))
34093408
}
3410-
terr_in_field(err, fname) => {
3411-
format!("in field `{}`, {}", token::get_ident(fname),
3412-
type_err_to_str(cx, err))
3413-
}
34143409
terr_sorts(values) => {
34153410
format!("expected {} but found {}",
34163411
ty_sort_str(cx, values.expected),

src/librustc/middle/typeck/infer/combine.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -235,19 +235,6 @@ pub trait Combine {
235235

236236
fn fn_sigs(&self, a: &ty::FnSig, b: &ty::FnSig) -> cres<ty::FnSig>;
237237

238-
fn flds(&self, a: ty::field, b: ty::field) -> cres<ty::field> {
239-
if a.ident == b.ident {
240-
self.mts(&a.mt, &b.mt)
241-
.and_then(|mt| Ok(ty::field {ident: a.ident, mt: mt}) )
242-
.or_else(|e| Err(ty::terr_in_field(@e, a.ident)) )
243-
} else {
244-
Err(ty::terr_record_fields(
245-
expected_found(self,
246-
a.ident,
247-
b.ident)))
248-
}
249-
}
250-
251238
fn args(&self, a: ty::t, b: ty::t) -> cres<ty::t> {
252239
self.contratys(a, b).and_then(|t| Ok(t))
253240
}

0 commit comments

Comments
 (0)