diff options
author | Liam Naddell <liamnprg@gmail.com> | 2025-02-11 16:42:41 -0500 |
---|---|---|
committer | P-E-P <32375388+P-E-P@users.noreply.github.com> | 2025-03-18 13:39:52 +0000 |
commit | 199b540046fa211d836b3f2246fd9973b4b14067 (patch) | |
tree | 16c47be30f24df8ff896abc478cc53f0ee86e2b8 /gcc/rust/resolve/rust-late-name-resolver-2.0.h | |
parent | 6a4363f83a8454e7f33baa4bf11101cc5ada36ad (diff) | |
download | gcc-199b540046fa211d836b3f2246fd9973b4b14067.zip gcc-199b540046fa211d836b3f2246fd9973b4b14067.tar.gz gcc-199b540046fa211d836b3f2246fd9973b4b14067.tar.bz2 |
Fix modules with same name as builtins causing ICE (#3315)
gcc/rust/ChangeLog:
* resolve/rust-forever-stack.h (ForeverStack): Add a dedicated prelude node for
the Language prelude
* resolve/rust-forever-stack.hxx (ForeverStack): Add support code for the
prelude node
* resolve/rust-late-name-resolver-2.0.cc (Late::visit): Move
language prelude builtins to the prelude context
* resolve/rust-name-resolution-context.cc
(NameResolutionContext::scoped): Add code for handling
the prelude corner case
* resolve/rust-rib.h (Rib::Kind): Add a special Prelude rib type
gcc/testsuite/ChangeLog:
* rust/compile/issue-3315-1.rs: Add test for module with same name
as builtin
* rust/compile/issue-3315-2.rs: Test with utilization of i32
type
* rust/compile/nr2/exclude: issue-3315-2.rs Does not work with
NR2.0
Signed-off-by: Liam Naddell <liamnprg@gmail.com>
Diffstat (limited to 'gcc/rust/resolve/rust-late-name-resolver-2.0.h')
0 files changed, 0 insertions, 0 deletions