diff options
| author | Ralf Jung <post@ralfj.de> | 2019-08-17 16:48:08 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2019-08-17 16:48:08 +0200 |
| commit | 72d9fe8b0e4940b4314f190dd14235fa83046338 (patch) | |
| tree | efc951ab4dd598182a9d3c3a2ab04e6471d48c9c | |
| parent | f19087dd7cdbac5f11ffc606b08c489ea730949a (diff) | |
| download | rust-72d9fe8b0e4940b4314f190dd14235fa83046338.tar.gz rust-72d9fe8b0e4940b4314f190dd14235fa83046338.zip | |
less &
| -rw-r--r-- | src/librustc_lint/builtin.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_lint/builtin.rs b/src/librustc_lint/builtin.rs index 94a16e02e20..ce7681c974a 100644 --- a/src/librustc_lint/builtin.rs +++ b/src/librustc_lint/builtin.rs @@ -1914,13 +1914,13 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for InvalidValue { if let hir::ExprKind::Path(ref qpath) = path_expr.node { let def_id = cx.tables.qpath_res(qpath, path_expr.hir_id).opt_def_id()?; - if cx.match_def_path(def_id, &ZEROED_PATH) { + if cx.match_def_path(def_id, ZEROED_PATH) { return Some(InitKind::Zeroed); } - if cx.match_def_path(def_id, &UININIT_PATH) { + if cx.match_def_path(def_id, UININIT_PATH) { return Some(InitKind::Uninit); } - if cx.match_def_path(def_id, &TRANSMUTE_PATH) { + if cx.match_def_path(def_id, TRANSMUTE_PATH) { if is_zero(&args[0]) { return Some(InitKind::Zeroed); } |
