aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve/rust-ast-resolve-path.h
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2024-09-20 18:45:12 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2025-03-19 15:32:11 +0100
commitd007ce87451f75134ccf38a3d760cbdc6720e608 (patch)
tree7238b1f2339bb3c2a24da281ce5c023a2594efb8 /gcc/rust/resolve/rust-ast-resolve-path.h
parent88524c5314967f013f1596cdd935da4d9dc27500 (diff)
downloadgcc-d007ce87451f75134ccf38a3d760cbdc6720e608.zip
gcc-d007ce87451f75134ccf38a3d760cbdc6720e608.tar.gz
gcc-d007ce87451f75134ccf38a3d760cbdc6720e608.tar.bz2
rust: fix ICE when compiling impl block for !
We need to resolve the never type which is its own special AST node so it doesnt magically get handled like the regular builtin type paths such as i32. Fixes #3035 gcc/rust/ChangeLog: * resolve/rust-ast-resolve-type.cc (ResolveType::visit): handle never type (ResolveTypeToCanonicalPath::visit): likewise * resolve/rust-ast-resolve-type.h: missing never type * resolve/rust-name-resolver.cc (Resolver::generate_builtins): track never type node_id (Resolver::setup_builtin): likewise * resolve/rust-name-resolver.h: new never type getter gcc/testsuite/ChangeLog: * rust/compile/nr2/exclude: nr2 cant handle this * rust/compile/issue-3035.rs: New test. Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/resolve/rust-ast-resolve-path.h')
0 files changed, 0 insertions, 0 deletions