Closed
Description
Code
fn main() {
println!("Hello, world!");
}
Meta
rustc --version --verbose
:
rustc 1.57.0-nightly (aa8f2d432 2021-09-18)
binary: rustc
commit-hash: aa8f2d432b23575929a48f87b8746f41ba723318
commit-date: 2021-09-18
host: aarch64-apple-darwin
release: 1.57.0-nightly
LLVM version: 13.0.0
Error output
<output>
Backtrace
❯ RUST_BACKTRACE=1 cargo build
Compiling light v0.1.0 (/Users/lux/src/github.com/xunfeng1980/light)
thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: "Provided allocation has wrong size for slot count 131072"', compiler/rustc_metadata/src/rmeta/decoder.rs:263:29
stack backtrace:
0: _rust_begin_unwind
1: core::panicking::panic_fmt
2: core::result::unwrap_failed
3: rustc_metadata::rmeta::decoder::CrateMetadata::new
4: rustc_metadata::creader::CrateLoader::maybe_resolve_crate
5: rustc_metadata::creader::CrateLoader::maybe_resolve_crate
6: rustc_metadata::creader::CrateLoader::process_extern_crate
7: <rustc_resolve::build_reduced_graph::BuildReducedGraphVisitor as rustc_ast::visit::Visitor>::visit_item
8: rustc_ast::visit::walk_item
9: <rustc_resolve::build_reduced_graph::BuildReducedGraphVisitor as rustc_ast::visit::Visitor>::visit_item
10: rustc_expand::expand::AstFragment::visit_with
11: rustc_resolve::macros::<impl rustc_expand::base::ResolverExpand for rustc_resolve::Resolver>::visit_ast_fragment_with_placeholders
12: rustc_expand::expand::MacroExpander::collect_invocations
13: rustc_expand::expand::MacroExpander::fully_expand_fragment
14: rustc_expand::expand::MacroExpander::expand_crate
15: rustc_session::utils::<impl rustc_session::session::Session>::time
16: rustc_interface::passes::configure_and_expand
17: rustc_interface::queries::Queries::expansion
18: rustc_interface::queries::<impl rustc_interface::interface::Compiler>::enter
19: rustc_span::with_source_map
20: scoped_tls::ScopedKey<T>::set
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
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.57.0-nightly (aa8f2d432 2021-09-18) running on aarch64-apple-darwin
note: compiler flags: -C embed-bitcode=no -C split-debuginfo=unpacked -C debuginfo=2 -C incremental --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 `light`
Metadata
Metadata
Assignees
Labels
Area: Crate metadataCategory: This is a bug.Call for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustcIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Target: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 stateOperating system: macOSRelevant to the compiler team, which will review and decide on the PR/issue.Performance or correctness regression from stable to nightly.