We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d04f756 commit b39e9e2Copy full SHA for b39e9e2
src/librustc_lint/builtin.rs
@@ -280,7 +280,7 @@ impl EarlyLintPass for UnsafeCode {
280
}
281
282
fn check_trait_item(&mut self, cx: &EarlyContext, item: &ast::TraitItem) {
283
- if let ast::TraitItemKind::Method(ref sig, _) = item.node {
+ if let ast::TraitItemKind::Method(ref sig, None) = item.node {
284
if sig.header.unsafety == ast::Unsafety::Unsafe {
285
self.report_unsafe(cx, item.span, "declaration of an `unsafe` method")
286
0 commit comments