[EXPERIMENT] Ban generics in variadic args by workingjubilee · Pull Request #127401 · rust-lang/rust (original) (raw)
thread 'rustc' panicked at compiler/rustc_hir_typeck/src/fn_ctxt/checks.rs:435:37:
Box<dyn Any>
stack backtrace:
0: 0x7fbb88715eef - <std[1e810906d2fadf8]::sys::backtrace::_print::DisplayBacktrace as core[839ef12c70fa2509]::fmt::Display>::fmt
1: 0x7fbb88772430 - core[839ef12c70fa2509]::fmt::write
2: 0x7fbb8870a8e9 - <std[1e810906d2fadf8]::sys::pal::unix::stdio::Stderr as std[1e810906d2fadf8]::io::Write>::write_fmt
3: 0x7fbb88715cbe - std[1e810906d2fadf8]::sys::backtrace::print
4: 0x7fbb8871899a - std[1e810906d2fadf8]::panicking::default_hook::{closure#1}
5: 0x7fbb88718624 - std[1e810906d2fadf8]::panicking::default_hook
6: 0x7fbb8a472c87 - <alloc[8501d074461e147f]::boxed::Box<rustc_driver_impl[31e15de76bbb1bb4]::install_ice_hook::{closure#0}> as core[839ef12c70fa2509]::ops::function::Fn<(&dyn for<'a, 'b> core[839ef12c70fa2509]::ops::function::Fn<(&'a std[1e810906d2fadf8]::panic::PanicHookInfo<'b>,), Output = ()> + core[839ef12c70fa2509]:📑:Send + core[839ef12c70fa2509]:📑:Sync, &std[1e810906d2fadf8]::panic::PanicHookInfo)>>::call
7: 0x7fbb88719388 - std[1e810906d2fadf8]::panicking::rust_panic_with_hook
8: 0x7fbb8e693b83 - std[1e810906d2fadf8]::panicking::begin_panic::<rustc_errors[95ecc2b6c4539d8]::ExplicitBug>::{closure#0}
9: 0x7fbb8e693a56 - std[1e810906d2fadf8]::sys::backtrace::__rust_end_short_backtrace::<std[1e810906d2fadf8]::panicking::begin_panic<rustc_errors[95ecc2b6c4539d8]::ExplicitBug>::{closure#0}, !>
10: 0x7fbb8e68a666 - std[1e810906d2fadf8]::panicking::begin_panic::<rustc_errors[95ecc2b6c4539d8]::ExplicitBug>
11: 0x7fbb8e66a651 - <rustc_errors[95ecc2b6c4539d8]::diagnostic::BugAbort as rustc_errors[95ecc2b6c4539d8]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
12: 0x7fbb8e2029bd - rustc_middle[181fecaaf64f9719]::util:🐛:opt_span_bug_fmt::<rustc_span[802050f372e962ba]::span_encoding::Span>::{closure#0}
13: 0x7fbb8e201e2a - rustc_middle[181fecaaf64f9719]::ty::context::tls::with_opt::<rustc_middle[181fecaaf64f9719]::util:🐛:opt_span_bug_fmt<rustc_span[802050f372e962ba]::span_encoding::Span>::{closure#0}, !>::{closure#0}
14: 0x7fbb8e201ddb - rustc_middle[181fecaaf64f9719]::ty::context::tls::with_context_opt::<rustc_middle[181fecaaf64f9719]::ty::context::tls::with_opt<rustc_middle[181fecaaf64f9719]::util:🐛:opt_span_bug_fmt<rustc_span[802050f372e962ba]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
15: 0x7fbb8e2028a2 - rustc_middle[181fecaaf64f9719]::util:🐛:bug_fmt
16: 0x7fbb8abb2671 - <rustc_hir_typeck[69d7bb0c82109318]::fn_ctxt::FnCtxt>::check_argument_types
17: 0x7fbb8ab6deab - <rustc_hir_typeck[69d7bb0c82109318]::fn_ctxt::FnCtxt>::confirm_builtin_call
18: 0x7fbb8ac168a0 - <rustc_hir_typeck[69d7bb0c82109318]::fn_ctxt::FnCtxt>::check_expr_kind
19: 0x7fbb8ab8d605 - <rustc_hir_typeck[69d7bb0c82109318]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
20: 0x7fbb8ac1191f - <rustc_hir_typeck[69d7bb0c82109318]::fn_ctxt::FnCtxt>::check_expr_with_expectation
21: 0x7fbb8abbb6b8 - <rustc_hir_typeck[69d7bb0c82109318]::fn_ctxt::FnCtxt>::check_block_with_expected
22: 0x7fbb8ac12a35 - <rustc_hir_typeck[69d7bb0c82109318]::fn_ctxt::FnCtxt>::check_expr_kind
23: 0x7fbb8ab8d605 - <rustc_hir_typeck[69d7bb0c82109318]::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
24: 0x7fbb8ac1191f - <rustc_hir_typeck[69d7bb0c82109318]::fn_ctxt::FnCtxt>::check_expr_with_expectation
25: 0x7fbb8ab8e82f - <rustc_hir_typeck[69d7bb0c82109318]::fn_ctxt::FnCtxt>::check_return_expr
26: 0x7fbb8add235e - rustc_hir_typeck[69d7bb0c82109318]::check::check_fn
27: 0x7fbb8adcc35c - rustc_hir_typeck[69d7bb0c82109318]::typeck
28: 0x7fbb8c6f6525 - rustc_query_impl[bd46294947b1e958]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[bd46294947b1e958]::query_impl::typeck::dynamic_query::{closure#2}::{closure#0}, rustc_middle[181fecaaf64f9719]::query::erase::Erased<[u8; 8usize]>>
29: 0x7fbb8c97f7e5 - <rustc_query_impl[bd46294947b1e958]::query_impl::typeck::dynamic_query::{closure#2} as core[839ef12c70fa2509]::ops::function::FnOnce<(rustc_middle[181fecaaf64f9719]::ty::context::TyCtxt, rustc_span[802050f372e962ba]::def_id::LocalDefId)>>::call_once
30: 0x7fbb8c80c80c - rustc_query_system[41a8177b433cd17]::query::plumbing::try_execute_query::<rustc_query_impl[bd46294947b1e958]::DynamicConfig<rustc_query_system[41a8177b433cd17]::query::caches::VecCache<rustc_span[802050f372e962ba]::def_id::LocalDefId, rustc_middle[181fecaaf64f9719]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[bd46294947b1e958]::plumbing::QueryCtxt, false>
31: 0x7fbb8c988c84 - rustc_query_impl[bd46294947b1e958]::query_impl::typeck::get_query_non_incr::__rust_end_short_backtrace
32: 0x7fbb8afa8bae - <rustc_middle[181fecaaf64f9719]::hir::map::Map>::par_body_owners::<rustc_hir_analysis[6f4fc52d75a270e]::check_crate::{closure#4}>::{closure#0}
33: 0x7fbb8b23f82b - <rustc_data_structures[73ab114716744ac8]::sync::parallel::ParallelGuard>::run::<(), rustc_data_structures[73ab114716744ac8]::sync::parallel::enabled::par_for_each_in<&rustc_span[802050f372e962ba]::def_id::LocalDefId, &[rustc_span[802050f372e962ba]::def_id::LocalDefId], <rustc_middle[181fecaaf64f9719]::hir::map::Map>::par_body_owners<rustc_hir_analysis[6f4fc52d75a270e]::check_crate::{closure#4}>::{closure#0}>::{closure#0}::{closure#0}::{closure#0}>
34: 0x7fbb8b0547de - rustc_hir_analysis[6f4fc52d75a270e]::check_crate
35: 0x7fbb8a840121 - rustc_interface[f069cc1ae5c72be5]::passes::analysis
36: 0x7fbb8c6f6b43 - rustc_query_impl[bd46294947b1e958]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[bd46294947b1e958]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[181fecaaf64f9719]::query::erase::Erased<[u8; 1usize]>>
37: 0x7fbb8caa55d1 - <rustc_query_impl[bd46294947b1e958]::query_impl::analysis::dynamic_query::{closure#2} as core[839ef12c70fa2509]::ops::function::FnOnce<(rustc_middle[181fecaaf64f9719]::ty::context::TyCtxt, ())>>::call_once
38: 0x7fbb8c75a94d - rustc_query_system[41a8177b433cd17]::query::plumbing::try_execute_query::<rustc_query_impl[bd46294947b1e958]::DynamicConfig<rustc_query_system[41a8177b433cd17]::query::caches::SingleCache<rustc_middle[181fecaaf64f9719]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[bd46294947b1e958]::plumbing::QueryCtxt, false>
39: 0x7fbb8c93fa21 - rustc_query_impl[bd46294947b1e958]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
40: 0x7fbb8a4b6c05 - <rustc_middle[181fecaaf64f9719]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[31e15de76bbb1bb4]::run_compiler::{closure#0}::{closure#1}::{closure#5}, core[839ef12c70fa2509]::result::Result<(), rustc_span[802050f372e962ba]::ErrorGuaranteed>>
41: 0x7fbb8a3f0fbc - <rustc_interface[f069cc1ae5c72be5]::interface::Compiler>::enter::<rustc_driver_impl[31e15de76bbb1bb4]::run_compiler::{closure#0}::{closure#1}, core[839ef12c70fa2509]::result::Result<core[839ef12c70fa2509]::option::Option<rustc_interface[f069cc1ae5c72be5]::queries::Linker>, rustc_span[802050f372e962ba]::ErrorGuaranteed>>
42: 0x7fbb8a45e0c8 - rustc_span[802050f372e962ba]::create_session_globals_then::<core[839ef12c70fa2509]::result::Result<(), rustc_span[802050f372e962ba]::ErrorGuaranteed>, rustc_interface[f069cc1ae5c72be5]::util::run_in_thread_with_globals<rustc_interface[f069cc1ae5c72be5]::util::run_in_thread_pool_with_globals<rustc_interface[f069cc1ae5c72be5]::interface::run_compiler<core[839ef12c70fa2509]::result::Result<(), rustc_span[802050f372e962ba]::ErrorGuaranteed>, rustc_driver_impl[31e15de76bbb1bb4]::run_compiler::{closure#0}>::{closure#1}, core[839ef12c70fa2509]::result::Result<(), rustc_span[802050f372e962ba]::ErrorGuaranteed>>::{closure#0}, core[839ef12c70fa2509]::result::Result<(), rustc_span[802050f372e962ba]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}>
43: 0x7fbb8a4b9032 - std[1e810906d2fadf8]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[f069cc1ae5c72be5]::util::run_in_thread_with_globals<rustc_interface[f069cc1ae5c72be5]::util::run_in_thread_pool_with_globals<rustc_interface[f069cc1ae5c72be5]::interface::run_compiler<core[839ef12c70fa2509]::result::Result<(), rustc_span[802050f372e962ba]::ErrorGuaranteed>, rustc_driver_impl[31e15de76bbb1bb4]::run_compiler::{closure#0}>::{closure#1}, core[839ef12c70fa2509]::result::Result<(), rustc_span[802050f372e962ba]::ErrorGuaranteed>>::{closure#0}, core[839ef12c70fa2509]::result::Result<(), rustc_span[802050f372e962ba]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[839ef12c70fa2509]::result::Result<(), rustc_span[802050f372e962ba]::ErrorGuaranteed>>
44: 0x7fbb8a4a89ef - <<std[1e810906d2fadf8]::thread::Builder>::spawn_unchecked_<rustc_interface[f069cc1ae5c72be5]::util::run_in_thread_with_globals<rustc_interface[f069cc1ae5c72be5]::util::run_in_thread_pool_with_globals<rustc_interface[f069cc1ae5c72be5]::interface::run_compiler<core[839ef12c70fa2509]::result::Result<(), rustc_span[802050f372e962ba]::ErrorGuaranteed>, rustc_driver_impl[31e15de76bbb1bb4]::run_compiler::{closure#0}>::{closure#1}, core[839ef12c70fa2509]::result::Result<(), rustc_span[802050f372e962ba]::ErrorGuaranteed>>::{closure#0}, core[839ef12c70fa2509]::result::Result<(), rustc_span[802050f372e962ba]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[839ef12c70fa2509]::result::Result<(), rustc_span[802050f372e962ba]::ErrorGuaranteed>>::{closure#2} as core[839ef12c70fa2509]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
45: 0x7fbb88724b14 - <std[1e810906d2fadf8]::sys::pal::unix::thread::Thread>:🆕:thread_start
47: 0x7fbb8853c850 - <unknown>
48: 0x0 - <unknown>
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: 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: please attach the file at `/cargo/registry/src/index.crates.io-6f17d22bba15001f/perf-event-open-sys-3.0.0/rustc-ice-2024-07-06T00_39_54-14171.txt` to your bug report
note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C debug-assertions=on -C symbol-mangling-version=v0 -Z unstable-options -Z macro-backtrace -C split-debuginfo=off -Z unstable-options -C prefer-dynamic -C link-args=-Wl,-z,origin -C link-args=-Wl,-rpath,$ORIGIN/../lib -Z on-broken-pipe=kill -Z binary-dep-depinfo -Z tls-model=initial-exec -Z force-unstable-if-unmarked
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
query stack during panic:
#0 [typeck] type-checking `ioctls::untyped_ioctl`
end of query stack
error: could not compile `perf-event-open-sys` (lib)
warning: build failed, waiting for other jobs to finish...
Build completed unsuccessfully in 0:05:10
Build completed unsuccessfully in 0:05:10
+ set -e
+ cat /tmp/toolstate/toolstates.json
{"lld-wrapper":"test-fail"}
+ python3 ../x.py test --stage 2 check-tools
##[group]Building bootstrap
Finished `dev` profile [unoptimized] target(s) in 0.04s
##[endgroup]
ERROR: Tool `book` was not recorded in tool state.
ERROR: Tool `nomicon` was not recorded in tool state.
ERROR: Tool `reference` was not recorded in tool state.
ERROR: Tool `rust-by-example` was not recorded in tool state.
ERROR: Tool `edition-guide` was not recorded in tool state.
ERROR: Tool `embedded-book` was not recorded in tool state.
local time: Sat Jul 6 00:40:01 UTC 2024
network time: Sat, 06 Jul 2024 00:40:01 GMT
##[error]Process completed with exit code 1.
Post job cleanup.