]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: hir-dump: Fix more segfaults in the HIR dump
authorArthur Cohen <arthur.cohen@embecosm.com>
Fri, 20 Dec 2024 18:00:48 +0000 (18:00 +0000)
committerArthur Cohen <arthur.cohen@embecosm.com>
Mon, 24 Mar 2025 12:07:10 +0000 (13:07 +0100)
commit2ab119672d428d5e00f333c652bf7a23847ac922
treedc8d7fa12a3f7a8ad83b6d64f33035413d05f8d5
parent051e54e5fcf0b0b852fef0c7f0e53e62b19a4176
gccrs: hir-dump: Fix more segfaults in the HIR dump

gcc/rust/ChangeLog:

* hir/rust-hir-dump.cc: Check unique_ptr members are present before
visiting them.
* hir/tree/rust-hir-path.h: Add `has_{type, trait}` methods to
QualifiedPathInType.
gcc/rust/hir/rust-hir-dump.cc
gcc/rust/hir/tree/rust-hir-path.h