]> git.lizzy.rs Git - rust.git/commitdiff
rollup merge of #20594: nikomatsakis/orphan-ordered
authorAlex Crichton <alex@alexcrichton.com>
Tue, 6 Jan 2015 02:42:34 +0000 (18:42 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 6 Jan 2015 02:42:34 +0000 (18:42 -0800)
Conflicts:
src/libsyntax/feature_gate.rs

1  2 
src/libcore/borrow.rs
src/librustc/lint/builtin.rs
src/librustc/middle/traits/coherence.rs
src/librustc_typeck/check/callee.rs
src/librustc_typeck/coherence/orphan.rs
src/libsyntax/feature_gate.rs

Simple merge
Simple merge
Simple merge
index d90bfe04ea1e78ceaa700c888b7a604a2e21f71e,dc22fd597e68938b707d84a903c5217d421c2614..77d71e740d681f8c626bc173e1139b8e87cca468
@@@ -69,9 -69,10 +69,10 @@@ impl<'cx, 'tcx,'v> visit::Visitor<'v> f
                      }
                  }
              }
 -            ast::ItemImpl(_, _, Some(_), _, _) => {
 +            ast::ItemImpl(_, _, _, Some(_), _, _) => {
                  // "Trait" impl
                  debug!("coherence2::orphan check: trait impl {}", item.repr(self.tcx));
+                 let trait_def_id = ty::impl_trait_ref(self.tcx, def_id).unwrap().def_id;
                  match traits::orphan_check(self.tcx, def_id) {
                      Ok(()) => { }
                      Err(traits::OrphanCheckErr::NoLocalInputType) => {
Simple merge