diff --git a/c2rust-analyze/src/analyze.rs b/c2rust-analyze/src/analyze.rs index b8058d9ca7..a93f0b8533 100644 --- a/c2rust-analyze/src/analyze.rs +++ b/c2rust-analyze/src/analyze.rs @@ -993,7 +993,10 @@ fn run(tcx: TyCtxt) { if !node_info.unique { perms.remove(PermissionSet::UNIQUE); } - // TODO: PermissionSet::NON_NULL + if g.is_null { + // TODO: is this enough? + perms.remove(PermissionSet::NON_NULL); + } if perms != old_perms { let added = perms & !old_perms;