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.57.0
->1.58.0
Release Notes
rust-lang/rust
v1.58.0
Compare Source
==========================
Language
{ident}
in the string. This works in all macros accepting format strings. Support for this inpanic!
(panic!("{ident}")
) requires the 2021 edition; panic invocations in previous editions that appear to be trying to use this will result in a warning lint about not having the intended effect.*const T
pointers can now be dereferenced in const contexts.Unsize
have been relaxed.Compiler
strip
option to remove these symbols to produce smaller release binaries. Note that this release only includes support in rustc, not directly in cargo.-Cremark
x86_64-unknown-none
at Tier 3** Refer to Rust's [platform support page][platform-support-doc] for more
information on Rust's tiered platform support.
Libraries
#[must_use]
annotations where appropriate][89692], producing a warning when ignoring their return value. This helps catch mistakes such as expecting a function to mutate a value in place rather than return a new value.copy
andcopy_nonoverlapping
RefUnwindSafe
forRc<T>
Termination
forResult<Infallible, E>
. This allows writingfn main() -> Result<Infallible, ErrorType>
, for a program whose successful exits never involve returning frommain
(for instance, a program that callsexit
, or that usesexec
to run another program).Stabilized APIs
Metadata::is_symlink
][Metadata::is_symlink]Path::is_symlink
][Path::is_symlink]{integer}::saturating_div
][{integer}::saturating_div]Option::unwrap_unchecked
][Option::unwrap_unchecked]Result::unwrap_unchecked
][Result::unwrap_unchecked]Result::unwrap_err_unchecked
][Result::unwrap_err_unchecked]NonZero{unsigned}::is_power_of_two
][NonZero{unsigned}::is_power_of_two]File::options
][File::options]These APIs are now usable in const contexts:
Duration::new
][Duration::new]Duration::checked_add
][Duration::checked_add]Duration::saturating_add
][Duration::saturating_add]Duration::checked_sub
][Duration::checked_sub]Duration::saturating_sub
][Duration::saturating_sub]Duration::checked_mul
][Duration::checked_mul]Duration::saturating_mul
][Duration::saturating_mul]Duration::checked_div
][Duration::checked_div]MaybeUninit::as_ptr
][MaybeUninit::as_ptr]MaybeUninit::as_mut_ptr
][MaybeUninit::as_mut_ptr]MaybeUninit::assume_init
][MaybeUninit::assume_init]MaybeUninit::assume_init_ref
][MaybeUninit::assume_init_ref]Cargo
Rustdoc
Compatibility Notes
std::process::Command
will no longer search the current directory for executables.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.
Configuration
📅 Schedule: 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 WhiteSource Renovate. View repository job log here.