Created
August 5, 2024 14:09
-
-
Save folkertdev/1afae9ede304e8c14040458039bd70c3 to your computer and use it in GitHub Desktop.
backtraces for https://github.com/rust-lang/rust/issues/128532
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Finished `dev` profile [unoptimized] target(s) in 0.05s | |
WARNING: The `change-id` is missing in the `config.toml`. This means that you will not be able to track the major changes made to the bootstrap configurations. | |
NOTE: to silence this warning, add `change-id = 127866` at the top of `config.toml` | |
Building stage0 library artifacts (x86_64-unknown-linux-gnu) | |
Finished `release` profile [optimized + debuginfo] target(s) in 0.11s | |
Building compiler artifacts (stage0 -> stage1, x86_64-unknown-linux-gnu) | |
Finished `release` profile [optimized + debuginfo] target(s) in 0.19s | |
Creating a sysroot for stage1 compiler (use `rustup toolchain link 'name' build/host/stage1`) | |
Building stage0 tool lld-wrapper (x86_64-unknown-linux-gnu) | |
Finished `release` profile [optimized + debuginfo] target(s) in 0.10s | |
Building stage1 library artifacts (x86_64-unknown-linux-gnu) | |
Finished `release` profile [optimized + debuginfo] target(s) in 0.11s | |
Building stage0 tool compiletest (x86_64-unknown-linux-gnu) | |
Finished `release` profile [optimized + debuginfo] target(s) in 0.14s | |
Testing stage1 compiletest suite=ui mode=ui (x86_64-unknown-linux-gnu) | |
running 1 tests | |
[ui] tests/ui/asm/type-check-1.rs ... F | |
failures: | |
---- [ui] tests/ui/asm/type-check-1.rs stdout ---- | |
error: Error: expected failure status (Some(1)) but received status Some(101). | |
status: exit status: 101 | |
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/home/folkertdev/rust/rust/build/x86_64-unknown-linux-gnu/stage1/bin/rustc" "/home/folkertdev/rust/rust/tests/ui/asm/type-check-1.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/home/folkertdev/.cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/home/folkertdev/rust/rust/vendor" "--sysroot" "/home/folkertdev/rust/rust/build/x86_64-unknown-linux-gnu/stage1" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/home/folkertdev/rust/rust/build/x86_64-unknown-linux-gnu/test/ui/asm/type-check-1" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/home/folkertdev/rust/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/folkertdev/rust/rust/build/x86_64-unknown-linux-gnu/test/ui/asm/type-check-1/auxiliary" "-Ztreat-err-as-bug=1" | |
stdout: none | |
--- stderr ------------------------------- | |
error: internal compiler error: invalid type for `const` operand | |
--> /home/folkertdev/rust/rust/tests/ui/asm/type-check-1.rs:12:20 | |
| | |
LL | asm!("{}", const 0f32); | |
| ^^^^^^---- | |
| | | |
| is an `f32` | |
| | |
= help: `const` operands must be of an integer type | |
thread 'rustc' panicked at compiler/rustc_errors/src/lib.rs:1794:17: | |
aborting due to `-Z treat-err-as-bug=1` | |
stack backtrace: | |
0: begin_panic_handler | |
at ./library/std/src/panicking.rs:665:5 | |
1: panic_fmt | |
at ./library/core/src/panicking.rs:74:14 | |
2: panic_if_treat_err_as_bug | |
at ./compiler/rustc_errors/src/lib.rs:1794:17 | |
3: {closure#3} | |
at ./compiler/rustc_errors/src/lib.rs:1641:17 | |
4: {closure#0}<core::option::Option<rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_interface/src/callbacks.rs:41:46 | |
5: {closure#0}<rustc_interface::callbacks::track_diagnostic::{closure#0}::{closure_env#0}<core::option::Option<rustc_span::ErrorGuaranteed>>, core::option::Option<rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_middle/src/ty/context/tls.rs:82:9 | |
6: try_with<core::cell::Cell<*const ()>, rustc_middle::ty::context::tls::enter_context::{closure_env#0}<rustc_interface::callbacks::track_diagnostic::{closure#0}::{closure_env#0}<core::option::Option<rustc_span::ErrorGuaranteed>>, core::option::Option<rustc_span::ErrorGuaranteed>>, core::option::Option<rustc_span::ErrorGuaranteed>> | |
at ./library/std/src/thread/local.rs:283:12 | |
7: with<core::cell::Cell<*const ()>, rustc_middle::ty::context::tls::enter_context::{closure_env#0}<rustc_interface::callbacks::track_diagnostic::{closure#0}::{closure_env#0}<core::option::Option<rustc_span::ErrorGuaranteed>>, core::option::Option<rustc_span::ErrorGuaranteed>>, core::option::Option<rustc_span::ErrorGuaranteed>> | |
at ./library/std/src/thread/local.rs:260:9 | |
8: enter_context<rustc_interface::callbacks::track_diagnostic::{closure#0}::{closure_env#0}<core::option::Option<rustc_span::ErrorGuaranteed>>, core::option::Option<rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_middle/src/ty/context/tls.rs:79:5 | |
9: {closure#0}<core::option::Option<rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_interface/src/callbacks.rs:41:13 | |
10: with_context_opt<rustc_interface::callbacks::track_diagnostic::{closure_env#0}<core::option::Option<rustc_span::ErrorGuaranteed>>, core::option::Option<rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_middle/src/ty/context/tls.rs:101:18 | |
11: track_diagnostic<core::option::Option<rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_interface/src/callbacks.rs:33:5 | |
12: emit_diagnostic | |
at ./compiler/rustc_errors/src/lib.rs:1570:9 | |
13: emit_diagnostic | |
at ./compiler/rustc_errors/src/lib.rs:1043:9 | |
14: emit_producing_error_guaranteed<rustc_span::ErrorGuaranteed> | |
at ./compiler/rustc_errors/src/diagnostic.rs:1315:20 | |
15: anon_const_type_of | |
16: type_of | |
at ./compiler/rustc_hir_analysis/src/collect/type_of.rs:573:31 | |
17: {closure#0} | |
at ./compiler/rustc_query_impl/src/plumbing.rs:285:13 | |
[... omitted 22 frames ...] | |
18: query_get_at<rustc_query_system::query::caches::DefIdCache<rustc_middle::query::erase::Erased<[u8; 8]>>> | |
at ./compiler/rustc_middle/src/query/plumbing.rs:145:17 | |
19: type_of<rustc_span::def_id::DefId> | |
at ./compiler/rustc_middle/src/query/plumbing.rs:423:31 | |
20: type_of<rustc_span::def_id::DefId> | |
at ./compiler/rustc_middle/src/query/plumbing.rs:414:17 | |
21: identity_unevaluated | |
at ./compiler/rustc_middle/src/mir/consts.rs:235:13 | |
22: {closure#9} | |
at ./compiler/rustc_mir_build/src/thir/cx/expr.rs:633:41 | |
23: {closure#0}<&(rustc_hir::hir::InlineAsmOperand, rustc_span::span_encoding::Span), rustc_middle::thir::InlineAsmOperand, (), rustc_mir_build::thir::cx::expr::{impl#0}::make_mirror_unadjusted::{closure#0}::{closure_env#9}, core::iter::traits::iterator::Iterator::for_each::call::{closure_env#0}<rustc_middle::thir::InlineAsmOperand, alloc::vec::{impl#20}::extend_trusted::{closure_env#0}<rustc_middle::thir::InlineAsmOperand, alloc::alloc::Global, core::iter::adapters::map::Map<core::slice::iter::Iter<(rustc_hir::hir::InlineAsmOperand, rustc_span::span_encoding::Span)>, rustc_mir_build::thir::cx::expr::{impl#0}::make_mirror_unadjusted::{closure#0}::{closure_env#9}>>>> | |
at ./library/core/src/iter/adapters/map.rs:89:28 | |
24: fold<(rustc_hir::hir::InlineAsmOperand, rustc_span::span_encoding::Span), (), core::iter::adapters::map::map_fold::{closure_env#0}<&(rustc_hir::hir::InlineAsmOperand, rustc_span::span_encoding::Span), rustc_middle::thir::InlineAsmOperand, (), rustc_mir_build::thir::cx::expr::{impl#0}::make_mirror_unadjusted::{closure#0}::{closure_env#9}, core::iter::traits::iterator::Iterator::for_each::call::{closure_env#0}<rustc_middle::thir::InlineAsmOperand, alloc::vec::{impl#20}::extend_trusted::{closure_env#0}<rustc_middle::thir::InlineAsmOperand, alloc::alloc::Global, core::iter::adapters::map::Map<core::slice::iter::Iter<(rustc_hir::hir::InlineAsmOperand, rustc_span::span_encoding::Span)>, rustc_mir_build::thir::cx::expr::{impl#0}::make_mirror_unadjusted::{closure#0}::{closure_env#9}>>>>> | |
at ./library/core/src/slice/iter/macros.rs:232:27 | |
25: fold<rustc_middle::thir::InlineAsmOperand, core::slice::iter::Iter<(rustc_hir::hir::InlineAsmOperand, rustc_span::span_encoding::Span)>, rustc_mir_build::thir::cx::expr::{impl#0}::make_mirror_unadjusted::{closure#0}::{closure_env#9}, (), core::iter::traits::iterator::Iterator::for_each::call::{closure_env#0}<rustc_middle::thir::InlineAsmOperand, alloc::vec::{impl#20}::extend_trusted::{closure_env#0}<rustc_middle::thir::InlineAsmOperand, alloc::alloc::Global, core::iter::adapters::map::Map<core::slice::iter::Iter<(rustc_hir::hir::InlineAsmOperand, rustc_span::span_encoding::Span)>, rustc_mir_build::thir::cx::expr::{impl#0}::make_mirror_unadjusted::{closure#0}::{closure_env#9}>>>> | |
at ./library/core/src/iter/adapters/map.rs:129:9 | |
26: for_each<core::iter::adapters::map::Map<core::slice::iter::Iter<(rustc_hir::hir::InlineAsmOperand, rustc_span::span_encoding::Span)>, rustc_mir_build::thir::cx::expr::{impl#0}::make_mirror_unadjusted::{closure#0}::{closure_env#9}>, alloc::vec::{impl#20}::extend_trusted::{closure_env#0}<rustc_middle::thir::InlineAsmOperand, alloc::alloc::Global, core::iter::adapters::map::Map<core::slice::iter::Iter<(rustc_hir::hir::InlineAsmOperand, rustc_span::span_encoding::Span)>, rustc_mir_build::thir::cx::expr::{impl#0}::make_mirror_unadjusted::{closure#0}::{closure_env#9}>>> | |
at ./library/core/src/iter/traits/iterator.rs:818:9 | |
27: extend_trusted<rustc_middle::thir::InlineAsmOperand, alloc::alloc::Global, core::iter::adapters::map::Map<core::slice::iter::Iter<(rustc_hir::hir::InlineAsmOperand, rustc_span::span_encoding::Span)>, rustc_mir_build::thir::cx::expr::{impl#0}::make_mirror_unadjusted::{closure#0}::{closure_env#9}>> | |
at ./library/alloc/src/vec/mod.rs:3113:17 | |
28: spec_extend<rustc_middle::thir::InlineAsmOperand, core::iter::adapters::map::Map<core::slice::iter::Iter<(rustc_hir::hir::InlineAsmOperand, rustc_span::span_encoding::Span)>, rustc_mir_build::thir::cx::expr::{impl#0}::make_mirror_unadjusted::{closure#0}::{closure_env#9}>, alloc::alloc::Global> | |
at ./library/alloc/src/vec/spec_extend.rs:26:9 | |
29: from_iter<rustc_middle::thir::InlineAsmOperand, core::iter::adapters::map::Map<core::slice::iter::Iter<(rustc_hir::hir::InlineAsmOperand, rustc_span::span_encoding::Span)>, rustc_mir_build::thir::cx::expr::{impl#0}::make_mirror_unadjusted::{closure#0}::{closure_env#9}>> | |
at ./library/alloc/src/vec/spec_from_iter_nested.rs:62:9 | |
30: from_iter<rustc_middle::thir::InlineAsmOperand, core::iter::adapters::map::Map<core::slice::iter::Iter<(rustc_hir::hir::InlineAsmOperand, rustc_span::span_encoding::Span)>, rustc_mir_build::thir::cx::expr::{impl#0}::make_mirror_unadjusted::{closure#0}::{closure_env#9}>> | |
at ./library/alloc/src/vec/spec_from_iter.rs:33:9 | |
31: from_iter<rustc_middle::thir::InlineAsmOperand, core::iter::adapters::map::Map<core::slice::iter::Iter<(rustc_hir::hir::InlineAsmOperand, rustc_span::span_encoding::Span)>, rustc_mir_build::thir::cx::expr::{impl#0}::make_mirror_unadjusted::{closure#0}::{closure_env#9}>> | |
at ./library/alloc/src/vec/mod.rs:2977:9 | |
32: collect<core::iter::adapters::map::Map<core::slice::iter::Iter<(rustc_hir::hir::InlineAsmOperand, rustc_span::span_encoding::Span)>, rustc_mir_build::thir::cx::expr::{impl#0}::make_mirror_unadjusted::{closure#0}::{closure_env#9}>, alloc::vec::Vec<rustc_middle::thir::InlineAsmOperand, alloc::alloc::Global>> | |
at ./library/core/src/iter/traits/iterator.rs:2005:9 | |
33: from_iter<rustc_middle::thir::InlineAsmOperand, core::iter::adapters::map::Map<core::slice::iter::Iter<(rustc_hir::hir::InlineAsmOperand, rustc_span::span_encoding::Span)>, rustc_mir_build::thir::cx::expr::{impl#0}::make_mirror_unadjusted::{closure#0}::{closure_env#9}>> | |
at ./library/alloc/src/boxed.rs:2206:9 | |
34: collect<core::iter::adapters::map::Map<core::slice::iter::Iter<(rustc_hir::hir::InlineAsmOperand, rustc_span::span_encoding::Span)>, rustc_mir_build::thir::cx::expr::{impl#0}::make_mirror_unadjusted::{closure#0}::{closure_env#9}>, alloc::boxed::Box<[rustc_middle::thir::InlineAsmOperand], alloc::alloc::Global>> | |
at ./library/core/src/iter/traits/iterator.rs:2005:9 | |
35: {closure#0} | |
at ./compiler/rustc_mir_build/src/thir/cx/expr.rs:607:27 | |
36: make_mirror_unadjusted | |
at ./compiler/rustc_mir_build/src/thir/cx/expr.rs:240:5 | |
37: mirror_expr_inner | |
at ./compiler/rustc_mir_build/src/thir/cx/expr.rs:47:24 | |
38: {closure#0} | |
at ./compiler/rustc_mir_build/src/thir/cx/block.rs:57:39 | |
39: call_mut<((usize, &rustc_hir::hir::Stmt)), rustc_mir_build::thir::cx::block::{impl#0}::mirror_stmts::{closure_env#0}> | |
at ./library/core/src/ops/function.rs:294:13 | |
40: {closure#0}<(usize, &rustc_hir::hir::Stmt), rustc_middle::thir::StmtId, &mut rustc_mir_build::thir::cx::block::{impl#0}::mirror_stmts::{closure_env#0}> | |
at ./library/core/src/iter/traits/iterator.rs:2907:32 | |
41: {closure#0}<&rustc_hir::hir::Stmt, (), core::ops::control_flow::ControlFlow<rustc_middle::thir::StmtId, ()>, core::iter::traits::iterator::Iterator::find_map::check::{closure_env#0}<(usize, &rustc_hir::hir::Stmt), rustc_middle::thir::StmtId, &mut rustc_mir_build::thir::cx::block::{impl#0}::mirror_stmts::{closure_env#0}>> | |
at ./library/core/src/iter/adapters/enumerate.rs:87:27 | |
42: try_fold<core::slice::iter::Iter<rustc_hir::hir::Stmt>, (), core::iter::adapters::enumerate::{impl#1}::try_fold::enumerate::{closure_env#0}<&rustc_hir::hir::Stmt, (), core::ops::control_flow::ControlFlow<rustc_middle::thir::StmtId, ()>, core::iter::traits::iterator::Iterator::find_map::check::{closure_env#0}<(usize, &rustc_hir::hir::Stmt), rustc_middle::thir::StmtId, &mut rustc_mir_build::thir::cx::block::{impl#0}::mirror_stmts::{closure_env#0}>>, core::ops::control_flow::ControlFlow<rustc_middle::thir::StmtId, ()>> | |
at ./library/core/src/iter/traits/iterator.rs:2410:21 | |
43: try_fold<core::slice::iter::Iter<rustc_hir::hir::Stmt>, (), core::iter::traits::iterator::Iterator::find_map::check::{closure_env#0}<(usize, &rustc_hir::hir::Stmt), rustc_middle::thir::StmtId, &mut rustc_mir_build::thir::cx::block::{impl#0}::mirror_stmts::{closure_env#0}>, core::ops::control_flow::ControlFlow<rustc_middle::thir::StmtId, ()>> | |
at ./library/core/src/iter/adapters/enumerate.rs:93:9 | |
44: find_map<core::iter::adapters::enumerate::Enumerate<core::slice::iter::Iter<rustc_hir::hir::Stmt>>, rustc_middle::thir::StmtId, &mut rustc_mir_build::thir::cx::block::{impl#0}::mirror_stmts::{closure_env#0}> | |
at ./library/core/src/iter/traits/iterator.rs:2913:9 | |
45: next<rustc_middle::thir::StmtId, core::iter::adapters::enumerate::Enumerate<core::slice::iter::Iter<rustc_hir::hir::Stmt>>, rustc_mir_build::thir::cx::block::{impl#0}::mirror_stmts::{closure_env#0}> | |
at ./library/core/src/iter/adapters/filter_map.rs:64:9 | |
46: from_iter<rustc_middle::thir::StmtId, core::iter::adapters::filter_map::FilterMap<core::iter::adapters::enumerate::Enumerate<core::slice::iter::Iter<rustc_hir::hir::Stmt>>, rustc_mir_build::thir::cx::block::{impl#0}::mirror_stmts::{closure_env#0}>> | |
at ./library/alloc/src/vec/spec_from_iter_nested.rs:26:32 | |
47: from_iter<rustc_middle::thir::StmtId, core::iter::adapters::filter_map::FilterMap<core::iter::adapters::enumerate::Enumerate<core::slice::iter::Iter<rustc_hir::hir::Stmt>>, rustc_mir_build::thir::cx::block::{impl#0}::mirror_stmts::{closure_env#0}>> | |
at ./library/alloc/src/vec/spec_from_iter.rs:33:9 | |
48: from_iter<rustc_middle::thir::StmtId, core::iter::adapters::filter_map::FilterMap<core::iter::adapters::enumerate::Enumerate<core::slice::iter::Iter<rustc_hir::hir::Stmt>>, rustc_mir_build::thir::cx::block::{impl#0}::mirror_stmts::{closure_env#0}>> | |
at ./library/alloc/src/vec/mod.rs:2977:9 | |
49: collect<core::iter::adapters::filter_map::FilterMap<core::iter::adapters::enumerate::Enumerate<core::slice::iter::Iter<rustc_hir::hir::Stmt>>, rustc_mir_build::thir::cx::block::{impl#0}::mirror_stmts::{closure_env#0}>, alloc::vec::Vec<rustc_middle::thir::StmtId, alloc::alloc::Global>> | |
at ./library/core/src/iter/traits/iterator.rs:2005:9 | |
50: from_iter<rustc_middle::thir::StmtId, core::iter::adapters::filter_map::FilterMap<core::iter::adapters::enumerate::Enumerate<core::slice::iter::Iter<rustc_hir::hir::Stmt>>, rustc_mir_build::thir::cx::block::{impl#0}::mirror_stmts::{closure_env#0}>> | |
at ./library/alloc/src/boxed.rs:2206:9 | |
51: collect<core::iter::adapters::filter_map::FilterMap<core::iter::adapters::enumerate::Enumerate<core::slice::iter::Iter<rustc_hir::hir::Stmt>>, rustc_mir_build::thir::cx::block::{impl#0}::mirror_stmts::{closure_env#0}>, alloc::boxed::Box<[rustc_middle::thir::StmtId], alloc::alloc::Global>> | |
at ./library/core/src/iter/traits/iterator.rs:2005:9 | |
52: mirror_stmts | |
at ./compiler/rustc_mir_build/src/thir/cx/block.rs:44:9 | |
53: mirror_block | |
at ./compiler/rustc_mir_build/src/thir/cx/block.rs:15:21 | |
54: {closure#0} | |
at ./compiler/rustc_mir_build/src/thir/cx/expr.rs:403:70 | |
55: make_mirror_unadjusted | |
at ./compiler/rustc_mir_build/src/thir/cx/expr.rs:240:5 | |
56: mirror_expr_inner | |
at ./compiler/rustc_mir_build/src/thir/cx/expr.rs:47:24 | |
57: {closure#0} | |
at ./compiler/rustc_mir_build/src/thir/cx/expr.rs:33:36 | |
58: maybe_grow<rustc_middle::thir::ExprId, rustc_mir_build::thir::cx::expr::{impl#0}::mirror_expr::{closure_env#0}> | |
at /home/folkertdev/.cargo/registry/src/index.crates.io-6f17d22bba15001f/stacker-0.1.15/src/lib.rs:55:9 | |
59: ensure_sufficient_stack<rustc_middle::thir::ExprId, rustc_mir_build::thir::cx::expr::{impl#0}::mirror_expr::{closure_env#0}> | |
at ./compiler/rustc_data_structures/src/stack.rs:17:5 | |
60: mirror_expr | |
at ./compiler/rustc_mir_build/src/thir/cx/expr.rs:33:9 | |
61: {closure#0} | |
at ./compiler/rustc_mir_build/src/thir/cx/block.rs:24:41 | |
62: map<&rustc_hir::hir::Expr, rustc_middle::thir::ExprId, rustc_mir_build::thir::cx::block::{impl#0}::mirror_block::{closure_env#0}> | |
at ./library/core/src/option.rs:1110:29 | |
63: mirror_block | |
at ./compiler/rustc_mir_build/src/thir/cx/block.rs:24:19 | |
64: {closure#0} | |
at ./compiler/rustc_mir_build/src/thir/cx/expr.rs:403:70 | |
65: make_mirror_unadjusted | |
at ./compiler/rustc_mir_build/src/thir/cx/expr.rs:240:5 | |
66: mirror_expr_inner | |
at ./compiler/rustc_mir_build/src/thir/cx/expr.rs:47:24 | |
67: {closure#0} | |
at ./compiler/rustc_mir_build/src/thir/cx/expr.rs:33:36 | |
68: maybe_grow<rustc_middle::thir::ExprId, rustc_mir_build::thir::cx::expr::{impl#0}::mirror_expr::{closure_env#0}> | |
at /home/folkertdev/.cargo/registry/src/index.crates.io-6f17d22bba15001f/stacker-0.1.15/src/lib.rs:55:9 | |
69: ensure_sufficient_stack<rustc_middle::thir::ExprId, rustc_mir_build::thir::cx::expr::{impl#0}::mirror_expr::{closure_env#0}> | |
at ./compiler/rustc_data_structures/src/stack.rs:17:5 | |
70: mirror_expr | |
at ./compiler/rustc_mir_build/src/thir/cx/expr.rs:33:9 | |
71: thir_body | |
at ./compiler/rustc_mir_build/src/thir/cx/mod.rs:32:16 | |
72: {closure#0} | |
at ./compiler/rustc_query_impl/src/plumbing.rs:281:9 | |
[... omitted 22 frames ...] | |
73: query_get_at<rustc_query_system::query::caches::VecCache<rustc_span::def_id::LocalDefId, rustc_middle::query::erase::Erased<[u8; 16]>>> | |
at ./compiler/rustc_middle/src/query/plumbing.rs:145:17 | |
74: thir_body<rustc_span::def_id::LocalDefId> | |
at ./compiler/rustc_middle/src/query/plumbing.rs:423:31 | |
75: thir_body<rustc_span::def_id::LocalDefId> | |
at ./compiler/rustc_middle/src/query/plumbing.rs:414:17 | |
76: check_unsafety | |
at ./compiler/rustc_mir_build/src/check_unsafety.rs:971:28 | |
77: {closure#0} | |
at ./compiler/rustc_query_impl/src/plumbing.rs:281:9 | |
[... omitted 22 frames ...] | |
78: query_ensure<rustc_query_system::query::caches::VecCache<rustc_span::def_id::LocalDefId, rustc_middle::query::erase::Erased<[u8; 0]>>> | |
at ./compiler/rustc_middle/src/query/plumbing.rs:161:9 | |
79: check_unsafety<rustc_span::def_id::LocalDefId> | |
at ./compiler/rustc_middle/src/query/plumbing.rs:196:9 | |
80: {closure#0} | |
at ./compiler/rustc_interface/src/passes.rs:789:13 | |
81: {closure#0}<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}> | |
at ./compiler/rustc_middle/src/hir/map/mod.rs:352:82 | |
82: {closure#0}<&rustc_span::def_id::LocalDefId, &[rustc_span::def_id::LocalDefId], rustc_middle::hir::map::{impl#4}::par_body_owners::{closure_env#0}<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}>> | |
at ./compiler/rustc_data_structures/src/sync/parallel.rs:182:34 | |
83: call_once<(), rustc_data_structures::sync::parallel::enabled::par_for_each_in::{closure#0}::{closure#0}::{closure_env#0}<&rustc_span::def_id::LocalDefId, &[rustc_span::def_id::LocalDefId], rustc_middle::hir::map::{impl#4}::par_body_owners::{closure_env#0}<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}>>> | |
at ./library/core/src/panic/unwind_safe.rs:272:9 | |
84: do_call<core::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures::sync::parallel::enabled::par_for_each_in::{closure#0}::{closure#0}::{closure_env#0}<&rustc_span::def_id::LocalDefId, &[rustc_span::def_id::LocalDefId], rustc_middle::hir::map::{impl#4}::par_body_owners::{closure_env#0}<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}>>>, ()> | |
at ./library/std/src/panicking.rs:557:40 | |
85: try<(), core::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures::sync::parallel::enabled::par_for_each_in::{closure#0}::{closure#0}::{closure_env#0}<&rustc_span::def_id::LocalDefId, &[rustc_span::def_id::LocalDefId], rustc_middle::hir::map::{impl#4}::par_body_owners::{closure_env#0}<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}>>>> | |
at ./library/std/src/panicking.rs:521:19 | |
86: run<(), rustc_data_structures::sync::parallel::enabled::par_for_each_in::{closure#0}::{closure#1}::{closure_env#0}<&rustc_span::def_id::LocalDefId, &[rustc_span::def_id::LocalDefId], rustc_middle::hir::map::{impl#4}::par_body_owners::{closure_env#0}<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}>>> | |
at ./compiler/rustc_data_structures/src/sync/parallel.rs:28:9 | |
87: {closure#1}<&rustc_span::def_id::LocalDefId, &[rustc_span::def_id::LocalDefId], rustc_middle::hir::map::{impl#4}::par_body_owners::{closure_env#0}<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}>> | |
at ./compiler/rustc_data_structures/src/sync/parallel.rs:186:21 | |
88: for_each<rustc_span::def_id::LocalDefId, rustc_data_structures::sync::parallel::enabled::par_for_each_in::{closure#0}::{closure_env#1}<&rustc_span::def_id::LocalDefId, &[rustc_span::def_id::LocalDefId], rustc_middle::hir::map::{impl#4}::par_body_owners::{closure_env#0}<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}>>> | |
at ./library/core/src/slice/iter/macros.rs:254:21 | |
89: {closure#0}<&rustc_span::def_id::LocalDefId, &[rustc_span::def_id::LocalDefId], rustc_middle::hir::map::{impl#4}::par_body_owners::{closure_env#0}<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}>> | |
at ./compiler/rustc_data_structures/src/sync/parallel.rs:185:17 | |
90: parallel_guard<(), rustc_data_structures::sync::parallel::enabled::par_for_each_in::{closure_env#0}<&rustc_span::def_id::LocalDefId, &[rustc_span::def_id::LocalDefId], rustc_middle::hir::map::{impl#4}::par_body_owners::{closure_env#0}<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}>>> | |
at ./compiler/rustc_data_structures/src/sync/parallel.rs:44:15 | |
91: par_for_each_in<&rustc_span::def_id::LocalDefId, &[rustc_span::def_id::LocalDefId], rustc_middle::hir::map::{impl#4}::par_body_owners::{closure_env#0}<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}>> | |
at ./compiler/rustc_data_structures/src/sync/parallel.rs:178:9 | |
92: par_body_owners<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}> | |
at ./compiler/rustc_middle/src/hir/map/mod.rs:352:9 | |
93: {closure#1} | |
at ./compiler/rustc_interface/src/passes.rs:786:9 | |
94: run<(), rustc_interface::passes::run_required_analyses::{closure_env#1}> | |
at ./compiler/rustc_data_structures/src/profiling.rs:754:9 | |
95: time<(), rustc_interface::passes::run_required_analyses::{closure_env#1}> | |
at ./compiler/rustc_session/src/utils.rs:16:9 | |
96: run_required_analyses | |
at ./compiler/rustc_interface/src/passes.rs:785:5 | |
97: analysis | |
at ./compiler/rustc_interface/src/passes.rs:823:5 | |
98: {closure#0} | |
at ./compiler/rustc_query_impl/src/plumbing.rs:281:9 | |
[... omitted 22 frames ...] | |
99: query_get_at<rustc_query_system::query::caches::SingleCache<rustc_middle::query::erase::Erased<[u8; 1]>>> | |
at ./compiler/rustc_middle/src/query/plumbing.rs:145:17 | |
100: analysis | |
at ./compiler/rustc_middle/src/query/plumbing.rs:423:31 | |
101: analysis | |
at ./compiler/rustc_middle/src/query/plumbing.rs:414:17 | |
102: {closure#5} | |
at ./compiler/rustc_driver_impl/src/lib.rs:444:48 | |
103: {closure#1}<rustc_driver_impl::run_compiler::{closure#0}::{closure#1}::{closure_env#5}, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_middle/src/ty/context.rs:1336:37 | |
104: {closure#0}<rustc_middle::ty::context::{impl#19}::enter::{closure_env#1}<rustc_driver_impl::run_compiler::{closure#0}::{closure#1}::{closure_env#5}, core::result::Result<(), rustc_span::ErrorGuaranteed>>, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_middle/src/ty/context/tls.rs:82:9 | |
105: try_with<core::cell::Cell<*const ()>, rustc_middle::ty::context::tls::enter_context::{closure_env#0}<rustc_middle::ty::context::{impl#19}::enter::{closure_env#1}<rustc_driver_impl::run_compiler::{closure#0}::{closure#1}::{closure_env#5}, core::result::Result<(), rustc_span::ErrorGuaranteed>>, core::result::Result<(), rustc_span::ErrorGuaranteed>>, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
at ./library/std/src/thread/local.rs:283:12 | |
106: with<core::cell::Cell<*const ()>, rustc_middle::ty::context::tls::enter_context::{closure_env#0}<rustc_middle::ty::context::{impl#19}::enter::{closure_env#1}<rustc_driver_impl::run_compiler::{closure#0}::{closure#1}::{closure_env#5}, core::result::Result<(), rustc_span::ErrorGuaranteed>>, core::result::Result<(), rustc_span::ErrorGuaranteed>>, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
at ./library/std/src/thread/local.rs:260:9 | |
107: enter_context<rustc_middle::ty::context::{impl#19}::enter::{closure_env#1}<rustc_driver_impl::run_compiler::{closure#0}::{closure#1}::{closure_env#5}, core::result::Result<(), rustc_span::ErrorGuaranteed>>, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_middle/src/ty/context/tls.rs:79:5 | |
108: enter<rustc_driver_impl::run_compiler::{closure#0}::{closure#1}::{closure_env#5}, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_middle/src/ty/context.rs:1336:9 | |
109: {closure#1} | |
at ./compiler/rustc_driver_impl/src/lib.rs:444:13 | |
110: enter<rustc_driver_impl::run_compiler::{closure#0}::{closure_env#1}, core::result::Result<core::option::Option<rustc_interface::queries::Linker>, rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_interface/src/queries.rs:209:19 | |
111: {closure#0} | |
at ./compiler/rustc_driver_impl/src/lib.rs:388:22 | |
112: {closure#1}<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure_env#0}> | |
at ./compiler/rustc_interface/src/interface.rs:502:27 | |
113: {closure#0}<rustc_interface::interface::run_compiler::{closure_env#1}<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure_env#0}>, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_interface/src/util.rs:154:13 | |
114: {closure#0}<rustc_interface::util::run_in_thread_pool_with_globals::{closure_env#0}<rustc_interface::interface::run_compiler::{closure_env#1}<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure_env#0}>, core::result::Result<(), rustc_span::ErrorGuaranteed>>, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_interface/src/util.rs:106:21 | |
115: set<rustc_span::SessionGlobals, rustc_interface::util::run_in_thread_with_globals::{closure#0}::{closure#0}::{closure_env#0}<rustc_interface::util::run_in_thread_pool_with_globals::{closure_env#0}<rustc_interface::interface::run_compiler::{closure_env#1}<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure_env#0}>, core::result::Result<(), rustc_span::ErrorGuaranteed>>, core::result::Result<(), rustc_span::ErrorGuaranteed>>, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
at /home/folkertdev/.cargo/registry/src/index.crates.io-6f17d22bba15001f/scoped-tls-1.0.1/src/lib.rs:137:9 | |
116: create_session_globals_then<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_interface::util::run_in_thread_with_globals::{closure#0}::{closure#0}::{closure_env#0}<rustc_interface::util::run_in_thread_pool_with_globals::{closure_env#0}<rustc_interface::interface::run_compiler::{closure_env#1}<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure_env#0}>, core::result::Result<(), rustc_span::ErrorGuaranteed>>, core::result::Result<(), rustc_span::ErrorGuaranteed>>> | |
at ./compiler/rustc_span/src/lib.rs:134:5 | |
117: {closure#0}<rustc_interface::util::run_in_thread_pool_with_globals::{closure_env#0}<rustc_interface::interface::run_compiler::{closure_env#1}<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure_env#0}>, core::result::Result<(), rustc_span::ErrorGuaranteed>>, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_interface/src/util.rs:105:17 | |
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. | |
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: please make sure that you have updated to the latest nightly | |
note: rustc 1.82.0-dev running on x86_64-unknown-linux-gnu | |
note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -Z ignore-directory-in-diagnostics-source-blocks=/home/folkertdev/.cargo -Z ignore-directory-in-diagnostics-source-blocks=/home/folkertdev/rust/rust/vendor -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -Z write-long-types-to-disk=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0 -Z treat-err-as-bug=1 | |
query stack during panic: | |
#0 [type_of] computing type of `main::{constant#0}` | |
#1 [thir_body] building THIR for `main` | |
#2 [check_unsafety] unsafety-checking `main` | |
#3 [analysis] running analysis passes on this crate | |
end of query stack | |
error: internal compiler error: invalid type for `const` operand | |
--> /home/folkertdev/rust/rust/tests/ui/asm/type-check-1.rs:19:19 | |
| | |
LL | global_asm!("{}", const 0f32); | |
| ^^^^^^---- | |
| | | |
| is an `f32` | |
| | |
= help: `const` operands must be of an integer type | |
thread 'rustc' panicked at compiler/rustc_errors/src/lib.rs:1792:13: | |
assertion `left == right` failed | |
left: 1 | |
right: 2 | |
stack backtrace: | |
0: begin_panic_handler | |
at ./library/std/src/panicking.rs:665:5 | |
1: panic_fmt | |
at ./library/core/src/panicking.rs:74:14 | |
2: assert_failed_inner | |
at ./library/core/src/panicking.rs:410:17 | |
3: core::panicking::assert_failed::<usize, usize> | |
at ./library/core/src/panicking.rs:365:5 | |
4: panic_if_treat_err_as_bug | |
at ./compiler/rustc_errors/src/lib.rs:1792:13 | |
5: {closure#3} | |
at ./compiler/rustc_errors/src/lib.rs:1641:17 | |
6: {closure#0}<core::option::Option<rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_interface/src/callbacks.rs:41:46 | |
7: {closure#0}<rustc_interface::callbacks::track_diagnostic::{closure#0}::{closure_env#0}<core::option::Option<rustc_span::ErrorGuaranteed>>, core::option::Option<rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_middle/src/ty/context/tls.rs:82:9 | |
8: try_with<core::cell::Cell<*const ()>, rustc_middle::ty::context::tls::enter_context::{closure_env#0}<rustc_interface::callbacks::track_diagnostic::{closure#0}::{closure_env#0}<core::option::Option<rustc_span::ErrorGuaranteed>>, core::option::Option<rustc_span::ErrorGuaranteed>>, core::option::Option<rustc_span::ErrorGuaranteed>> | |
at ./library/std/src/thread/local.rs:283:12 | |
9: with<core::cell::Cell<*const ()>, rustc_middle::ty::context::tls::enter_context::{closure_env#0}<rustc_interface::callbacks::track_diagnostic::{closure#0}::{closure_env#0}<core::option::Option<rustc_span::ErrorGuaranteed>>, core::option::Option<rustc_span::ErrorGuaranteed>>, core::option::Option<rustc_span::ErrorGuaranteed>> | |
at ./library/std/src/thread/local.rs:260:9 | |
10: enter_context<rustc_interface::callbacks::track_diagnostic::{closure#0}::{closure_env#0}<core::option::Option<rustc_span::ErrorGuaranteed>>, core::option::Option<rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_middle/src/ty/context/tls.rs:79:5 | |
11: {closure#0}<core::option::Option<rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_interface/src/callbacks.rs:41:13 | |
12: with_context_opt<rustc_interface::callbacks::track_diagnostic::{closure_env#0}<core::option::Option<rustc_span::ErrorGuaranteed>>, core::option::Option<rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_middle/src/ty/context/tls.rs:101:18 | |
13: track_diagnostic<core::option::Option<rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_interface/src/callbacks.rs:33:5 | |
14: emit_diagnostic | |
at ./compiler/rustc_errors/src/lib.rs:1570:9 | |
15: emit_diagnostic | |
at ./compiler/rustc_errors/src/lib.rs:1043:9 | |
16: emit_producing_error_guaranteed<rustc_span::ErrorGuaranteed> | |
at ./compiler/rustc_errors/src/diagnostic.rs:1315:20 | |
17: anon_const_type_of | |
18: type_of | |
at ./compiler/rustc_hir_analysis/src/collect/type_of.rs:573:31 | |
19: {closure#0} | |
at ./compiler/rustc_query_impl/src/plumbing.rs:285:13 | |
[... omitted 22 frames ...] | |
20: query_get_at<rustc_query_system::query::caches::DefIdCache<rustc_middle::query::erase::Erased<[u8; 8]>>> | |
at ./compiler/rustc_middle/src/query/plumbing.rs:145:17 | |
21: type_of<rustc_span::def_id::LocalDefId> | |
at ./compiler/rustc_middle/src/query/plumbing.rs:423:31 | |
22: type_of<rustc_span::def_id::LocalDefId> | |
at ./compiler/rustc_middle/src/query/plumbing.rs:414:17 | |
23: compute_inputs_and_output | |
at ./compiler/rustc_borrowck/src/universal_regions.rs:797:26 | |
24: build | |
at ./compiler/rustc_borrowck/src/universal_regions.rs:491:39 | |
25: new | |
at ./compiler/rustc_borrowck/src/universal_regions.rs:252:9 | |
26: replace_regions_in_mir | |
at ./compiler/rustc_borrowck/src/nll.rs:64:29 | |
27: do_mir_borrowck | |
at ./compiler/rustc_borrowck/src/lib.rs:183:9 | |
28: mir_borrowck | |
at ./compiler/rustc_borrowck/src/lib.rs:127:27 | |
29: {closure#0} | |
at ./compiler/rustc_query_impl/src/plumbing.rs:281:9 | |
[... omitted 22 frames ...] | |
30: query_ensure<rustc_query_system::query::caches::VecCache<rustc_span::def_id::LocalDefId, rustc_middle::query::erase::Erased<[u8; 8]>>> | |
at ./compiler/rustc_middle/src/query/plumbing.rs:161:9 | |
31: mir_borrowck<rustc_span::def_id::LocalDefId> | |
at ./compiler/rustc_middle/src/query/plumbing.rs:196:9 | |
32: {closure#0} | |
at ./compiler/rustc_interface/src/passes.rs:790:13 | |
33: {closure#0}<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}> | |
at ./compiler/rustc_middle/src/hir/map/mod.rs:352:82 | |
34: {closure#0}<&rustc_span::def_id::LocalDefId, &[rustc_span::def_id::LocalDefId], rustc_middle::hir::map::{impl#4}::par_body_owners::{closure_env#0}<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}>> | |
at ./compiler/rustc_data_structures/src/sync/parallel.rs:182:34 | |
35: call_once<(), rustc_data_structures::sync::parallel::enabled::par_for_each_in::{closure#0}::{closure#0}::{closure_env#0}<&rustc_span::def_id::LocalDefId, &[rustc_span::def_id::LocalDefId], rustc_middle::hir::map::{impl#4}::par_body_owners::{closure_env#0}<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}>>> | |
at ./library/core/src/panic/unwind_safe.rs:272:9 | |
36: do_call<core::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures::sync::parallel::enabled::par_for_each_in::{closure#0}::{closure#0}::{closure_env#0}<&rustc_span::def_id::LocalDefId, &[rustc_span::def_id::LocalDefId], rustc_middle::hir::map::{impl#4}::par_body_owners::{closure_env#0}<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}>>>, ()> | |
at ./library/std/src/panicking.rs:557:40 | |
37: try<(), core::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures::sync::parallel::enabled::par_for_each_in::{closure#0}::{closure#0}::{closure_env#0}<&rustc_span::def_id::LocalDefId, &[rustc_span::def_id::LocalDefId], rustc_middle::hir::map::{impl#4}::par_body_owners::{closure_env#0}<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}>>>> | |
at ./library/std/src/panicking.rs:521:19 | |
38: run<(), rustc_data_structures::sync::parallel::enabled::par_for_each_in::{closure#0}::{closure#1}::{closure_env#0}<&rustc_span::def_id::LocalDefId, &[rustc_span::def_id::LocalDefId], rustc_middle::hir::map::{impl#4}::par_body_owners::{closure_env#0}<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}>>> | |
at ./compiler/rustc_data_structures/src/sync/parallel.rs:28:9 | |
39: {closure#1}<&rustc_span::def_id::LocalDefId, &[rustc_span::def_id::LocalDefId], rustc_middle::hir::map::{impl#4}::par_body_owners::{closure_env#0}<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}>> | |
at ./compiler/rustc_data_structures/src/sync/parallel.rs:186:21 | |
40: for_each<rustc_span::def_id::LocalDefId, rustc_data_structures::sync::parallel::enabled::par_for_each_in::{closure#0}::{closure_env#1}<&rustc_span::def_id::LocalDefId, &[rustc_span::def_id::LocalDefId], rustc_middle::hir::map::{impl#4}::par_body_owners::{closure_env#0}<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}>>> | |
at ./library/core/src/slice/iter/macros.rs:254:21 | |
41: {closure#0}<&rustc_span::def_id::LocalDefId, &[rustc_span::def_id::LocalDefId], rustc_middle::hir::map::{impl#4}::par_body_owners::{closure_env#0}<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}>> | |
at ./compiler/rustc_data_structures/src/sync/parallel.rs:185:17 | |
42: parallel_guard<(), rustc_data_structures::sync::parallel::enabled::par_for_each_in::{closure_env#0}<&rustc_span::def_id::LocalDefId, &[rustc_span::def_id::LocalDefId], rustc_middle::hir::map::{impl#4}::par_body_owners::{closure_env#0}<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}>>> | |
at ./compiler/rustc_data_structures/src/sync/parallel.rs:44:15 | |
43: par_for_each_in<&rustc_span::def_id::LocalDefId, &[rustc_span::def_id::LocalDefId], rustc_middle::hir::map::{impl#4}::par_body_owners::{closure_env#0}<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}>> | |
at ./compiler/rustc_data_structures/src/sync/parallel.rs:178:9 | |
44: par_body_owners<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}> | |
at ./compiler/rustc_middle/src/hir/map/mod.rs:352:9 | |
45: {closure#1} | |
at ./compiler/rustc_interface/src/passes.rs:786:9 | |
46: run<(), rustc_interface::passes::run_required_analyses::{closure_env#1}> | |
at ./compiler/rustc_data_structures/src/profiling.rs:754:9 | |
47: time<(), rustc_interface::passes::run_required_analyses::{closure_env#1}> | |
at ./compiler/rustc_session/src/utils.rs:16:9 | |
48: run_required_analyses | |
at ./compiler/rustc_interface/src/passes.rs:785:5 | |
49: analysis | |
at ./compiler/rustc_interface/src/passes.rs:823:5 | |
50: {closure#0} | |
at ./compiler/rustc_query_impl/src/plumbing.rs:281:9 | |
[... omitted 22 frames ...] | |
51: query_get_at<rustc_query_system::query::caches::SingleCache<rustc_middle::query::erase::Erased<[u8; 1]>>> | |
at ./compiler/rustc_middle/src/query/plumbing.rs:145:17 | |
52: analysis | |
at ./compiler/rustc_middle/src/query/plumbing.rs:423:31 | |
53: analysis | |
at ./compiler/rustc_middle/src/query/plumbing.rs:414:17 | |
54: {closure#5} | |
at ./compiler/rustc_driver_impl/src/lib.rs:444:48 | |
55: {closure#1}<rustc_driver_impl::run_compiler::{closure#0}::{closure#1}::{closure_env#5}, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_middle/src/ty/context.rs:1336:37 | |
56: {closure#0}<rustc_middle::ty::context::{impl#19}::enter::{closure_env#1}<rustc_driver_impl::run_compiler::{closure#0}::{closure#1}::{closure_env#5}, core::result::Result<(), rustc_span::ErrorGuaranteed>>, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_middle/src/ty/context/tls.rs:82:9 | |
57: try_with<core::cell::Cell<*const ()>, rustc_middle::ty::context::tls::enter_context::{closure_env#0}<rustc_middle::ty::context::{impl#19}::enter::{closure_env#1}<rustc_driver_impl::run_compiler::{closure#0}::{closure#1}::{closure_env#5}, core::result::Result<(), rustc_span::ErrorGuaranteed>>, core::result::Result<(), rustc_span::ErrorGuaranteed>>, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
at ./library/std/src/thread/local.rs:283:12 | |
58: with<core::cell::Cell<*const ()>, rustc_middle::ty::context::tls::enter_context::{closure_env#0}<rustc_middle::ty::context::{impl#19}::enter::{closure_env#1}<rustc_driver_impl::run_compiler::{closure#0}::{closure#1}::{closure_env#5}, core::result::Result<(), rustc_span::ErrorGuaranteed>>, core::result::Result<(), rustc_span::ErrorGuaranteed>>, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
at ./library/std/src/thread/local.rs:260:9 | |
59: enter_context<rustc_middle::ty::context::{impl#19}::enter::{closure_env#1}<rustc_driver_impl::run_compiler::{closure#0}::{closure#1}::{closure_env#5}, core::result::Result<(), rustc_span::ErrorGuaranteed>>, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_middle/src/ty/context/tls.rs:79:5 | |
60: enter<rustc_driver_impl::run_compiler::{closure#0}::{closure#1}::{closure_env#5}, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_middle/src/ty/context.rs:1336:9 | |
61: {closure#1} | |
at ./compiler/rustc_driver_impl/src/lib.rs:444:13 | |
62: enter<rustc_driver_impl::run_compiler::{closure#0}::{closure_env#1}, core::result::Result<core::option::Option<rustc_interface::queries::Linker>, rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_interface/src/queries.rs:209:19 | |
63: {closure#0} | |
at ./compiler/rustc_driver_impl/src/lib.rs:388:22 | |
64: {closure#1}<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure_env#0}> | |
at ./compiler/rustc_interface/src/interface.rs:502:27 | |
65: {closure#0}<rustc_interface::interface::run_compiler::{closure_env#1}<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure_env#0}>, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_interface/src/util.rs:154:13 | |
66: {closure#0}<rustc_interface::util::run_in_thread_pool_with_globals::{closure_env#0}<rustc_interface::interface::run_compiler::{closure_env#1}<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure_env#0}>, core::result::Result<(), rustc_span::ErrorGuaranteed>>, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_interface/src/util.rs:106:21 | |
67: set<rustc_span::SessionGlobals, rustc_interface::util::run_in_thread_with_globals::{closure#0}::{closure#0}::{closure_env#0}<rustc_interface::util::run_in_thread_pool_with_globals::{closure_env#0}<rustc_interface::interface::run_compiler::{closure_env#1}<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure_env#0}>, core::result::Result<(), rustc_span::ErrorGuaranteed>>, core::result::Result<(), rustc_span::ErrorGuaranteed>>, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
at /home/folkertdev/.cargo/registry/src/index.crates.io-6f17d22bba15001f/scoped-tls-1.0.1/src/lib.rs:137:9 | |
68: create_session_globals_then<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_interface::util::run_in_thread_with_globals::{closure#0}::{closure#0}::{closure_env#0}<rustc_interface::util::run_in_thread_pool_with_globals::{closure_env#0}<rustc_interface::interface::run_compiler::{closure_env#1}<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure_env#0}>, core::result::Result<(), rustc_span::ErrorGuaranteed>>, core::result::Result<(), rustc_span::ErrorGuaranteed>>> | |
at ./compiler/rustc_span/src/lib.rs:134:5 | |
69: {closure#0}<rustc_interface::util::run_in_thread_pool_with_globals::{closure_env#0}<rustc_interface::interface::run_compiler::{closure_env#1}<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure_env#0}>, core::result::Result<(), rustc_span::ErrorGuaranteed>>, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_interface/src/util.rs:105:17 | |
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. | |
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: please make sure that you have updated to the latest nightly | |
note: rustc 1.82.0-dev running on x86_64-unknown-linux-gnu | |
note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -Z ignore-directory-in-diagnostics-source-blocks=/home/folkertdev/.cargo -Z ignore-directory-in-diagnostics-source-blocks=/home/folkertdev/rust/rust/vendor -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -Z write-long-types-to-disk=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0 -Z treat-err-as-bug=1 | |
query stack during panic: | |
#0 [type_of] computing type of `{global_asm#0}::{constant#0}` | |
#1 [mir_borrowck] borrow-checking `{global_asm#0}::{constant#0}` | |
#2 [analysis] running analysis passes on this crate | |
end of query stack | |
------------------------------------------ | |
failures: | |
[ui] tests/ui/asm/type-check-1.rs | |
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 17359 filtered out; finished in 264.83ms | |
Some tests failed in compiletest suite=ui mode=ui host=x86_64-unknown-linux-gnu target=x86_64-unknown-linux-gnu | |
Building bootstrap | |
Build completed unsuccessfully in 0:00:03 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Finished `dev` profile [unoptimized] target(s) in 0.03s | |
WARNING: The `change-id` is missing in the `config.toml`. This means that you will not be able to track the major changes made to the bootstrap configurations. | |
NOTE: to silence this warning, add `change-id = 127866` at the top of `config.toml` | |
Building stage0 library artifacts (x86_64-unknown-linux-gnu) | |
Finished `release` profile [optimized + debuginfo] target(s) in 0.11s | |
Building compiler artifacts (stage0 -> stage1, x86_64-unknown-linux-gnu) | |
Finished `release` profile [optimized + debuginfo] target(s) in 0.20s | |
Creating a sysroot for stage1 compiler (use `rustup toolchain link 'name' build/host/stage1`) | |
Building stage0 tool lld-wrapper (x86_64-unknown-linux-gnu) | |
Finished `release` profile [optimized + debuginfo] target(s) in 0.10s | |
Building stage1 library artifacts (x86_64-unknown-linux-gnu) | |
Finished `release` profile [optimized + debuginfo] target(s) in 0.11s | |
Building stage0 tool compiletest (x86_64-unknown-linux-gnu) | |
Finished `release` profile [optimized + debuginfo] target(s) in 0.12s | |
Testing stage1 compiletest suite=ui mode=ui (x86_64-unknown-linux-gnu) | |
running 1 tests | |
[ui] tests/ui/asm/type-check-1.rs ... F | |
failures: | |
---- [ui] tests/ui/asm/type-check-1.rs stdout ---- | |
error: Error: expected failure status (Some(1)) but received status Some(101). | |
status: exit status: 101 | |
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/home/folkertdev/rust/rust/build/x86_64-unknown-linux-gnu/stage1/bin/rustc" "/home/folkertdev/rust/rust/tests/ui/asm/type-check-1.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/home/folkertdev/.cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/home/folkertdev/rust/rust/vendor" "--sysroot" "/home/folkertdev/rust/rust/build/x86_64-unknown-linux-gnu/stage1" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/home/folkertdev/rust/rust/build/x86_64-unknown-linux-gnu/test/ui/asm/type-check-1" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/home/folkertdev/rust/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/home/folkertdev/rust/rust/build/x86_64-unknown-linux-gnu/test/ui/asm/type-check-1/auxiliary" "-Ztreat-err-as-bug=2" | |
stdout: none | |
--- stderr ------------------------------- | |
error: invalid type for `const` operand | |
--> /home/folkertdev/rust/rust/tests/ui/asm/type-check-1.rs:12:20 | |
| | |
LL | asm!("{}", const 0f32); | |
| ^^^^^^---- | |
| | | |
| is an `f32` | |
| | |
= help: `const` operands must be of an integer type | |
error: internal compiler error: invalid type for `const` operand | |
--> /home/folkertdev/rust/rust/tests/ui/asm/type-check-1.rs:19:19 | |
| | |
LL | global_asm!("{}", const 0f32); | |
| ^^^^^^---- | |
| | | |
| is an `f32` | |
| | |
= help: `const` operands must be of an integer type | |
thread 'rustc' panicked at compiler/rustc_errors/src/lib.rs:1796:17: | |
aborting after 2 errors due to `-Z treat-err-as-bug=2` | |
stack backtrace: | |
0: begin_panic_handler | |
at ./library/std/src/panicking.rs:665:5 | |
1: panic_fmt | |
at ./library/core/src/panicking.rs:74:14 | |
2: panic_if_treat_err_as_bug | |
at ./compiler/rustc_errors/src/lib.rs:1796:17 | |
3: {closure#3} | |
at ./compiler/rustc_errors/src/lib.rs:1641:17 | |
4: {closure#0}<core::option::Option<rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_interface/src/callbacks.rs:41:46 | |
5: {closure#0}<rustc_interface::callbacks::track_diagnostic::{closure#0}::{closure_env#0}<core::option::Option<rustc_span::ErrorGuaranteed>>, core::option::Option<rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_middle/src/ty/context/tls.rs:82:9 | |
6: try_with<core::cell::Cell<*const ()>, rustc_middle::ty::context::tls::enter_context::{closure_env#0}<rustc_interface::callbacks::track_diagnostic::{closure#0}::{closure_env#0}<core::option::Option<rustc_span::ErrorGuaranteed>>, core::option::Option<rustc_span::ErrorGuaranteed>>, core::option::Option<rustc_span::ErrorGuaranteed>> | |
at ./library/std/src/thread/local.rs:283:12 | |
7: with<core::cell::Cell<*const ()>, rustc_middle::ty::context::tls::enter_context::{closure_env#0}<rustc_interface::callbacks::track_diagnostic::{closure#0}::{closure_env#0}<core::option::Option<rustc_span::ErrorGuaranteed>>, core::option::Option<rustc_span::ErrorGuaranteed>>, core::option::Option<rustc_span::ErrorGuaranteed>> | |
at ./library/std/src/thread/local.rs:260:9 | |
8: enter_context<rustc_interface::callbacks::track_diagnostic::{closure#0}::{closure_env#0}<core::option::Option<rustc_span::ErrorGuaranteed>>, core::option::Option<rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_middle/src/ty/context/tls.rs:79:5 | |
9: {closure#0}<core::option::Option<rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_interface/src/callbacks.rs:41:13 | |
10: with_context_opt<rustc_interface::callbacks::track_diagnostic::{closure_env#0}<core::option::Option<rustc_span::ErrorGuaranteed>>, core::option::Option<rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_middle/src/ty/context/tls.rs:101:18 | |
11: track_diagnostic<core::option::Option<rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_interface/src/callbacks.rs:33:5 | |
12: emit_diagnostic | |
at ./compiler/rustc_errors/src/lib.rs:1570:9 | |
13: emit_diagnostic | |
at ./compiler/rustc_errors/src/lib.rs:1043:9 | |
14: emit_producing_error_guaranteed<rustc_span::ErrorGuaranteed> | |
at ./compiler/rustc_errors/src/diagnostic.rs:1315:20 | |
15: anon_const_type_of | |
16: type_of | |
at ./compiler/rustc_hir_analysis/src/collect/type_of.rs:573:31 | |
17: {closure#0} | |
at ./compiler/rustc_query_impl/src/plumbing.rs:285:13 | |
[... omitted 22 frames ...] | |
18: query_get_at<rustc_query_system::query::caches::DefIdCache<rustc_middle::query::erase::Erased<[u8; 8]>>> | |
at ./compiler/rustc_middle/src/query/plumbing.rs:145:17 | |
19: type_of<rustc_span::def_id::LocalDefId> | |
at ./compiler/rustc_middle/src/query/plumbing.rs:423:31 | |
20: type_of<rustc_span::def_id::LocalDefId> | |
at ./compiler/rustc_middle/src/query/plumbing.rs:414:17 | |
21: compute_inputs_and_output | |
at ./compiler/rustc_borrowck/src/universal_regions.rs:797:26 | |
22: build | |
at ./compiler/rustc_borrowck/src/universal_regions.rs:491:39 | |
23: new | |
at ./compiler/rustc_borrowck/src/universal_regions.rs:252:9 | |
24: replace_regions_in_mir | |
at ./compiler/rustc_borrowck/src/nll.rs:64:29 | |
25: do_mir_borrowck | |
at ./compiler/rustc_borrowck/src/lib.rs:183:9 | |
26: mir_borrowck | |
at ./compiler/rustc_borrowck/src/lib.rs:127:27 | |
27: {closure#0} | |
at ./compiler/rustc_query_impl/src/plumbing.rs:281:9 | |
[... omitted 22 frames ...] | |
28: query_ensure<rustc_query_system::query::caches::VecCache<rustc_span::def_id::LocalDefId, rustc_middle::query::erase::Erased<[u8; 8]>>> | |
at ./compiler/rustc_middle/src/query/plumbing.rs:161:9 | |
29: mir_borrowck<rustc_span::def_id::LocalDefId> | |
at ./compiler/rustc_middle/src/query/plumbing.rs:196:9 | |
30: {closure#0} | |
at ./compiler/rustc_interface/src/passes.rs:790:13 | |
31: {closure#0}<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}> | |
at ./compiler/rustc_middle/src/hir/map/mod.rs:352:82 | |
32: {closure#0}<&rustc_span::def_id::LocalDefId, &[rustc_span::def_id::LocalDefId], rustc_middle::hir::map::{impl#4}::par_body_owners::{closure_env#0}<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}>> | |
at ./compiler/rustc_data_structures/src/sync/parallel.rs:182:34 | |
33: call_once<(), rustc_data_structures::sync::parallel::enabled::par_for_each_in::{closure#0}::{closure#0}::{closure_env#0}<&rustc_span::def_id::LocalDefId, &[rustc_span::def_id::LocalDefId], rustc_middle::hir::map::{impl#4}::par_body_owners::{closure_env#0}<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}>>> | |
at ./library/core/src/panic/unwind_safe.rs:272:9 | |
34: do_call<core::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures::sync::parallel::enabled::par_for_each_in::{closure#0}::{closure#0}::{closure_env#0}<&rustc_span::def_id::LocalDefId, &[rustc_span::def_id::LocalDefId], rustc_middle::hir::map::{impl#4}::par_body_owners::{closure_env#0}<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}>>>, ()> | |
at ./library/std/src/panicking.rs:557:40 | |
35: try<(), core::panic::unwind_safe::AssertUnwindSafe<rustc_data_structures::sync::parallel::enabled::par_for_each_in::{closure#0}::{closure#0}::{closure_env#0}<&rustc_span::def_id::LocalDefId, &[rustc_span::def_id::LocalDefId], rustc_middle::hir::map::{impl#4}::par_body_owners::{closure_env#0}<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}>>>> | |
at ./library/std/src/panicking.rs:521:19 | |
36: run<(), rustc_data_structures::sync::parallel::enabled::par_for_each_in::{closure#0}::{closure#1}::{closure_env#0}<&rustc_span::def_id::LocalDefId, &[rustc_span::def_id::LocalDefId], rustc_middle::hir::map::{impl#4}::par_body_owners::{closure_env#0}<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}>>> | |
at ./compiler/rustc_data_structures/src/sync/parallel.rs:28:9 | |
37: {closure#1}<&rustc_span::def_id::LocalDefId, &[rustc_span::def_id::LocalDefId], rustc_middle::hir::map::{impl#4}::par_body_owners::{closure_env#0}<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}>> | |
at ./compiler/rustc_data_structures/src/sync/parallel.rs:186:21 | |
38: for_each<rustc_span::def_id::LocalDefId, rustc_data_structures::sync::parallel::enabled::par_for_each_in::{closure#0}::{closure_env#1}<&rustc_span::def_id::LocalDefId, &[rustc_span::def_id::LocalDefId], rustc_middle::hir::map::{impl#4}::par_body_owners::{closure_env#0}<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}>>> | |
at ./library/core/src/slice/iter/macros.rs:254:21 | |
39: {closure#0}<&rustc_span::def_id::LocalDefId, &[rustc_span::def_id::LocalDefId], rustc_middle::hir::map::{impl#4}::par_body_owners::{closure_env#0}<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}>> | |
at ./compiler/rustc_data_structures/src/sync/parallel.rs:185:17 | |
40: parallel_guard<(), rustc_data_structures::sync::parallel::enabled::par_for_each_in::{closure_env#0}<&rustc_span::def_id::LocalDefId, &[rustc_span::def_id::LocalDefId], rustc_middle::hir::map::{impl#4}::par_body_owners::{closure_env#0}<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}>>> | |
at ./compiler/rustc_data_structures/src/sync/parallel.rs:44:15 | |
41: par_for_each_in<&rustc_span::def_id::LocalDefId, &[rustc_span::def_id::LocalDefId], rustc_middle::hir::map::{impl#4}::par_body_owners::{closure_env#0}<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}>> | |
at ./compiler/rustc_data_structures/src/sync/parallel.rs:178:9 | |
42: par_body_owners<rustc_interface::passes::run_required_analyses::{closure#1}::{closure_env#0}> | |
at ./compiler/rustc_middle/src/hir/map/mod.rs:352:9 | |
43: {closure#1} | |
at ./compiler/rustc_interface/src/passes.rs:786:9 | |
44: run<(), rustc_interface::passes::run_required_analyses::{closure_env#1}> | |
at ./compiler/rustc_data_structures/src/profiling.rs:754:9 | |
45: time<(), rustc_interface::passes::run_required_analyses::{closure_env#1}> | |
at ./compiler/rustc_session/src/utils.rs:16:9 | |
46: run_required_analyses | |
at ./compiler/rustc_interface/src/passes.rs:785:5 | |
47: analysis | |
at ./compiler/rustc_interface/src/passes.rs:823:5 | |
48: {closure#0} | |
at ./compiler/rustc_query_impl/src/plumbing.rs:281:9 | |
[... omitted 22 frames ...] | |
49: query_get_at<rustc_query_system::query::caches::SingleCache<rustc_middle::query::erase::Erased<[u8; 1]>>> | |
at ./compiler/rustc_middle/src/query/plumbing.rs:145:17 | |
50: analysis | |
at ./compiler/rustc_middle/src/query/plumbing.rs:423:31 | |
51: analysis | |
at ./compiler/rustc_middle/src/query/plumbing.rs:414:17 | |
52: {closure#5} | |
at ./compiler/rustc_driver_impl/src/lib.rs:444:48 | |
53: {closure#1}<rustc_driver_impl::run_compiler::{closure#0}::{closure#1}::{closure_env#5}, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_middle/src/ty/context.rs:1336:37 | |
54: {closure#0}<rustc_middle::ty::context::{impl#19}::enter::{closure_env#1}<rustc_driver_impl::run_compiler::{closure#0}::{closure#1}::{closure_env#5}, core::result::Result<(), rustc_span::ErrorGuaranteed>>, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_middle/src/ty/context/tls.rs:82:9 | |
55: try_with<core::cell::Cell<*const ()>, rustc_middle::ty::context::tls::enter_context::{closure_env#0}<rustc_middle::ty::context::{impl#19}::enter::{closure_env#1}<rustc_driver_impl::run_compiler::{closure#0}::{closure#1}::{closure_env#5}, core::result::Result<(), rustc_span::ErrorGuaranteed>>, core::result::Result<(), rustc_span::ErrorGuaranteed>>, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
at ./library/std/src/thread/local.rs:283:12 | |
56: with<core::cell::Cell<*const ()>, rustc_middle::ty::context::tls::enter_context::{closure_env#0}<rustc_middle::ty::context::{impl#19}::enter::{closure_env#1}<rustc_driver_impl::run_compiler::{closure#0}::{closure#1}::{closure_env#5}, core::result::Result<(), rustc_span::ErrorGuaranteed>>, core::result::Result<(), rustc_span::ErrorGuaranteed>>, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
at ./library/std/src/thread/local.rs:260:9 | |
57: enter_context<rustc_middle::ty::context::{impl#19}::enter::{closure_env#1}<rustc_driver_impl::run_compiler::{closure#0}::{closure#1}::{closure_env#5}, core::result::Result<(), rustc_span::ErrorGuaranteed>>, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_middle/src/ty/context/tls.rs:79:5 | |
58: enter<rustc_driver_impl::run_compiler::{closure#0}::{closure#1}::{closure_env#5}, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_middle/src/ty/context.rs:1336:9 | |
59: {closure#1} | |
at ./compiler/rustc_driver_impl/src/lib.rs:444:13 | |
60: enter<rustc_driver_impl::run_compiler::{closure#0}::{closure_env#1}, core::result::Result<core::option::Option<rustc_interface::queries::Linker>, rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_interface/src/queries.rs:209:19 | |
61: {closure#0} | |
at ./compiler/rustc_driver_impl/src/lib.rs:388:22 | |
62: {closure#1}<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure_env#0}> | |
at ./compiler/rustc_interface/src/interface.rs:502:27 | |
63: {closure#0}<rustc_interface::interface::run_compiler::{closure_env#1}<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure_env#0}>, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_interface/src/util.rs:154:13 | |
64: {closure#0}<rustc_interface::util::run_in_thread_pool_with_globals::{closure_env#0}<rustc_interface::interface::run_compiler::{closure_env#1}<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure_env#0}>, core::result::Result<(), rustc_span::ErrorGuaranteed>>, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_interface/src/util.rs:106:21 | |
65: set<rustc_span::SessionGlobals, rustc_interface::util::run_in_thread_with_globals::{closure#0}::{closure#0}::{closure_env#0}<rustc_interface::util::run_in_thread_pool_with_globals::{closure_env#0}<rustc_interface::interface::run_compiler::{closure_env#1}<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure_env#0}>, core::result::Result<(), rustc_span::ErrorGuaranteed>>, core::result::Result<(), rustc_span::ErrorGuaranteed>>, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
at /home/folkertdev/.cargo/registry/src/index.crates.io-6f17d22bba15001f/scoped-tls-1.0.1/src/lib.rs:137:9 | |
66: create_session_globals_then<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_interface::util::run_in_thread_with_globals::{closure#0}::{closure#0}::{closure_env#0}<rustc_interface::util::run_in_thread_pool_with_globals::{closure_env#0}<rustc_interface::interface::run_compiler::{closure_env#1}<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure_env#0}>, core::result::Result<(), rustc_span::ErrorGuaranteed>>, core::result::Result<(), rustc_span::ErrorGuaranteed>>> | |
at ./compiler/rustc_span/src/lib.rs:134:5 | |
67: {closure#0}<rustc_interface::util::run_in_thread_pool_with_globals::{closure_env#0}<rustc_interface::interface::run_compiler::{closure_env#1}<core::result::Result<(), rustc_span::ErrorGuaranteed>, rustc_driver_impl::run_compiler::{closure_env#0}>, core::result::Result<(), rustc_span::ErrorGuaranteed>>, core::result::Result<(), rustc_span::ErrorGuaranteed>> | |
at ./compiler/rustc_interface/src/util.rs:105:17 | |
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. | |
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: please make sure that you have updated to the latest nightly | |
note: rustc 1.82.0-dev running on x86_64-unknown-linux-gnu | |
note: compiler flags: -Z threads=1 -Z simulate-remapped-rust-src-base=/rustc/FAKE_PREFIX -Z translate-remapped-path-to-local-path=no -Z ignore-directory-in-diagnostics-source-blocks=/home/folkertdev/.cargo -Z ignore-directory-in-diagnostics-source-blocks=/home/folkertdev/rust/rust/vendor -C codegen-units=1 -Z ui-testing -Z deduplicate-diagnostics=no -Z write-long-types-to-disk=no -C strip=debuginfo -C prefer-dynamic -C rpath -C debuginfo=0 -Z treat-err-as-bug=2 | |
query stack during panic: | |
#0 [type_of] computing type of `{global_asm#0}::{constant#0}` | |
#1 [mir_borrowck] borrow-checking `{global_asm#0}::{constant#0}` | |
#2 [analysis] running analysis passes on this crate | |
end of query stack | |
------------------------------------------ | |
failures: | |
[ui] tests/ui/asm/type-check-1.rs | |
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 17359 filtered out; finished in 264.78ms | |
Some tests failed in compiletest suite=ui mode=ui host=x86_64-unknown-linux-gnu target=x86_64-unknown-linux-gnu | |
Building bootstrap | |
Build completed unsuccessfully in 0:00:03 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//@ compile-flags: -Ztreat-err-as-bug=2 | |
//@ needs-asm-support | |
//@ ignore-nvptx64 | |
//@ ignore-spirv | |
#![feature(asm_const)] | |
use std::arch::{asm, global_asm}; | |
fn main() { | |
unsafe { | |
asm!("{}", const 0f32); | |
//~^ ERROR invalid type for `const` operand | |
} | |
} | |
// Const operands must be integers and must be constants. | |
global_asm!("{}", const 0f32); | |
//~^ ERROR invalid type for `const` operand |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment