diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2019-01-15 18:02:22 +0900 |
|---|---|---|
| committer | Yuki Okushi <huyuumi.dev@gmail.com> | 2019-01-15 18:02:22 +0900 |
| commit | b39e9e2d07a79998f7e6a87f1c0855f5a939b92e (patch) | |
| tree | e78ee44b3cd2e90bf1c8332eaf0af4e7307426f6 | |
| parent | d04f7560275ab61ff4b5049ea64599d79a052509 (diff) | |
| download | rust-b39e9e2d07a79998f7e6a87f1c0855f5a939b92e.tar.gz rust-b39e9e2d07a79998f7e6a87f1c0855f5a939b92e.zip | |
Change from _ to None
| -rw-r--r-- | src/librustc_lint/builtin.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_lint/builtin.rs b/src/librustc_lint/builtin.rs index 50631a74fe6..52eab9b12f3 100644 --- a/src/librustc_lint/builtin.rs +++ b/src/librustc_lint/builtin.rs @@ -280,7 +280,7 @@ impl EarlyLintPass for UnsafeCode { } fn check_trait_item(&mut self, cx: &EarlyContext, item: &ast::TraitItem) { - if let ast::TraitItemKind::Method(ref sig, _) = item.node { + if let ast::TraitItemKind::Method(ref sig, None) = item.node { if sig.header.unsafety == ast::Unsafety::Unsafe { self.report_unsafe(cx, item.span, "declaration of an `unsafe` method") } |
