Skip to content

Commit 023c779

Browse files
committed
---
yaml --- r: 186065 b: refs/heads/auto c: 8a7b6b3 h: refs/heads/master i: 186063: eb9164b v: v3
1 parent d5c975c commit 023c779

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
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: f38b83b3609b060df5ab3d2a57e98020b8b29efb
13+
refs/heads/auto: 8a7b6b3ee6a85aa60a1733727a4028a690744fdf
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/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)