Skip to content

Commit e2f82d6

Browse files
committed
---
yaml --- r: 23085 b: refs/heads/master c: edf1d0c h: refs/heads/master i: 23083: 10629c1 v: v3
1 parent fe74741 commit e2f82d6

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 293f371477dc2cd63c3ba12235f4d294e89dca5a
2+
refs/heads/master: edf1d0c245e7ba4eed4be89101073d8515a0f129
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/src/rustc/middle/typeck.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,16 +152,18 @@ enum vtable_origin {
152152

153153
type vtable_map = hashmap<ast::node_id, vtable_res>;
154154

155-
type ty_param_substs_and_ty = {substs: ty::substs, ty: ty::t};
156155
// Stores information about provided methods, aka "default methods" in traits.
157156
// Maps from a trait's def_id to a MethodInfo about
158157
// that method in that trait.
159158
type provided_methods_map = hashmap<ast::node_id,
160159
~[@resolve3::MethodInfo]>;
161160

162-
type ty_table = hashmap<ast::def_id, ty::t>;
161+
type ty_param_substs_and_ty = {substs: ty::substs, ty: ty::t};
163162

164163
type crate_ctxt_ = {impl_map: resolve3::ImplMap,
164+
165+
// A mapping from method call sites to traits that have
166+
// that method.
165167
trait_map: resolve3::TraitMap,
166168
method_map: method_map,
167169
vtable_map: vtable_map,

trunk/src/rustc/middle/typeck/coherence.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,6 @@ class CoherenceChecker {
257257
// Bring in external crates. It's fine for this to happen after the
258258
// coherence checks, because we ensure by construction that no errors
259259
// can happen at link time.
260-
261260
self.add_external_crates();
262261
}
263262

@@ -273,8 +272,8 @@ class CoherenceChecker {
273272
*item.ident};
274273

275274
match get_base_type_def_id(self.inference_context,
276-
item.span,
277-
self_type.ty) {
275+
item.span,
276+
self_type.ty) {
278277
none => {
279278
let session = self.crate_context.tcx.sess;
280279
session.span_err(item.span,
@@ -421,7 +420,6 @@ class CoherenceChecker {
421420
}
422421

423422
// Privileged scope checking
424-
425423
fn check_privileged_scopes(crate: @crate) {
426424
// Gather up all privileged types.
427425
let privileged_types =
@@ -717,8 +715,8 @@ class CoherenceChecker {
717715

718716
if associated_traits.len() == 0 {
719717
match get_base_type_def_id(self.inference_context,
720-
dummy_sp(),
721-
self_type.ty) {
718+
dummy_sp(),
719+
self_type.ty) {
722720
none => {
723721
let session = self.crate_context.tcx.sess;
724722
session.bug(fmt!{"no base type for external impl \

0 commit comments

Comments
 (0)