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

Error with cargo-generate #99456

Closed
Dajamante opened this issue Jul 19, 2022 · 2 comments
Closed

Error with cargo-generate #99456

Dajamante opened this issue Jul 19, 2022 · 2 comments
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@Dajamante
Copy link
Contributor

Code

cargo install cargo-generate RUST_BACKTRACE=1

Meta

rustc --version --verbose:

rustc 1.64.0-nightly (23e21bdd2 2022-07-15)
binary: rustc
commit-hash: 23e21bdd25026e2839ebe946c2a937c1904887d2
commit-date: 2022-07-15
host: x86_64-apple-darwin
release: 1.64.0-nightly
LLVM version: 14.0.6

Error output

thread 'rustc' panicked at 'index out of bounds: the len is 1 but the index is 2', compiler/rustc_builtin_macros/src/format.rs:1001:28

Backtrace

stack backtrace:
   0:        0x108484ca4 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h4d86da9d3736a52d
   1:        0x1084dc68b - core::fmt::write::h4100c91e34b46860
   2:        0x10847745c - std::io::Write::write_fmt::hbebacfc28bcb7e63
   3:        0x108487d77 - std::panicking::default_hook::{{closure}}::hd1401e79e66368b2
   4:        0x108487a80 - std::panicking::default_hook::h0d3c0f46f3eb5b87
   5:        0x10e532e5a - rustc_driver[73f94c78c1d7d2d0]::DEFAULT_HOOK::{closure#0}::{closure#0}
   6:        0x1084884ad - std::panicking::rust_panic_with_hook::h79b08049599e7781
   7:        0x108488353 - std::panicking::begin_panic_handler::{{closure}}::h6759a4e79ddd7d62
   8:        0x108485157 - std::sys_common::backtrace::__rust_end_short_backtrace::ha49d7b96ae0f3fdf
   9:        0x10848802d - _rust_begin_unwind
  10:        0x1085079f3 - core::panicking::panic_fmt::hc9b2ac84f45a78f2
  11:        0x108507946 - core::panicking::panic_bounds_check::hd73082592787ac04
  12:        0x110fbe272 - rustc_builtin_macros[4c4cf493c0067ce6]::format::expand_preparsed_format_args
  13:        0x110fb69db - rustc_builtin_macros[4c4cf493c0067ce6]::format::expand_format_args_impl
  14:        0x1124a6e44 - <rustc_expand[219fa54abb38e138]::expand::MacroExpander>::fully_expand_fragment
  15:        0x1124a615f - <rustc_expand[219fa54abb38e138]::expand::MacroExpander>::expand_crate
  16:        0x10e5f38d6 - <rustc_session[6a4c6fef4db8af12]::session::Session>::time::<core[4765b6e14de13592]::result::Result<rustc_ast[941672277c0de11b]::ast::Crate, rustc_errors[6b560b2f72f0dc1a]::ErrorGuaranteed>, rustc_interface[8a17d161f34c737e]::passes::configure_and_expand::{closure#1}>
  17:        0x10e5eaa23 - <rustc_interface[8a17d161f34c737e]::passes::boxed_resolver::BoxedResolver>::access::<<rustc_interface[8a17d161f34c737e]::queries::Queries>::expansion::{closure#0}::{closure#0}, core[4765b6e14de13592]::result::Result<rustc_ast[941672277c0de11b]::ast::Crate, rustc_errors[6b560b2f72f0dc1a]::ErrorGuaranteed>>
  18:        0x10e5cc526 - <rustc_interface[8a17d161f34c737e]::queries::Queries>::expansion
  19:        0x10e4adef1 - <rustc_interface[8a17d161f34c737e]::interface::Compiler>::enter::<rustc_driver[73f94c78c1d7d2d0]::run_compiler::{closure#1}::{closure#2}, core[4765b6e14de13592]::result::Result<core[4765b6e14de13592]::option::Option<rustc_interface[8a17d161f34c737e]::queries::Linker>, rustc_errors[6b560b2f72f0dc1a]::ErrorGuaranteed>>
  20:        0x10e4a37f8 - rustc_span[b3c07a240d8aa70d]::with_source_map::<core[4765b6e14de13592]::result::Result<(), rustc_errors[6b560b2f72f0dc1a]::ErrorGuaranteed>, rustc_interface[8a17d161f34c737e]::interface::create_compiler_and_run<core[4765b6e14de13592]::result::Result<(), rustc_errors[6b560b2f72f0dc1a]::ErrorGuaranteed>, rustc_driver[73f94c78c1d7d2d0]::run_compiler::{closure#1}>::{closure#1}>
  21:        0x10e4cdcf6 - rustc_interface[8a17d161f34c737e]::interface::create_compiler_and_run::<core[4765b6e14de13592]::result::Result<(), rustc_errors[6b560b2f72f0dc1a]::ErrorGuaranteed>, rustc_driver[73f94c78c1d7d2d0]::run_compiler::{closure#1}>
  22:        0x10e4a0825 - <scoped_tls[bbf5cad6a1edfb51]::ScopedKey<rustc_span[b3c07a240d8aa70d]::SessionGlobals>>::set::<rustc_interface[8a17d161f34c737e]::interface::run_compiler<core[4765b6e14de13592]::result::Result<(), rustc_errors[6b560b2f72f0dc1a]::ErrorGuaranteed>, rustc_driver[73f94c78c1d7d2d0]::run_compiler::{closure#1}>::{closure#0}, core[4765b6e14de13592]::result::Result<(), rustc_errors[6b560b2f72f0dc1a]::ErrorGuaranteed>>
  23:        0x10e4aa469 - std[51cc303cb6d2584d]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[8a17d161f34c737e]::util::run_in_thread_pool_with_globals<rustc_interface[8a17d161f34c737e]::interface::run_compiler<core[4765b6e14de13592]::result::Result<(), rustc_errors[6b560b2f72f0dc1a]::ErrorGuaranteed>, rustc_driver[73f94c78c1d7d2d0]::run_compiler::{closure#1}>::{closure#0}, core[4765b6e14de13592]::result::Result<(), rustc_errors[6b560b2f72f0dc1a]::ErrorGuaranteed>>::{closure#0}, core[4765b6e14de13592]::result::Result<(), rustc_errors[6b560b2f72f0dc1a]::ErrorGuaranteed>>
  24:        0x10e4cea01 - <<std[51cc303cb6d2584d]::thread::Builder>::spawn_unchecked_<rustc_interface[8a17d161f34c737e]::util::run_in_thread_pool_with_globals<rustc_interface[8a17d161f34c737e]::interface::run_compiler<core[4765b6e14de13592]::result::Result<(), rustc_errors[6b560b2f72f0dc1a]::ErrorGuaranteed>, rustc_driver[73f94c78c1d7d2d0]::run_compiler::{closure#1}>::{closure#0}, core[4765b6e14de13592]::result::Result<(), rustc_errors[6b560b2f72f0dc1a]::ErrorGuaranteed>>::{closure#0}, core[4765b6e14de13592]::result::Result<(), rustc_errors[6b560b2f72f0dc1a]::ErrorGuaranteed>>::{closure#1} as core[4765b6e14de13592]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  25:        0x108491187 - std::sys::unix::thread::Thread::new::thread_start::hae41e3c2653ceb35
  26:     0x7fff2033e950 - __pthread_start

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

@Dajamante Dajamante added C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jul 19, 2022
@Dajamante
Copy link
Contributor Author

Fixed some days ago already.

@ehuss
Copy link
Contributor

ehuss commented Jul 19, 2022

Thanks for the report! Closing as a duplicate of #99261. This should be fixed by #99263 and should be fixed in the latest nightly.

@ehuss ehuss closed this as not planned Won't fix, can't repro, duplicate, stale Jul 19, 2022
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. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

2 participants