Skip to content

ICE when attempting to document associated_const_equality #105952

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
Link1J opened this issue Dec 20, 2022 · 0 comments · Fixed by #106024
Closed

ICE when attempting to document associated_const_equality #105952

Link1J opened this issue Dec 20, 2022 · 0 comments · Fixed by #106024
Labels
C-bug Category: This is a bug. glacier ICE tracked in rust-lang/glacier. 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

@Link1J
Copy link

Link1J commented Dec 20, 2022

Code

#![feature(associated_const_equality)]
pub enum ParseMode {
    Raw,
}
pub trait Parse {
    const PARSE_MODE: ParseMode;
}
pub trait RenderRaw: Parse<PARSE_MODE = { ParseMode::Raw }> {}

or

#![feature(associated_const_equality)]
pub enum ParseMode {
    Raw,
}
pub trait Parse {
    const PARSE_MODE: ParseMode;
}
pub trait RenderRaw {}
impl<T: Parse<PARSE_MODE = { ParseMode::Raw }>> RenderRaw  for T {}

Meta

rustc --version --verbose:

rustc 1.68.0-nightly (0468a00ae 2022-12-17)
binary: rustc
commit-hash: 0468a00ae3fd6ef1a6a0f9eaf637d7aa9e604acc
commit-date: 2022-12-17
host: x86_64-pc-windows-msvc
release: 1.68.0-nightly
LLVM version: 15.0.6

Error output

thread 'rustc' panicked at 'not yet implemented', src\librustdoc\html\format.rs:1660:18

error: internal compiler error: unexpected panic

note: 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.68.0-nightly (0468a00ae 2022-12-17) running on x86_64-pc-windows-msvc

note: compiler flags: --crate-type lib

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
end of query stack
error: could not document `test-ice`
Backtrace

   0:     0x7ff88da19de2 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hea3121a92230cef2
   1:     0x7ff88da55d0b - core::fmt::write::h0bc3f53e8dca163a
   2:     0x7ff88da0c8fa - <std::io::IoSlice as core::fmt::Debug>::fmt::h7890ee78f4472cf6
   3:     0x7ff88da19b2b - std::sys::common::alloc::realloc_fallback::h2905b67a6dea1c71
   4:     0x7ff88da1d459 - std::panicking::default_hook::h111ce7f1b363c3ab
   5:     0x7ff88da1d0db - std::panicking::default_hook::h111ce7f1b363c3ab
   6:     0x7ff848974deb - rustc_driver[5e4fd5aa1121bb7c]::describe_lints
   7:     0x7ff88da1ddc0 - std::panicking::rust_panic_with_hook::hfc6ef76eb93085aa
   8:     0x7ff88da1dadb - <std::panicking::begin_panic_handler::StrPanicPayload as core::panic::BoxMeUp>::get::ha20f814ea23fbc14
   9:     0x7ff88da1aadf - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hea3121a92230cef2
  10:     0x7ff88da1d7d0 - rust_begin_unwind
  11:     0x7ff88da8bb85 - core::panicking::panic_fmt::h0dc3dee6c5b102b4
  12:     0x7ff88da8bc7c - core::panicking::panic::hfcd8358d78f3c4e7
  13:     0x7ff70874bc5a - <unknown>
  14:     0x7ff88da55d0b - core::fmt::write::h0bc3f53e8dca163a
  15:     0x7ff88da56bd5 - <core::fmt::Formatter as core::fmt::Write>::write_fmt::h2882aa43fbceac7e
  16:     0x7ff70874a669 - <unknown>
  17:     0x7ff88da55d0b - core::fmt::write::h0bc3f53e8dca163a
  18:     0x7ff88da56bd5 - <core::fmt::Formatter as core::fmt::Write>::write_fmt::h2882aa43fbceac7e
  19:     0x7ff708743cf5 - <unknown>
  20:     0x7ff70874a7e2 - <unknown>
  21:     0x7ff88da55d0b - core::fmt::write::h0bc3f53e8dca163a
  22:     0x7ff88da56bd5 - <core::fmt::Formatter as core::fmt::Write>::write_fmt::h2882aa43fbceac7e
  23:     0x7ff708749ff7 - <unknown>
  24:     0x7ff88da55d0b - core::fmt::write::h0bc3f53e8dca163a
  25:     0x7ff88da56bd5 - <core::fmt::Formatter as core::fmt::Write>::write_fmt::h2882aa43fbceac7e
  26:     0x7ff70874a1d4 - <unknown>
  27:     0x7ff7087490cd - <unknown>
  28:     0x7ff88da55d0b - core::fmt::write::h0bc3f53e8dca163a
  29:     0x7ff88da56bd5 - <core::fmt::Formatter as core::fmt::Write>::write_fmt::h2882aa43fbceac7e
  30:     0x7ff708749b09 - <unknown>
  31:     0x7ff708747b4b - <unknown>
  32:     0x7ff88da55d0b - core::fmt::write::h0bc3f53e8dca163a
  33:     0x7ff88da56bd5 - <core::fmt::Formatter as core::fmt::Write>::write_fmt::h2882aa43fbceac7e
  34:     0x7ff708749de8 - <unknown>
  35:     0x7ff88da55d0b - core::fmt::write::h0bc3f53e8dca163a
  36:     0x7ff88da56bd5 - <core::fmt::Formatter as core::fmt::Write>::write_fmt::h2882aa43fbceac7e
  37:     0x7ff70874a959 - <unknown>
  38:     0x7ff88da55d0b - core::fmt::write::h0bc3f53e8dca163a
  39:     0x7ff708900a38 - <unknown>
  40:     0x7ff7087a0eac - <unknown>
  41:     0x7ff70879ca83 - <unknown>
  42:     0x7ff70878e8b4 - <unknown>
  43:     0x7ff7086cb644 - <unknown>
  44:     0x7ff7086d680f - <unknown>
  45:     0x7ff7086c853f - <unknown>
  46:     0x7ff70856bf29 - <unknown>
  47:     0x7ff7085bf231 - <unknown>
  48:     0x7ff7086ec865 - <unknown>
  49:     0x7ff7086379db - <unknown>
  50:     0x7ff708523800 - <unknown>
  51:     0x7ff708641d96 - <unknown>
  52:     0x7ff7086947eb - <unknown>
  53:     0x7ff88da2fe9c - std::sys::windows::thread::Thread::new::h4025a5964e95cbad
  54:     0x7ff8e49726bd - BaseThreadInitThunk
  55:     0x7ff8e60cdfb8 - RtlUserThreadStart

@Link1J Link1J 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 Dec 20, 2022
@rust-lang-glacier-bot rust-lang-glacier-bot added the glacier ICE tracked in rust-lang/glacier. label Dec 21, 2022
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Dec 22, 2022
…notriddle

Fix ICE due to `todo!()` in `rustdoc` for `Term`s

Left a todo awhile ago (I think), so fill it in to print a const for `Term`s.

Fixes rust-lang#105952.

Should I add some annotations to the rustdoc test?
@bors bors closed this as completed in d2130e4 Dec 22, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
C-bug Category: This is a bug. glacier ICE tracked in rust-lang/glacier. 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

Successfully merging a pull request may close this issue.

2 participants