Skip to content

fixup: use #crate_root and snafu::ErrorChain

4d7d341
Select commit
Loading
Failed to load commit list.
Draft

feat: show sources on alternate display #520

fixup: use #crate_root and snafu::ErrorChain
4d7d341
Select commit
Loading
Failed to load commit list.
Cirrus CI / Rust Nightly failed Oct 6, 2025 in 31s

Task Summary

Instruction primary_test failed in 00:09

Details

⚠️ Not enough compute credits to prioritize tasks!

✅ 00:00 clone
✅ 00:01 cargo
✅ 00:17 setup
❌ 00:09 primary_test

   Compiling quote v1.0.41
   Compiling unicode-ident v1.0.19
   Compiling syn v2.0.106
   Compiling heck v0.5.0
   Compiling snafu-derive v0.8.9 (/tmp/cirrus-ci-build/snafu-derive)
   Compiling snafu v0.8.9 (/tmp/cirrus-ci-build)
error[E0277]: `T` doesn't implement `Debug`
  --> tests/no_context.rs:68:21
   |
68 |     #[derive(Debug, Snafu)]
   |                     ^^^^^ the trait `Debug` is not implemented for `T`
   |
note: required for `GenericError<T, U>` to implement `Debug`
  --> tests/no_context.rs:68:14
   |
68 |     #[derive(Debug, Snafu)]
   |              ^^^^^ unsatisfied trait bound introduced in this `derive` macro
note: required for `GenericError<T, U>` to implement `snafu::Error`
  --> tests/no_context.rs:68:21
   |
68 |     #[derive(Debug, Snafu)]
   |                     ^^^^^ unsatisfied trait bound introduced in this `derive` macro
   = note: required for the cast from `&GenericError<T, U>` to `&dyn snafu::Error`
   = note: this error originates in the derive macro `Snafu` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider restricting type parameter `T` with trait `Debug`
   |
69 |     enum GenericError<T: std::fmt::Debug, U = i32> {
   |                        +++++++++++++++++

error[E0277]: `U` doesn't implement `Debug`
  --> tests/no_context.rs:68:21
   |
68 |     #[derive(Debug, Snafu)]
   |                     ^^^^^ the trait `Debug` is not implemented for `U`
   |
note: required for `GenericError<T, U>` to implement `Debug`
  --> tests/no_context.rs:68:14
   |
68 |     #[derive(Debug, Snafu)]
   |              ^^^^^ unsatisfied trait bound introduced in this `derive` macro
note: required for `GenericError<T, U>` to implement `snafu::Error`
  --> tests/no_context.rs:68:21
   |
68 |     #[derive(Debug, Snafu)]
   |                     ^^^^^ unsatisfied trait bound introduced in this `derive` macro
   = note: required for the cast from `&GenericError<T, U>` to `&dyn snafu::Error`
   = note: this error originates in the derive macro `Snafu` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider restricting type parameter `U` with trait `Debug`
   |
69 |     enum GenericError<T, U: std::fmt::Debug = i32> {
   |                           +++++++++++++++++

For more information about this error, try `rustc --explain E0277`.
error: could not compile `snafu` (test "no_context") due to 2 previous errors

Exit status: 101