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

Fix build error with backtrace feature enabled #309

Merged
merged 1 commit into from
May 15, 2024

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!

@eminence eminence merged commit c6adbe0 into eminence:master May 15, 2024
6 checks passed
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