Skip to content

Commit 680fbcc

Browse files
committed
---
yaml --- r: 188129 b: refs/heads/try c: 8a7b6b3 h: refs/heads/master i: 188127: d6fb06d v: v3
1 parent 5134c04 commit 680fbcc

File tree

2 files changed

+18
-22
lines changed

2 files changed

+18
-22
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 38e97b99a6b133cb4c621c68e75b28abc6c617c1
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 3a96d6a9818fe2affc98a187fb1065120458cee9
5-
refs/heads/try: f38b83b3609b060df5ab3d2a57e98020b8b29efb
5+
refs/heads/try: 8a7b6b3ee6a85aa60a1733727a4028a690744fdf
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/src/librustc_lint/builtin.rs

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -887,32 +887,28 @@ fn method_context(cx: &Context, m: &ast::Method) -> MethodContext {
887887

888888
match cx.tcx.impl_or_trait_items.borrow().get(&did).cloned() {
889889
None => cx.sess().span_bug(m.span, "missing method descriptor?!"),
890-
Some(md) => {
891-
match md {
892-
ty::MethodTraitItem(md) => {
893-
match md.container {
894-
ty::TraitContainer(..) => MethodContext::TraitDefaultImpl,
895-
ty::ImplContainer(cid) => {
896-
match ty::impl_trait_ref(cx.tcx, cid) {
897-
Some(..) => MethodContext::TraitImpl,
898-
None => MethodContext::PlainImpl
899-
}
900-
}
890+
Some(ty::MethodTraitItem(md)) => {
891+
match md.container {
892+
ty::TraitContainer(..) => MethodContext::TraitDefaultImpl,
893+
ty::ImplContainer(cid) => {
894+
match ty::impl_trait_ref(cx.tcx, cid) {
895+
Some(..) => MethodContext::TraitImpl,
896+
None => MethodContext::PlainImpl
901897
}
902898
}
903-
ty::TypeTraitItem(typedef) => {
904-
match typedef.container {
905-
ty::TraitContainer(..) => MethodContext::TraitDefaultImpl,
906-
ty::ImplContainer(cid) => {
907-
match ty::impl_trait_ref(cx.tcx, cid) {
908-
Some(..) => MethodContext::TraitImpl,
909-
None => MethodContext::PlainImpl
910-
}
911-
}
899+
}
900+
},
901+
Some(ty::TypeTraitItem(typedef)) => {
902+
match typedef.container {
903+
ty::TraitContainer(..) => MethodContext::TraitDefaultImpl,
904+
ty::ImplContainer(cid) => {
905+
match ty::impl_trait_ref(cx.tcx, cid) {
906+
Some(..) => MethodContext::TraitImpl,
907+
None => MethodContext::PlainImpl
912908
}
913909
}
914910
}
915-
}
911+
},
916912
}
917913
}
918914

0 commit comments

Comments
 (0)