less &
This commit is contained in:
parent
f19087dd7c
commit
72d9fe8b0e
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue