Auto merge of #4926 - matthiaskrgr:rurstup_24, r=matthiaskrgr

rustup https://github.com/rust-lang/rust/pull/67455

changelog: none
This commit is contained in:
bors 2019-12-21 01:10:52 +00:00
commit abdb277a85

View file

@ -358,8 +358,8 @@ impl EarlyLintPass for NonExpressiveNames {
}
}
fn check_impl_item(&mut self, cx: &EarlyContext<'_>, item: &ImplItem) {
if let ImplItemKind::Method(ref sig, ref blk) = item.kind {
fn check_impl_item(&mut self, cx: &EarlyContext<'_>, item: &AssocItem) {
if let AssocItemKind::Fn(ref sig, Some(ref blk)) = item.kind {
do_check(self, cx, &item.attrs, &sig.decl, blk);
}
}