This repository was archived by the owner on Apr 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
chore: update dependency rust to v1.68.2 #75
Open
renovate
wants to merge
1
commit into
main
Choose a base branch
from
renovate/rust-1.x
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f2bf76b to
a13a3e2
Compare
a13a3e2 to
e5846e4
Compare
e5846e4 to
8949f02
Compare
8949f02 to
7821327
Compare
7821327 to
2ab5e56
Compare
2ab5e56 to
23529fe
Compare
23529fe to
8a7ab3e
Compare
8a7ab3e to
a7abb91
Compare
a7abb91 to
c8f188c
Compare
c8f188c to
979c837
Compare
979c837 to
943a035
Compare
943a035 to
3b7ee01
Compare
3b7ee01 to
ad451d5
Compare
ad451d5 to
29dc1b9
Compare
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.58.1->1.68.2Release Notes
rust-lang/rust
v1.68.2Compare Source
===========================
The key was rotated by GitHub
on 2023-03-24 after the old one leaked.
This will prevent Cargo from accepting the leaked key even when trusted by
the system.
@revokedand a better error message for@cert-authorityin Cargo's SSH host key verificationv1.68.1Compare Source
===========================
This was introduced by enabling ThinLTO for the distributed rustc which led
to miscompilations in the resulting binary. Currently this is believed to be
limited to the -Zdylib-lto flag used for rustc compilation, rather than a
general bug in ThinLTO, so only rustc artifacts should be affected.
$prefix-clangasclangin linker detection codev1.68.0Compare Source
==========================
Language
This allows usage of
allocon stable without requiring thedefinition of a handler for allocation failure. Defining custom handlers is still unstable.
efiapicalling convention.Compiler
bindings_with_variant_nameto deny-by-defaultarmv7-sony-vita-newlibeabihfas a tier 3 targetLibraries
std::task::Context!Send and !SyncOnceWith&RepeatWithVec -> VecDequeconversion guaranteeStabilized APIs
{core,std}::pin::pin!impl From<bool> for {f32,f64}std::path::MAIN_SEPARATOR_STRimpl DerefMut for PathBufThese APIs are now stable in const contexts:
VecDeque::newCargo
cargo build --verbosetells you more about why it recompiles.net.git-fetch-with-clioption enabledMisc
Compatibility Notes
SEMICOLON_IN_EXPRESSIONS_FROM_MACROSto future-incompat report--targetby default for-Zgcc-ld=lldon wasmIMPLIED_BOUNDS_ENTAILMENTto Deny + ReportNowstd::task::Contextno longer implements Send and SyncInternal Changes
These changes do not affect any public interfaces of Rust, but they represent
significant improvements to the performance or internals of rustc and related
tools.
x86_64-pc-windows-msvcx86_64-apple-darwinv1.67.1Compare Source
===========================
clippy::uninlined_format_argsto pedantic.v1.67.0Compare Source
==========================
Language
Sizedpredicates coinductive, allowing cycles.#[must_use]annotations onasync fnalso affect theFuture::Output.cfg(FALSE).Compiler
Corcdecl.verbatim.Added, updated, and removed targets:
powerpc64-ibm-aix.mipsel-sony-psx.no_stdtargets for the QNX Neutrino RTOS,aarch64-unknown-nto-qnx710andx86_64-pc-nto-qnx710.aarch64-unknown-uefi,i686-unknown-uefi, andx86_64-unknown-uefi.linuxkerneltargets (not used by the actual kernel).Refer to Rust's [platform support page][platform-support-doc]
for more information on Rust's tiered platform support.
Libraries
crossbeam-channelintostd::sync::mpsc.EqandHashforControlFlow.compiler_builtinswith-C panic=abort.Stabilized APIs
{integer}::checked_ilog{integer}::checked_ilog2{integer}::checked_ilog10{integer}::ilog{integer}::ilog2{integer}::ilog10NonZeroU*::ilog2NonZeroU*::ilog10NonZero*::BITSThese APIs are now stable in const contexts:
char::from_u32char::from_digitchar::to_digitcore::char::from_u32core::char::from_digitCompatibility Notes
repr(Rust)types now groups m*2^n-sized fields withequivalently aligned ones.
This is intended to be an optimization, but it is also known to increase type
sizes in a few cases for the placement of enum tags. As a reminder, the layout
of
repr(Rust)types is an implementation detail, subject to change.This makes it consistent with the rest of floating point formatting that
rounds ties toward even digits.
&&and||will now drop temporaries from their sub-expressions inevaluation order, left-to-right.
Previously, it was "twisted" such that the first expression dropped its
temporaries last, after all of the other expressions dropped in order.
This has been a future-compatibility warning since 1.20.0.
-export-dynamictowasm-ld.mainis now mangled as__main_voidonwasm32-wasi.with the same index URL.
Internal Changes
These changes do not affect any public interfaces of Rust, but they represent
significant improvements to the performance or internals of rustc and related
tools.
v1.66.1Compare Source
===========================
v1.66.0Compare Source
==========================
Language
repr(Int)enumsmust_useonimpl Traitfor supertraitsThis makes
impl ExactSizeIteratorrespect the existing#[must_use]annotation onIterator...=Xin patternsclippy::for_loops_over_fallibleslint into rustcsymoperands in inline assemblyThis is a soundness fix which may break code that was erroneously relying on this behavior.
Compiler
information on Rust's tiered platform support.
Libraries
#[derive(Default)]on a generic#[default]enum adding unnecessaryDefaultboundsStabilized APIs
proc_macro::Span::source_textuX::{checked_add_signed, overflowing_add_signed, saturating_add_signed, wrapping_add_signed}iX::{checked_add_unsigned, overflowing_add_unsigned, saturating_add_unsigned, wrapping_add_unsigned}iX::{checked_sub_unsigned, overflowing_sub_unsigned, saturating_sub_unsigned, wrapping_sub_unsigned}BTreeSet::{first, last, pop_first, pop_last}BTreeMap::{first_key_value, last_key_value, first_entry, last_entry, pop_first, pop_last}AsFdimplementations for stdio lock types on WASI.impl TryFrom<Vec<T>> for Box<[T; N]>core::hint::black_boxDuration::try_from_secs_{f32,f64}Option::unzipstd::os::fdRustdoc
Cargo
cargo removeto remove dependencies from Cargo.tomlcargo publishnow waits for the new version to be downloadable before exitingSee detailed release notes for more.
Compatibility Notes
ProceduralMasqueradehack to older versions ofrental__heap_baseand__data_endon wasm32-wasi.__wasm_init_memoryon WebAssembly.__tls_*on wasm32-unknown-unknown.libresolvin libstd on Darwinlibstdno longer pull inlibiconv.dylibon Darwin)This is a soundness fix which may break code that was erroneously relying on this behavior.
order_dependent_trait_objectsshow up in future-breakage reportsInternal Changes
These changes do not affect any public interfaces of Rust, but they represent
significant improvements to the performance or internals of rustc and related
tools.
v1.65.0Compare Source
==========================
Language
ascasts of enums with#[non_exhaustive]variantslet elselet_underscore_dropandlet_underscore_lockfrom Clippybreaking from arbitrary labeled blocks ("label-break-value")Usage of
MaybeUninitis the correct way to work with uninitialized memory.Dropimpl on foreign ADTsCompiler
special_module_namelint-C instrument-coverageNew targets:
information on Rust's tiered platform support.
Libraries
PartialEq::nein derive(PartialEq)BCRYPT_RNG_ALG_HANDLEby defaultSystemwith direct system allocator callsstd::layout::Layoutsize must not overflowisize::MAXwhen rounded up toalignThis also changes the safety conditions on
Layout::from_size_align_unchecked.Stabilized APIs
std::backtrace::BacktraceBound::as_refstd::io::read_to_string<*const T>::cast_mut<*mut T>::cast_constThese APIs are now stable in const contexts:
<*const T>::offset_from<*mut T>::offset_fromCargo
This slightly optimizes job scheduling by Cargo, with typically small improvements on larger crate graph builds.
Compatibility Notes
std::layout::Layoutsize must not overflowisize::MAXwhen rounded up toalign.This also changes the safety conditions on
Layout::from_size_align_unchecked.PollFnnow only implementsUnpinif the closure isUnpin.This is a possible breaking change if users were relying on the blanket unpin implementation.
See discussion on the PR for details of why this change was made.
This is a backwards-incompatible change to the standard library's surface
area, but is unlikely to affect real world usage.
This behavior was unintentionally changed in 1.64.0, and this release reverts that change by making this an error again.
#![cfg_attr(..., crate_type = ...)]to set the crate typeThis strengthens the forward compatibility lint deprecated_cfg_attr_crate_type_name to deny.
llvm-has-rust-patchesallows setting the build system to treat the LLVM as having Rust-specific patchesThis option may need to be set for distributions that are building Rust with a patched LLVM via
llvm-config, not the built-in LLVM.lld. For more information, see issue 102754.Internal Changes
These changes do not affect any public interfaces of Rust, but they represent
significant improvements to the performance or internals of rustc and related
tools.
x.shandx.ps1shell scriptsThis provides a 3-10% improvement in compiletimes for real world crates. See perf results.
v1.64.0Compare Source
===========================
Language
&Tif every byte inTis inside anUnsafeCellunused_tuple_struct_fields, similar to the existing warning for unused struct fields. This lint will become warn-by-default in the future.Compiler
information on Rust's tiered platform support.
#[used]as llvm.compiler.used for ELF targets--diagnostic-widthcompiler flag to define the terminal width.rust-lldfor iOS, tvOS and watchOSLibraries
write!orwriteln!into anOsString: Implementfmt::WriteforOsStringFusedIteratorforstd::net::[Into]Incomingimpl<T: AsRawFd> AsRawFd for {Arc,Box}<T>ptr::copyandptr::swapare doing untyped copiesavailable_parallelismmem::uninitializedStabilized APIs
future::IntoFuturefuture::poll_fntask::ready!num::NonZero*::checked_mulnum::NonZero*::checked_pownum::NonZero*::saturating_mulnum::NonZero*::saturating_pownum::NonZeroI*::absnum::NonZeroI*::checked_absnum::NonZeroI*::overflowing_absnum::NonZeroI*::saturating_absnum::NonZeroI*::unsigned_absnum::NonZeroI*::wrapping_absnum::NonZeroU*::checked_addnum::NonZeroU*::checked_next_power_of_twonum::NonZeroU*::saturating_addos::unix::process::CommandExt::process_groupos::windows::fs::FileTypeExt::is_symlink_diros::windows::fs::FileTypeExt::is_symlink_fileThese types were previously stable in
std::ffi, but are now also available incoreandalloc:core::ffi::CStrcore::ffi::FromBytesWithNulErroralloc::ffi::CStringalloc::ffi::FromVecWithNulErroralloc::ffi::IntoStringErroralloc::ffi::NulErrorThese types were previously stable in
std::os::raw, but are now also available incore::ffiandstd::ffi:ffi::c_charffi::c_doubleffi::c_floatffi::c_intffi::c_longffi::c_longlongffi::c_scharffi::c_shortffi::c_ucharffi::c_uintffi::c_ulongffi::c_ulonglongffi::c_ushortThese APIs are now usable in const contexts:
slice::from_raw_partsCargo
can be centralized in one place. See
workspace.packageand
workspace.dependenciesfor more details on how to define these common settings.
--targetflags to build formultiple targets at once, and the
build.targetconfig option may now take an array of multiple targets.
--jobsargument can now take a negative number to count backwards fromthe max CPUs.
cargo addwill now updateCargo.lock.--crate-typeflag to
cargo rustcto override the crate type.when using a hash in the
revfield.Misc
rust-analyzerrustup component is now available on the stable channel.Compatibility Notes
-linux-gnutargets are now at least kernel 3.2 and glibc 2.17, for targets that previously supported older versions: Increase the minimum linux-gnu versionstransmute_copy'sUis not larger thanTBTreeMapwas fixed that allowed data it was borrowing to be dropped before the container.thumbv6m-none-eabitarget, some incorrectasm!statements were erroneously accepted if they used the high registers (r8 to r14) as an input/output operand. This is no longer accepted.impl Traitwas accidentally accepted as the associated type value of return-positionimpl Trait, without fulfilling all the trait bounds of that associated type, as long as the hidden type satisfies said bounds. This has been fixed.Internal Changes
These changes do not affect any public interfaces of Rust, but they represent
significant improvements to the performance or internals of rustc and related
tools.
#[allow(unused_qualifications)]in generatedderiveimplementationsderive(Debug)Vec::insertfor the case whereindex == len.v1.63.0Compare Source
==========================
Language
impl Traitargs.cenum_impl_drop_castwarnings deny-by-default.-C panic=abortis used regardless of declared ABI.Compiler
bundlenative library modifier, also removing thedeprecated
static-nobundlelinking kind.* Refer to Rust's [platform support page][platform-support-doc] for more
information on Rust's tiered platform support.
Libraries
Copy,Clone,PartialEqandEqforcore::fmt::Alignment.ptr::nullandnull_mutto all thin (including extern) types.impl Read and Write for VecDeque<u8>.[OsStr]::join.Hashforcore::alloc::Layout.OsString.std::mem::needs_dropaccept?Sized.impl Termination for Infallibleand then make theResultimpls ofTerminationmore generic./proc/self/mem.Stabilized APIs
array::from_fn][array::from_fn]Box::into_pin][Box::into_pin]BinaryHeap::try_reserve][BinaryHeap::try_reserve]BinaryHeap::try_reserve_exact][BinaryHeap::try_reserve_exact]OsString::try_reserve][OsString::try_reserve]OsString::try_reserve_exact][OsString::try_reserve_exact]PathBuf::try_reserve][PathBuf::try_reserve]PathBuf::try_reserve_exact][PathBuf::try_reserve_exact]Path::try_exists][Path::try_exists]Ref::filter_map][Ref::filter_map]RefMut::filter_map][RefMut::filter_map]NonNull::<[T]>::lenToOwned::clone_into][ToOwned::clone_into]Ipv6Addr::to_ipv4_mapped][Ipv6Addr::to_ipv4_mapped]unix::io::AsFd][unix::io::AsFd]unix::io::BorrowedFd<'fd>][unix::io::BorrowedFd<'fd>]unix::io::OwnedFd][unix::io::OwnedFd]windows::io::AsHandle][windows::io::AsHandle]windows::io::BorrowedHandle<'handle>][windows::io::BorrowedHandle<'handle>]windows::io::OwnedHandle][windows::io::OwnedHandle]windows::io::HandleOrInvalid][windows::io::HandleOrInvalid]windows::io::HandleOrNull][windows::io::HandleOrNull]windows::io::InvalidHandleError][windows::io::InvalidHandleError]windows::io::NullHandleError][windows::io::NullHandleError]windows::io::AsSocket][windows::io::AsSocket]windows::io::BorrowedSocket<'handle>][windows::io::BorrowedSocket<'handle>]windows::io::OwnedSocket][windows::io::OwnedSocket]thread::scope][thread::scope]thread::Scope][thread::Scope]thread::ScopedJoinHandle][thread::ScopedJoinHandle]These APIs are now usable in const contexts:
array::from_ref][array::from_ref]slice::from_ref][slice::from_ref]intrinsics::copy][intrinsics::copy]intrinsics::copy_nonoverlapping][intrinsics::copy_nonoverlapping]<*const T>::copy_to][<*const T>::copy_to]<*const T>::copy_to_nonoverlapping][<*const T>::copy_to_nonoverlapping]<*mut T>::copy_to][<*mut T>::copy_to]<*mut T>::copy_to_nonoverlapping][<*mut T>::copy_to_nonoverlapping]<*mut T>::copy_from][<*mut T>::copy_from]<*mut T>::copy_from_nonoverlapping][<*mut T>::copy_from_nonoverlapping]str::from_utf8][str::from_utf8]Utf8Error::error_len][Utf8Error::error_len]Utf8Error::valid_up_to][Utf8Error::valid_up_to]Condvar::new][Condvar::new]Mutex::new][Mutex::new]RwLock::new][RwLock::new]Cargo
--config pathcommand-line argument.CARGO_PKG_RUST_VERSION.Compatibility Notes
#[link]attributes are now checked more strictly, which may introduceerrors for invalid attribute arguments that were previously ignored.
Duration. The convertedduration can differ slightly from what it was.
Internal Changes
These changes provide no direct user facing benefits, but represent significant
improvements to the internals and overall performance of rustc
and related tools.
v1.62.1Compare Source
==========================
Rust 1.62.1 addresses a few recent regressions in the compiler and standard
library, and also mitigates a CPU vulnerability on Intel SGX.
impl Traitreturn types.async fnlifetimes.x86_64-fortanix-unknown-sgxtarget added a mitigation for theMMIO stale data vulnerability, advisory INTEL-SA-00615.
v1.62.0Compare Source
==========================
Language
#[derive(Default)]on enums with a#[default]variantconstfunctions may now specifyextern "C"orextern "Rust"Compiler
unaligned_referenceslint deny-by-defaultThis lint is also a future compatibility lint, and is expected to eventually
become a hard error.
#[thread_local]attribute on non-static itemsaarch64-pc-windows-gnullvmandx86_64-pc-windows-gnullvmtargets*x86_64-unknown-nonetarget to Tier 2** Refer to Rust's [platform support page][platform-support-doc] for more
information on Rust's tiered platform support.
Libraries
Stabilized APIs
bool::then_some][bool::then_some]f32::total_cmp][f32::total_cmp]f64::total_cmp][f64::total_cmp]Stdin::lines][Stdin::lines]windows::CommandExt::raw_arg][windows::CommandExt::raw_arg]impl<T: Default> Default for AssertUnwindSafe<T>][impl<T: Default> Default for AssertUnwindSafe]From<Rc<str>> for Rc<[u8]>From<Arc<str>> for Arc<[u8]>FusedIterator for EncodeWide][FusedIterator for EncodeWide]Clippy
Cargo
cargo addcommand for adding dependencies toCargo.tomlfromthe command-line.
docs
name@versionsyntax in addition to theprevious
name:versionto align with the behavior incargo addand othertools.
cargo installandcargo yankalso now support this syntax so theversion does not need to passed as a separate flag.
gitandregistrydirectories in Cargo's home directory (usually~/.cargo) are now marked as cache directories so that they are notincluded in backups or content indexing (on Windows).
@argfile support, which will use "response files" if thecommand-line to
rustcexceeds the operating system's limit.Compatibility Notes
cargo testnow passes--targettorustdocif the specified target isthe same as the host target.
#10594
macro_rules!macros, matching other private itemsFilereads or writes cannotcomplete synchronously.
Internal Changes
These changes provide no direct user facing benefits, but represent significant
improvements to the internals and overall performance of rustc
and related tools.
v1.61.0Compare Source
==========================
Language
const fnsignatures can now include generic trait bounds][93827]const fnsignatures can now useimpl Traitin arguConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.