-
Notifications
You must be signed in to change notification settings - Fork 644
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
Preview: 0.23.2 #1892
Preview: 0.23.2 #1892
Commits on Nov 29, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 4de694a - Browse repository at this point
Copy the full SHA 4de694aView commit details -
Configuration menu - View commit details
-
Copy full SHA for d7e073f - Browse repository at this point
Copy the full SHA d7e073fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d437d9 - Browse repository at this point
Copy the full SHA 1d437d9View commit details -
Handle unacceptable name gracefully in {User,Group}::from_name
Calling `unwrap` on the result of `CString::new` may cause the current thread to panic, which is a bit surprising undocumented behavior. It would be more reasonable to treat the erroneous name as a non-existing user or group.
Configuration menu - View commit details
-
Copy full SHA for 4502799 - Browse repository at this point
Copy the full SHA 4502799View commit details -
Configuration menu - View commit details
-
Copy full SHA for b9fa51f - Browse repository at this point
Copy the full SHA b9fa51fView commit details
Commits on Dec 2, 2022
-
When reading a value into an enum from getsockopt, we must validate it. Failing to do so can lead to UB for example with SOCK_PACKET on Linux. Perform the validation in GetSockOpt::get. Currently SockType is the only type that requires validation. Fixes nix-rust#1819
Configuration menu - View commit details
-
Copy full SHA for 3cda267 - Browse repository at this point
Copy the full SHA 3cda267View commit details -
Update use of libc::timespec to prepare for future libc version
This is a backport of 006fc6f. The original commit message follows: In a future release of the `libc` crate, `libc::timespec` will contain private padding fields on `*-linux-musl` targets and so the struct will no longer be able to be created using the literal initialization syntax. Update places where `libc::timespec` is created to first zero initialize the value and then update the `tv_sec` and `tv_nsec` fields manually. Many of these places are in `const fn`s so a helper function `zero_init_timespec()` is introduced to help with this as `std::mem::MaybeUninit::zeroed()` is not a `const` function. Some matches on `libc::timespec` are also updated to include a trailing `..` pattern which works when `libc::timespec` has additional, private fields as well as when it does not (like for `x86_64-unknown-linux-gnu`).
Configuration menu - View commit details
-
Copy full SHA for 89d46d5 - Browse repository at this point
Copy the full SHA 89d46d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 92acb4a - Browse repository at this point
Copy the full SHA 92acb4aView commit details -
Fix "unused_macro_rules" warnings with the latest nightly compiler.
It just so happens that Redox, OpenBSD, Dragonfly, and uclibc don't use some of the rules for two internal macros.
Configuration menu - View commit details
-
Copy full SHA for 3108e46 - Browse repository at this point
Copy the full SHA 3108e46View commit details -
Configuration menu - View commit details
-
Copy full SHA for b708d02 - Browse repository at this point
Copy the full SHA b708d02View commit details -
Configuration menu - View commit details
-
Copy full SHA for a9130d0 - Browse repository at this point
Copy the full SHA a9130d0View commit details -
Fix clippy warnings on nightly
Clippy is now smarter about detecting unnecessary casts and useless conversions, which means we need to be more explicit about when the conversions are needed for a subset of platforms. Required changes found by repeatedly running the following command against a list of the supported platforms. `xargs -t -I {} sh -c "cargo clippy -Zbuild-std --target {} --all-targets -- -D warnings || exit 255"` I removed the casts it complained about, and then restored them with an `#[allow]` if a later target needed the cast. .
Configuration menu - View commit details
-
Copy full SHA for 101a187 - Browse repository at this point
Copy the full SHA 101a187View commit details -
Configuration menu - View commit details
-
Copy full SHA for 93b9221 - Browse repository at this point
Copy the full SHA 93b9221View commit details -
Configuration menu - View commit details
-
Copy full SHA for 81d1fdc - Browse repository at this point
Copy the full SHA 81d1fdcView commit details -
Run a round of clippy to fix CI
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for c159066 - Browse repository at this point
Copy the full SHA c159066View commit details -
Configuration menu - View commit details
-
Copy full SHA for b9cc511 - Browse repository at this point
Copy the full SHA b9cc511View commit details -
Ignore doctests for unexported macros
Due to rust-lang/rust#97030, cargo test will fail to doctest macros unless they are exported, breaking the examples for libc_bitflags! and libc_enum!. Adds `ignore` to the examples for these macros to stop tests from failing.
Configuration menu - View commit details
-
Copy full SHA for 6d9ebf2 - Browse repository at this point
Copy the full SHA 6d9ebf2View commit details -
Configuration menu - View commit details
-
Copy full SHA for e8c3988 - Browse repository at this point
Copy the full SHA e8c3988View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0842aa4 - Browse repository at this point
Copy the full SHA 0842aa4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 55e15f0 - Browse repository at this point
Copy the full SHA 55e15f0View commit details -
Use the nightly toolchain for Redox
The latest redox-syscall crate requires at least Rust 1.59.0, but they don't define an MSRV policy. And the version given in the rust-toolchain file in the Redox repository doesn't work. So until they clarify their MSRV, use nightly. https://gitlab.redox-os.org/redox-os/syscall/-/commit/30f29c32952343412bb6c36c9fda136d26e9431f
Configuration menu - View commit details
-
Copy full SHA for 34e1ca2 - Browse repository at this point
Copy the full SHA 34e1ca2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 967143f - Browse repository at this point
Copy the full SHA 967143fView commit details