Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

'rustc' panicked at 'no errors encountered even though delay_span_bug issued', compiler\rustc_errors\src\lib.rs:1050:13 #87299

Closed
jruiss opened this issue Jul 20, 2021 · 6 comments
Labels
C-bug Category: This is a bug.

Comments

@jruiss
Copy link

jruiss commented Jul 20, 2021

I tried compiling wgpu-core.

I expected to see this happen: explanation
Successfull compilation.

Instead, this happened: explanation
error: internal compiler error: unexpected panic

Meta

rustc --version --verbose:

rustc 1.55.0-nightly (014026d1a 2021-07-19) running on x86_64-pc-windows-msvc 
Backtrace

Just a repetion of this until panic.

error: internal compiler error: failed to process buffered lint here (dummy = false)                                                                                                                                                           --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\wgpu-core-0.7.1\build.rs:7:5                                                                                                                                               |                                                                                                                                                                                                                                         7  | /     cfg_aliases::cfg_aliases! {                                                                                                                                                                                                       8  | |         // Vendors/systems                                                                                                                                                                                                            9  | |         wasm: { target_arch = "wasm32" },                                                                                                                                                                                             10 | |         apple: { any(target_os = "ios", target_os = "macos") },                                                                                                                                                                       ...  |                                                                                                                                                                                                                                       18 | |         gl: { any(wasm, unix_wo_apple) },                                                                                                                                                                                             19 | |     }                                                                                                                                                                                                                                    | |_____^                                                                                                                                                                                                                                    |                                                                                                                                                                                                                                            = note: delayed at /rustc/014026d1a7ca991f82f12efa95ef4dffb29dc8af\compiler\rustc_lint\src\early.rs:402:18                                                                                                                                   = note: this error: internal compiler error originates in the macro `$crate::cfg_aliases` (in Nightly builds, run with -Z macro-backtrace for more info)                                                                                                                                                                                                                                                                                                                               error: internal compiler error: failed to process buffered lint here (dummy = false)                                                                                                                                                           --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\wgpu-core-0.7.1\build.rs:7:5                                                                                                                                               |                                                                                                                                                                                                                                         7  | /     cfg_aliases::cfg_aliases! {                                                                                                                                                                                                       8  | |         // Vendors/systems                                                                                                                                                                                                            9  | |         wasm: { target_arch = "wasm32" },                                                                                                                                                                                             10 | |         apple: { any(target_os = "ios", target_os = "macos") },                                                                                                                                                                       ...  |                                                                                                                                                                                                                                       18 | |         gl: { any(wasm, unix_wo_apple) },                                                                                                                                                                                             19 | |     }                                                                                                                                                                                                                                    | |_____^                                                                                                                                                                                                                                    |                                                                                                                                                                                                                                            = note: delayed at /rustc/014026d1a7ca991f82f12efa95ef4dffb29dc8af\compiler\rustc_lint\src\early.rs:402:18                                                                                                                                   = note: this error: internal compiler error originates in the macro `$crate::cfg_aliases` (in Nightly builds, run with -Z macro-backtrace for more info)                                                                                                                                                                                                                                                                                                                               error: internal compiler error: failed to process buffered lint here (dummy = false)                                                                                                                                                           --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\wgpu-core-0.7.1\build.rs:7:5                                                                                                                                               |                                                                                                                                                                                                                                         7  | /     cfg_aliases::cfg_aliases! {                                                                                                                                                                                                       8  | |         // Vendors/systems                                                                                                                                                                                                            9  | |         wasm: { target_arch = "wasm32" },                                                                                                                                                                                             10 | |         apple: { any(target_os = "ios", target_os = "macos") },                                                                                                                                                                       ...  |                                                                                                                                                                                                                                       18 | |         gl: { any(wasm, unix_wo_apple) },                                                                                                                                                                                             19 | |     }                                                                                                                                                                                                                                    | |_____^                                                                                                                                                                                                                                    |                                                                                                                                                                                                                                            = note: delayed at /rustc/014026d1a7ca991f82f12efa95ef4dffb29dc8af\compiler\rustc_lint\src\early.rs:402:18                                                                                                                                   = note: this error: internal compiler error originates in the macro `$crate::cfg_aliases` (in Nightly builds, run with -Z macro-backtrace for more info)                                                                                                                                                                                                                                                                                                                               error: internal compiler error: failed to process buffered lint here (dummy = false)                                                                                                                                                           --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\wgpu-core-0.7.1\build.rs:7:5                                                                                                                                               |                                                                                                                                                                                                                                         7  | /     cfg_aliases::cfg_aliases! {                                                                                                                                                                                                       8  | |         // Vendors/systems                                                                                                                                                                                                            9  | |         wasm: { target_arch = "wasm32" },                                                                                                                                                                                             10 | |         apple: { any(target_os = "ios", target_os = "macos") },                                                                                                                                                                       ...  |                                                                                                                                                                                                                                       18 | |         gl: { any(wasm, unix_wo_apple) },                                                                                                                                                                                             19 | |     }                                                                                                                                                                                                                                    | |_____^                                                                                                                                                                                                                                    |                                                                                                                                                                                                                                            = note: delayed at /rustc/014026d1a7ca991f82f12efa95ef4dffb29dc8af\compiler\rustc_lint\src\early.rs:402:18                                                                                                                                   = note: this error: internal compiler error originates in the macro `$crate::cfg_aliases` (in Nightly builds, run with -Z macro-backtrace for more info)                                                                                                                                                                                                                                                                                                                               error: internal compiler error: failed to process buffered lint here (dummy = false)                                                                                                                                                           --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\wgpu-core-0.7.1\build.rs:7:5                                                                                                                                               |                                                                                                                                                                                                                                         7  | /     cfg_aliases::cfg_aliases! {                                                                                                                                                                                                       8  | |         // Vendors/systems                                                                                                                                                                                                            9  | |         wasm: { target_arch = "wasm32" },                                                                                                                                                                                             10 | |         apple: { any(target_os = "ios", target_os = "macos") },                                                                                                                                                                       ...  |                                                                                                                                                                                                                                       18 | |         gl: { any(wasm, unix_wo_apple) },                                                                                                                                                                                             19 | |     }                                                                                                                                                                                                                                    | |_____^                                                                                                                                                                                                                                    |                                                                                                                                                                                                                                            = note: delayed at /rustc/014026d1a7ca991f82f12efa95ef4dffb29dc8af\compiler\rustc_lint\src\early.rs:402:18                                                                                                                                   = note: this error: internal compiler error originates in the macro `$crate::cfg_aliases` (in Nightly builds, run with -Z macro-backtrace for more info)                                                                                                                                                                                                                                                                                                                               error: internal compiler error: failed to process buffered lint here (dummy = false)                                                                                                                                                           --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\wgpu-core-0.7.1\build.rs:7:5                                                                                                                                               |                                                                                                                                                                                                                                         7  | /     cfg_aliases::cfg_aliases! {                                                                                                                                                                                                       8  | |         // Vendors/systems                                                                                                                                                                                                            9  | |         wasm: { target_arch = "wasm32" },                                                                                                                                                                                             10 | |         apple: { any(target_os = "ios", target_os = "macos") },                                                                                                                                                                       ...  |                                                                                                                                                                                                                                       18 | |         gl: { any(wasm, unix_wo_apple) },                                                                                                                                                                                             19 | |     }                                                                                                                                                                                                                                    | |_____^                                                                                                                                                                                                                                    |                                                                                                                                                                                                                                            = note: delayed at /rustc/014026d1a7ca991f82f12efa95ef4dffb29dc8af\compiler\rustc_lint\src\early.rs:402:18                                                                                                                                   = note: this error: internal compiler error originates in the macro `$crate::cfg_aliases` (in Nightly builds, run with -Z macro-backtrace for more info)                                                                                                                                                                                                                                                                                                                               error: internal compiler error: failed to process buffered lint here (dummy = false)                                                                                                                                                           --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\wgpu-core-0.7.1\build.rs:7:5                                                                                                                                               |                                                                                                                                                                                                                                         7  | /     cfg_aliases::cfg_aliases! {                                                                                                                                                                                                       8  | |         // Vendors/systems                                                                                                                                                                                                            9  | |         wasm: { target_arch = "wasm32" },                                                                                                                                                                                             10 | |         apple: { any(target_os = "ios", target_os = "macos") },                                                                                                                                                                       ...  |                                                                                                                                                                                                                                       18 | |         gl: { any(wasm, unix_wo_apple) },                                                                                                                                                                                             19 | |     }                                                                                                                                                                                                                                    | |_____^                                                                                                                                                                                                                                    |                                                                                                                                                                                                                                            = note: delayed at /rustc/014026d1a7ca991f82f12efa95ef4dffb29dc8af\compiler\rustc_lint\src\early.rs:402:18                                                                                                                                   = note: this error: internal compiler error originates in the macro `$crate::cfg_aliases` (in Nightly builds, run with -Z macro-backtrace for more info)                                                                                                                                                                                                                                                                                                                               error: internal compiler error: failed to process buffered lint here (dummy = false)                                                                                                                                                           --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\wgpu-core-0.7.1\build.rs:7:5                                                                                                                                               |                                                                                                                                                                                                                                         7  | /     cfg_aliases::cfg_aliases! {                                                                                                                                                                                                       8  | |         // Vendors/systems                                                                                                                                                                                                            9  | |         wasm: { target_arch = "wasm32" },                                                                                                                                                                                             10 | |         apple: { any(target_os = "ios", target_os = "macos") },                                                                                                                                                                       ...  |                                                                                                                                                                                                                                       18 | |         gl: { any(wasm, unix_wo_apple) },                                                                                                                                                                                             19 | |     }                                                                                                                                                                                                                                    | |_____^                                                                                                                                                                                                                                    |                                                                                                                                                                                                                                            = note: delayed at /rustc/014026d1a7ca991f82f12efa95ef4dffb29dc8af\compiler\rustc_lint\src\early.rs:402:18                                                                                                                                   = note: this error: internal compiler error originates in the macro `$crate::cfg_aliases` (in Nightly builds, run with -Z macro-backtrace for more info)                                                                                                                                                                                                                                                                                                                               error: internal compiler error: failed to process buffered lint here (dummy = false)                                                                                                                                                           --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\wgpu-core-0.7.1\build.rs:7:5                                                                                                                                               |                                                                                                                                                                                                                                         7  | /     cfg_aliases::cfg_aliases! {                                                                                                                                                                                                       8  | |         // Vendors/systems                                                                                                                                                                                                            9  | |         wasm: { target_arch = "wasm32" },                                                                                                                                                                                             10 | |         apple: { any(target_os = "ios", target_os = "macos") },                                                                                                                                                                       ...  |                                                                                                                                                                                                                                       18 | |         gl: { any(wasm, unix_wo_apple) },                                                                                                                                                                                             19 | |     }                                                                                                                                                                                                                                    | |_____^                                                                                                                                                                                                                                    |                                                                                                                                                                                                                                            = note: delayed at /rustc/014026d1a7ca991f82f12efa95ef4dffb29dc8af\compiler\rustc_lint\src\early.rs:402:18                                                                                                                                   = note: this error: internal compiler error originates in the macro `$crate::cfg_aliases` (in Nightly builds, run with -Z macro-backtrace for more info) 

@jruiss jruiss added the C-bug Category: This is a bug. label Jul 20, 2021
@takkuumi
Copy link

same

@hellow554
Copy link
Contributor

Hey @e0gs

thank you for the report. Sadly I haven't been able to reproduce your issue.

What was your command to build the crate? Which version of the crate did you use? Can you specify a certain commit maybe?

@jruiss
Copy link
Author

jruiss commented Jul 20, 2021

Hey @e0gs

thank you for the report. Sadly I haven't been able to reproduce your issue.

What was your command to build the crate? Which version of the crate did you use? Can you specify a certain commit maybe?

Was in the end trying to build Iced 0.3.0 and Iced-aw

iced = "0.3.0"
iced_aw = { git = "https://github.com/iced-rs/iced_aw", branch = "main", default-features = false, features = ["floating_button", "colors", "tab_bar", "tabs", "icons", "icon_text", "card", "modal"] }
error: internal compiler error: failed to process buffered lint here (dummy = false)
  --> C:\Users\owner\.cargo\registry\src\github.com-1ecc6299db9ec823\wgpu-core-0.7.1\build.rs:7:5
   |
7  | /     cfg_aliases::cfg_aliases! {
8  | |         // Vendors/systems
9  | |         wasm: { target_arch = "wasm32" },
10 | |         apple: { any(target_os = "ios", target_os = "macos") },
...  |
18 | |         gl: { any(wasm, unix_wo_apple) },
19 | |     }
   | |_____^
   |
   = note: delayed at /rustc/014026d1a7ca991f82f12efa95ef4dffb29dc8af\compiler\rustc_lint\src\early.rs:402:18
   = note: this error: internal compiler error originates in the macro `$crate::cfg_aliases` (in Nightly builds, run with -Z macro-backtrace for more info)

thread 'rustc' panicked at 'no errors encountered even though `delay_span_bug` issued', compiler\rustc_errors\src\lib.rs:1050:13
stack backtrace:
   0:     0x7ffaa12f72cf - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hf8f9ccaaf737268c
   1:     0x7ffaa132030a - core::fmt::write::h7e004fee938dc3bd
   2:     0x7ffaa12eaa58 - <std::io::IoSlice as core::fmt::Debug>::fmt::h5e8f50613d775ee8
   3:     0x7ffaa12faef6 - std::panicking::take_hook::hb09930640d1f28d1
   4:     0x7ffaa12fa9d9 - std::panicking::take_hook::hb09930640d1f28d1
   5:     0x7ffa93b3210e - <md5::Md5 as std::io::Write>::flush::h740848eb8d315998
   6:     0x7ffaa12fb7f0 - std::panicking::rust_panic_with_hook::ha77067ca1c3aa04d
   7:     0x7ffaa12fb2b1 - rust_begin_unwind
   8:     0x7ffaa12f7c1f - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hf8f9ccaaf737268c
   9:     0x7ffaa12fb209 - rust_begin_unwind
  10:     0x7ffaa135599c - std::panicking::begin_panic_fmt::hd0b34d17ecdda70b
  11:     0x7ffa97e115cf - rustc_errors::HandlerInner::delay_as_bug::had7a1fc16257907d
  12:     0x7ffa97e0d052 - <rustc_errors::HandlerInner as core::ops::drop::Drop>::drop::h6ab627992737d6aa
  13:     0x7ffa93bb5374 - <rustc_driver::args::Error as core::fmt::Debug>::fmt::h5df0c4d8fb3d3c5e
  14:     0x7ffa93bbce5a - <rustc_driver::args::Error as core::fmt::Debug>::fmt::h5df0c4d8fb3d3c5e
  15:     0x7ffa93b4fe1d - <rustc_hir::intravisit::ErasedMap as rustc_hir::intravisit::Map>::foreign_item::h82aae2bf47c2b2ad
  16:     0x7ffa93b4bcee - chalk_engine::TableIndex::increment::h1dc89da32ec272e2
  17:     0x7ffa93b89359 - <rustc_driver::args::Error as core::fmt::Debug>::fmt::h5df0c4d8fb3d3c5e
  18:     0x7ffa93b5687a - <rustc_middle::ty::SymbolName as core::fmt::Display>::fmt::h5079114a276318b8
  19:     0x7ffa93b53518 - rustc_driver::pretty::print_after_hir_lowering::h5170af9d47465e28
  20:     0x7ffa93b46d6d - <rustc_driver::Compilation as core::fmt::Debug>::fmt::h64cba24964385564
  21:     0x7ffaa130933c - std::sys::windows::thread::Thread::new::h0a6e657a03ae2a48
  22:     0x7ffaf2957034 - BaseThreadInitThunk
  23:     0x7ffaf3ba2651 - RtlUserThreadStart

EDIT:
compiler flags if that's what you meant by command,

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.55.0-nightly (014026d1a 2021-07-19) running on x86_64-pc-windows-msvc

note: compiler flags: -C embed-bitcode=no -C debuginfo=2 --crate-type bin

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

query stack during panic:
end of query stack
error: could not compile `wgpu-core`
warning: build failed, waiting for other jobs to finish...
error: build failed

@hellow554
Copy link
Contributor

Thank you for the correct backtrace!

This should/could have been fixed by #87284 so can you try tomorrow with an updated nightly again and report it back please?

@jruiss
Copy link
Author

jruiss commented Jul 20, 2021

Had set RUST_BACKTRACE=1 in cmd.exe the first time but it didn't give me any traceback until switching back and forth from stabe - nightly.

Will do that.

@jruiss
Copy link
Author

jruiss commented Jul 22, 2021

Works as expected with nightly-x86_64-pc-windows-msvc - rustc 1.55.0-nightly (32c9b7b 2021-07-21)

@jruiss jruiss closed this as completed Jul 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug.
Projects
None yet
Development

No branches or pull requests

3 participants