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

Introduce ParseCallbacks::header_file #2653

Merged
merged 7 commits into from
Oct 2, 2023

Conversation

pvdrz
Copy link
Contributor

@pvdrz pvdrz commented Sep 27, 2023

Fix #2643


impl CargoCallbacks {
/// Create a new `CargoCallbacks` value.
pub fn new() -> Self {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could make this const, and use new in the deprecated const as well?

Copy link
Contributor Author

@pvdrz pvdrz Oct 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit conservative with const fns as removing the const in the future will always be a breaking change and I'm not sure if new fields added in the future could be initialized as consts or not.

@pvdrz pvdrz changed the title Introduce ParseCallbacks::input_file Introduce ParseCallbacks::header_file Oct 2, 2023
@pvdrz pvdrz merged commit 795d900 into rust-lang:main Oct 2, 2023
27 checks passed
@pvdrz pvdrz deleted the pvdrz-input-file-callback branch October 2, 2023 20:24
trevyn added a commit to trevyn/librclone that referenced this pull request Nov 27, 2023
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.

CargoCallbacks does not trigger rerun if the wrapper header changes
2 participants