Skip to content

ICE:no entry for node id: NodeId(13) #137267

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
sososopy opened this issue Feb 19, 2025 · 2 comments
Closed

ICE:no entry for node id: NodeId(13) #137267

sososopy opened this issue Feb 19, 2025 · 2 comments
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@sososopy
Copy link

ICE errors occur only in stable
Possible repetition of question #122903

Code

macro_rules! A {
    () => {};
}
fn B() -> [(); {
       A! {};
   }] {
}
fn main() {}

Meta

rustc --version --verbose:

rustc 1.84.1 (e71f9a9a9 2025-01-27)
binary: rustc
commit-hash: e71f9a9a98b0faf423844bf0ba7438f29dc27d58
commit-date: 2025-01-27
host: x86_64-pc-windows-msvc
release: 1.84.1
LLVM version: 19.1.5
Backtrace

thread 'rustc' panicked at compiler\rustc_ast_lowering\src\lib.rs:526:55:
no entry for node id: `NodeId(13)`
stack backtrace:
   0:     0x7ffe0f5ebc31 - std::backtrace_rs::backtrace::dbghelp64::trace
                               at /rustc/e71f9a9a98b0faf423844bf0ba7438f29dc27d58\library/std\src\..\..\backtrace\src\backtrace\dbghelp64.rs:91
   1:     0x7ffe0f5ebc31 - std::backtrace_rs::backtrace::trace_unsynchronized
                               at /rustc/e71f9a9a98b0faf423844bf0ba7438f29dc27d58\library/std\src\..\..\backtrace\src\backtrace\mod.rs:66
   2:     0x7ffe0f5ebc31 - std::sys::backtrace::_print_fmt
                               at /rustc/e71f9a9a98b0faf423844bf0ba7438f29dc27d58\library/std\src\sys\backtrace.rs:66
   3:     0x7ffe0f5ebc31 - std::sys::backtrace::impl$0::print::impl$0::fmt
                               at /rustc/e71f9a9a98b0faf423844bf0ba7438f29dc27d58\library/std\src\sys\backtrace.rs:39
   4:     0x7ffe0f61df0a - core::fmt::rt::Argument::fmt
                               at /rustc/e71f9a9a98b0faf423844bf0ba7438f29dc27d58\library/core\src\fmt\rt.rs:177
   5:     0x7ffe0f61df0a - core::fmt::write
                               at /rustc/e71f9a9a98b0faf423844bf0ba7438f29dc27d58\library/core\src\fmt\mod.rs:1189
   6:     0x7ffe0f5e1fd7 - std::io::Write::write_fmt<std::sys::pal::windows::stdio::Stderr>
                               at /rustc/e71f9a9a98b0faf423844bf0ba7438f29dc27d58\library/std\src\io\mod.rs:1884
   7:     0x7ffe0f5eba75 - std::sys::backtrace::BacktraceLock::print
                               at /rustc/e71f9a9a98b0faf423844bf0ba7438f29dc27d58\library/std\src\sys\backtrace.rs:42
   8:     0x7ffe0f5ee993 - std::panicking::default_hook::closure$1
                               at /rustc/e71f9a9a98b0faf423844bf0ba7438f29dc27d58\library/std\src\panicking.rs:268
   9:     0x7ffe0f5ee772 - std::panicking::default_hook
                               at /rustc/e71f9a9a98b0faf423844bf0ba7438f29dc27d58\library/std\src\panicking.rs:295
  10:     0x7ffe10bc93de - strncpy
  11:     0x7ffe0f5ef0d2 - alloc::boxed::impl$30::call
                               at /rustc/e71f9a9a98b0faf423844bf0ba7438f29dc27d58\library/alloc\src\boxed.rs:1986
  12:     0x7ffe0f5ef0d2 - std::panicking::rust_panic_with_hook
                               at /rustc/e71f9a9a98b0faf423844bf0ba7438f29dc27d58\library/std\src\panicking.rs:809
  13:     0x7ffe0f5eef19 - std::panicking::begin_panic_handler::closure$0
                               at /rustc/e71f9a9a98b0faf423844bf0ba7438f29dc27d58\library/std\src\panicking.rs:674
  14:     0x7ffe0f5ec70f - std::sys::backtrace::__rust_end_short_backtrace<std::panicking::begin_panic_handler::closure_env$0,never$>
                               at /rustc/e71f9a9a98b0faf423844bf0ba7438f29dc27d58\library/std\src\sys\backtrace.rs:170
  15:     0x7ffe0f5eeb1e - std::panicking::begin_panic_handler
                               at /rustc/e71f9a9a98b0faf423844bf0ba7438f29dc27d58\library/std\src\panicking.rs:665
  16:     0x7ffe125cdab1 - core::panicking::panic_fmt
                               at /rustc/e71f9a9a98b0faf423844bf0ba7438f29dc27d58\library/core\src\panicking.rs:76
  17:     0x7ffe0f02feca - <rustc_ast_lowering[1a169c1088ae8633]::index_crate::Indexer as rustc_ast[298d2372d8cf0c6c]::visit::Visitor>::visit_assoc_item
  18:     0x7ffe0f03112c - <rustc_middle[77599409a02e487e]::ty::ResolverAstLowering as rustc_ast_lowering[1a169c1088ae8633]::ResolverAstLoweringExt>::legacy_const_generic_args
  19:     0x7ffe0f02faea - <rustc_ast_lowering[1a169c1088ae8633]::index_crate::Indexer as rustc_ast[298d2372d8cf0c6c]::visit::Visitor>::visit_assoc_item
  20:     0x7ffe0fff9b3a - rustc_ast_lowering[1a169c1088ae8633]::lower_to_hir
  21:     0x7ffe1000c100 - <rustc_ast_lowering[1a169c1088ae8633]::index::NodeCollector as rustc_hir[3b6eb0841a400441]::intravisit::Visitor>::visit_impl_item
  22:     0x7ffe0ffcab6e - <rustc_ast_lowering[1a169c1088ae8633]::index::NodeCollector as rustc_hir[3b6eb0841a400441]::intravisit::Visitor>::visit_ty
  23:     0x7ffe0ffbac35 - <rustc_ast_lowering[1a169c1088ae8633]::index::NodeCollector as rustc_hir[3b6eb0841a400441]::intravisit::Visitor>::visit_ty
  24:     0x7ffe0fff1878 - rustc_ast_lowering[1a169c1088ae8633]::lower_to_hir
  25:     0x7ffe0f1e864b - rustc_ty_utils[6eacb2f7d71a32ee]::ty::adt_sized_constraint
  26:     0x7ffe0f0fb243 - rustc_ty_utils[6eacb2f7d71a32ee]::ty::adt_sized_constraint
  27:     0x7ffe0f1eca26 - rustc_query_impl[9c645a983fb86265]::query_system
  28:     0x7ffe0f65416c - <tracing_subscriber[a95851ca3fdcec28]::registry::sharded::Registry as core[633a554766a57b]::default::Default>::default
  29:     0x7ffe103707fb - rustc_query_impl[9c645a983fb86265]::plumbing::query_key_hash_verify_all
  30:     0x7ffe102a96b6 - rustc_ty_utils[6eacb2f7d71a32ee]::ty::self_ty_of_trait_impl_enabling_order_dep_trait_object_hack
  31:     0x7ffe10371db3 - rustc_query_impl[9c645a983fb86265]::plumbing::query_key_hash_verify_all
  32:     0x7ffe10968c67 - <rustc_middle[77599409a02e487e]::hir::map::Map>::attrs
  33:     0x7ffe0f0b4b1c - rustc_passes[8a6c68ebe5e983ee]::entry::entry_fn
  34:     0x7ffe0f1e8447 - rustc_ty_utils[6eacb2f7d71a32ee]::ty::adt_sized_constraint
  35:     0x7ffe0f1d04dd - rustc_ty_utils[6eacb2f7d71a32ee]::ty::adt_sized_constraint
  36:     0x7ffe0f0fd5fd - rustc_ty_utils[6eacb2f7d71a32ee]::ty::adt_sized_constraint
  37:     0x7ffe0f205fb6 - rustc_query_impl[9c645a983fb86265]::query_system
  38:     0x7ffe0f65efa8 - rustc_interface[aab1116b3078e23b]::passes::resolver_for_lowering_raw
  39:     0x7ffe0c637f5e - rustc_interface[aab1116b3078e23b]::passes::analysis
  40:     0x7ffe0f1e83cb - rustc_ty_utils[6eacb2f7d71a32ee]::ty::adt_sized_constraint
  41:     0x7ffe0f0f6c57 - rustc_ty_utils[6eacb2f7d71a32ee]::ty::adt_sized_constraint
  42:     0x7ffe0f1edf37 - rustc_query_impl[9c645a983fb86265]::query_system
  43:     0x7ffe0c5f7326 - _rust_alloc_error_handler
  44:     0x7ffe0c5f2fbf - _rust_alloc_error_handler
  45:     0x7ffe0c5fcfb5 - _rust_alloc_error_handler
  46:     0x7ffe0f600d9d - alloc::boxed::impl$28::call_once
                               at /rustc/e71f9a9a98b0faf423844bf0ba7438f29dc27d58\library/alloc\src\boxed.rs:1972
  47:     0x7ffe0f600d9d - alloc::boxed::impl$28::call_once
                               at /rustc/e71f9a9a98b0faf423844bf0ba7438f29dc27d58\library/alloc\src\boxed.rs:1972
  48:     0x7ffe0f600d9d - std::sys::pal::windows::thread::impl$0::new::thread_start
                               at /rustc/e71f9a9a98b0faf423844bf0ba7438f29dc27d58\library/std\src\sys\pal\windows\thread.rs:55
  49:     0x7ffedf5b7374 - BaseThreadInitThunk
  50:     0x7ffedfdfcc91 - RtlUserThreadStart

error: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.84.1 (e71f9a9a9 2025-01-27) running on x86_64-pc-windows-msvc

query stack during panic:
#0 [hir_crate] getting the crate HIR
#1 [hir_attrs] getting HIR owner attributes in ``
end of query stack

@sososopy sososopy added C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Feb 19, 2025
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Feb 19, 2025
@compiler-errors
Copy link
Member

I believe this was fixed by #133468.

@Noratrieb
Copy link
Member

in that case i'll close it, thank you for the report anyways

@Noratrieb Noratrieb removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Mar 1, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants