Skip to content

Fix build error with backtrace feature enabled#309

Merged
eminence merged 1 commit intoeminence:masterfrom
mbrubeck:backtrace
May 15, 2024
Merged

Fix build error with backtrace feature enabled#309
eminence merged 1 commit intoeminence:masterfrom
mbrubeck:backtrace

Conversation

@mbrubeck
Copy link
Contributor

The procfs/backtrace feature needs the procfs-core/backtrace feature.

@mbrubeck
Copy link
Contributor Author

This fixes the following build error:

$ cargo build -p procfs --features backtrace
   Compiling procfs v0.16.0 (/home/mbrubeck/src/tmp/procfs/procfs)
error[E0560]: struct `procfs_core::InternalError` has no field named `backtrace`
  --> procfs/src/process/namespaces.rs:24:43
   |
24 | ..._err(|_| build_internal_error!(format!("Unable to get ns dir entry")))?;
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `procfs_core::InternalError` does not have this field
   |
   = note: all struct fields are already assigned
   = note: this error originates in the macro `build_internal_error` (in Nightly builds, run with -Z macro-backtrace for more info)

reported at https://users.rust-lang.org/t/ant-compile-memflow-qemu-crate/111463

@eminence
Copy link
Owner

I'm slightly embarrassed this basic issue wasn't caught by CI. I'll try to get this released soon. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants