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

Rust 1.57 #586

Merged
merged 8 commits into from
Dec 3, 2021
Merged

Rust 1.57 #586

merged 8 commits into from
Dec 3, 2021

Conversation

ojeda
Copy link
Member

@ojeda ojeda commented Dec 2, 2021

Please see the individual commits.

I am particularly curious why vec! was compiling in 1.56.0 (@bjorn3?).

v2:

@wedsonaf Please take a look at the sysctl change.

Fixes #585.

@bjorn3
Copy link
Member

bjorn3 commented Dec 2, 2021

In particular, I am particularly curious why vec! was compiling in 1.56.0 (@bjorn3?).

Probably caused by rust-lang/rust#89030 and rust-lang/rust#89036. I suspect previously it would have failed to compile if the function was actually codegened, just not when defined. Is Sysctl::register used anywhere?

@ojeda
Copy link
Member Author

ojeda commented Dec 2, 2021

That seems to be the case indeed -- I just force-called it from 1.56.0 and got the error. Thanks!

rust/build_error.rs Outdated Show resolved Hide resolved
Suggested-by: bjorn3 <[email protected]>
Suggested-by: Gary Guo <[email protected]>
Signed-off-by: Miguel Ojeda <[email protected]>
`vec!` may allocate, which in turn requires the `exchange_malloc`
`lang_item`. For some reason, in 1.56.0 this compiled.

Signed-off-by: Miguel Ojeda <[email protected]>
This triggered a new Clippy lint in 1.57.0.

Signed-off-by: Miguel Ojeda <[email protected]>
Signed-off-by: Miguel Ojeda <[email protected]>
Signed-off-by: Miguel Ojeda <[email protected]>
Copy link

@wedsonaf wedsonaf left a comment

Choose a reason for hiding this comment

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

sysctl changes lgtm.

@ojeda ojeda merged commit cfeaf05 into Rust-for-Linux:rust Dec 3, 2021
@ojeda ojeda deleted the rust-1.57 branch December 3, 2021 01:17
@ojeda
Copy link
Member Author

ojeda commented Dec 3, 2021

Thanks everyone!

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

Successfully merging this pull request may close these issues.

Update to Rust 1.57.0!
5 participants