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

Clippy will warn on use bindgen::CargoCallbacks; regardless of the usage #2712

Open
Tracked by #172
latin-1 opened this issue Jan 8, 2024 · 1 comment
Open
Tracked by #172
Labels

Comments

@latin-1
Copy link

latin-1 commented Jan 8, 2024

I'm not sure if it should be reported here though.

Input C/C++ Header

Bindgen Invocation

use bindgen::CargoCallbacks;
//           ^^^^^^^^^^^^^^

bindgen::Builder::default()
    .header("input.h")
    .parse_callbacks(Box::new(CargoCallbacks::new()))
    .generate()
    .unwrap()

Actual Results

error: use of deprecated constant `bindgen::CargoCallbacks`: Use `CargoCallbacks::new()` instead. Please, check the documentation for further information.

Expected Results

No warnings.

@emilio
Copy link
Contributor

emilio commented Jan 12, 2024

Hmm yeah, that's rather unfortunate. Regression from #2653 I guess. I guess we could just do a breaking bump and remove the deprecated item. @pvdrz thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants