We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Running this command:
bazel run \ --@rules_rust//:rustfmt.toml=//:.rustfmt.toml \ @rules_rust//:rustfmt --verbose_failures
Fails with this error:
INFO: Analyzed target @rules_rust//:rustfmt (0 packages loaded, 0 targets configured). INFO: Found 1 target... INFO: Elapsed time: 0.414s, Critical Path: 0.28s INFO: 3 processes: 1 internal, 2 linux-sandbox. INFO: Build completed successfully, 3 total actions INFO: Running command line: bazel-bin/external/rules_rust/tools/rustfmt/rustfmt Loading: 0 packages loaded INFO: Empty results Loading: 1 packages loaded Loading: 0 packages loaded INFO: Empty results Loading: 0 packages loaded Loading: 0 packages loaded INFO: Empty results Loading: 0 packages loaded Loading: 0 packages loaded Loading: 0 packages loaded thread 'main' panicked at /rust/deps/ignore-0.4.20/src/gitignore.rs:227:9: path is expected to be under the root stack backtrace: 0: 0x7ff99859c756 - std::backtrace_rs::backtrace::libunwind::trace::h0c778a97139c185f at /rustc/89e2160c4ca5808657ed55392620ed1dbbce78d1/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5 1: 0x7ff99859c756 - std::backtrace_rs::backtrace::trace_unsynchronized::h49275f7f11d03db8 at /rustc/89e2160c4ca5808657ed55392620ed1dbbce78d1/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 2: 0x7ff99859c756 - std::sys_common::backtrace::_print_fmt::hc6d2af0f9113f87c at /rustc/89e2160c4ca5808657ed55392620ed1dbbce78d1/library/std/src/sys_common/backtrace.rs:68:5 3: 0x7ff99859c756 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h4269025391cee804 at /rustc/89e2160c4ca5808657ed55392620ed1dbbce78d1/library/std/src/sys_common/backtrace.rs:44:22 4: 0x7ff9985ef080 - core::fmt::rt::Argument::fmt::h47e13179bda442d0 at /rustc/89e2160c4ca5808657ed55392620ed1dbbce78d1/library/core/src/fmt/rt.rs:142:9 5: 0x7ff9985ef080 - core::fmt::write::h0ea06241e192b662 at /rustc/89e2160c4ca5808657ed55392620ed1dbbce78d1/library/core/src/fmt/mod.rs:1120:17 6: 0x7ff99859040f - std::io::Write::write_fmt::hada0a89348d2eeaf at /rustc/89e2160c4ca5808657ed55392620ed1dbbce78d1/library/std/src/io/mod.rs:1810:15 7: 0x7ff99859c534 - std::sys_common::backtrace::_print::h474b180b0f0cbfaa at /rustc/89e2160c4ca5808657ed55392620ed1dbbce78d1/library/std/src/sys_common/backtrace.rs:47:5 8: 0x7ff99859c534 - std::sys_common::backtrace::print::h292cdb95c9f3ed37 at /rustc/89e2160c4ca5808657ed55392620ed1dbbce78d1/library/std/src/sys_common/backtrace.rs:34:9 9: 0x7ff99859f2c7 - std::panicking::default_hook::{{closure}}::h215c742b61103c6e 10: 0x7ff99859f029 - std::panicking::default_hook::h57e29db39f9afc40 at /rustc/89e2160c4ca5808657ed55392620ed1dbbce78d1/library/std/src/panicking.rs:292:9 11: 0x7ff99535895c - std[8ca417bb7e88f110]::panicking::update_hook::<alloc[e6bcedfe09e584e0]::boxed::Box<rustc_driver_impl[f66e2583066ca4e1]::install_ice_hook::{closure #0}>>::{closure#0} 12: 0x7ff99859fa16 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::ha301741326637587 at /rustc/89e2160c4ca5808657ed55392620ed1dbbce78d1/library/alloc/src/boxed.rs:2029:9 13: 0x7ff99859fa16 - std::panicking::rust_panic_with_hook::hdec91a2b4b229c0a at /rustc/89e2160c4ca5808657ed55392620ed1dbbce78d1/library/std/src/panicking.rs:783:13 14: 0x562e05c693ad - std[8ca417bb7e88f110]::panicking::begin_panic::<&str>::{closure#0} 15: 0x562e05c3eb76 - std[8ca417bb7e88f110]::sys_common::backtrace::__rust_end_short_backtrace::<std[8ca417bb7e88f110]::panicking::begin_panic<&str>::{closure#0}, !> 16: 0x562e05c3ce1a - std[8ca417bb7e88f110]::panicking::begin_panic::<&str> 17: 0x562e05cd2a1d - <rustfmt_nightly[ce0b5b603490c2a8]::ignore_path::IgnorePathSet>::is_match 18: 0x562e05bb4e88 - <rustfmt_nightly[ce0b5b603490c2a8]::Session<std[8ca417bb7e88f110]::io::stdio::Stdout>>::format_input_inner::{closure#0} 19: 0x562e05bcb9f0 - rustfmt[e9ef42d9389088c1]::format_and_emit_report::<std[8ca417bb7e88f110]::io::stdio::Stdout> 20: 0x562e05bc9c4a - rustfmt[e9ef42d9389088c1]::execute 21: 0x562e05bc52a4 - rustfmt[e9ef42d9389088c1]::main 22: 0x562e05baf443 - std[8ca417bb7e88f110]::sys_common::backtrace::__rust_begin_short_backtrace::<fn(), ()> 23: 0x562e05bb1639 - std[8ca417bb7e88f110]::rt::lang_start::<()>::{closure#0} 24: 0x7ff998580c11 - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::hf714efa6d38815ab at /rustc/89e2160c4ca5808657ed55392620ed1dbbce78d1/library/core/src/ops/function.rs:284:13 25: 0x7ff998580c11 - std::panicking::try::do_call::h8d7fa009cdec4f0a at /rustc/89e2160c4ca5808657ed55392620ed1dbbce78d1/library/std/src/panicking.rs:552:40 26: 0x7ff998580c11 - std::panicking::try::h8d0a635504a1d66a at /rustc/89e2160c4ca5808657ed55392620ed1dbbce78d1/library/std/src/panicking.rs:516:19 27: 0x7ff998580c11 - std::panic::catch_unwind::h4dcb3e51b0164860 at /rustc/89e2160c4ca5808657ed55392620ed1dbbce78d1/library/std/src/panic.rs:142:14 28: 0x7ff998580c11 - std::rt::lang_start_internal::{{closure}}::h919a24d244c97b27 at /rustc/89e2160c4ca5808657ed55392620ed1dbbce78d1/library/std/src/rt.rs:148:48 29: 0x7ff998580c11 - std::panicking::try::do_call::hcff546c073fe5640 at /rustc/89e2160c4ca5808657ed55392620ed1dbbce78d1/library/std/src/panicking.rs:552:40 30: 0x7ff998580c11 - std::panicking::try::h16b0c3c9d52ac526 at /rustc/89e2160c4ca5808657ed55392620ed1dbbce78d1/library/std/src/panicking.rs:516:19 31: 0x7ff998580c11 - std::panic::catch_unwind::haae4436877e1de50 at /rustc/89e2160c4ca5808657ed55392620ed1dbbce78d1/library/std/src/panic.rs:142:14 32: 0x7ff998580c11 - std::rt::lang_start_internal::hd65f8c7805da0ae2 at /rustc/89e2160c4ca5808657ed55392620ed1dbbce78d1/library/std/src/rt.rs:148:20 33: 0x562e05bccc05 - main 34: 0x7ff992347c8a - <unknown> 35: 0x7ff992347d45 - __libc_start_main 36: 0x562e05b9ed89 - <unknown> 37: 0x0 - <unknown> error: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: https://github.com/rust-lang/rustfmt/issues/new?labels=bug note: please attach the file at `/home/aaron/aaronmondal/nativelink/rustc-ice-2024-01-18T12_48_31-493298.txt` to your bug report query stack during panic: end of query stack
The text was updated successfully, but these errors were encountered:
Unbreak manual rustfmt invocations via Bazel
368b28c
Fixes TraceMachina#618
Unbreak manual rustfmt invocations via Bazel (#617)
f39e275
Fixes #618
aaronmondal
Successfully merging a pull request may close this issue.
Running this command:
Fails with this error:
The text was updated successfully, but these errors were encountered: