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:
2.1.1
->2.1.2
7.2.0
->7.4.0
1.82.0
->1.83.0
2.0.89
->2.0.90
0.2.95
->0.2.97
0.3.45
->0.3.47
Release Notes
denoland/deno (deno)
v2.1.2
Compare Source
--unstable-detect-cjs
to attempt loading moremodules as cjs (#27094)
@import
tag (#26991)(#27015)
bodyUsed
inspect after upgrade (#27088)tls.connect
socket upgrades (#27125)fs.promises.fstat
andFileHandle#stat
(#26719)(#26932)
None
if sql fmt result is the same (#27014)(#26984)
string
inReadableStream.from
type (#25116)as strings (#27033)
Storage
(#26931)zkat/miette (miette)
v7.4.0
Compare Source
Features
WrapError
forOption
(#409) (7fae60fd)v7.3.0
Compare Source
Features
from_err()
method toReport
(#403) (93d3bd11)Diagnostic
forInfallible
(#402) (f3fb4c1e)Performance
Bug Fixes
alt
attribut forsingle-line-example.png
(#372) (b82cc81b)clippy::doc_lazy_continuation
lints (#395) (15beec43)dep:
syntax for dependencies in features. (#394) (789a04e3)needless_return
lint. (#405) (5f441d01)Documentation
rust-lang/rust (rust)
v1.83.0
Compare Source
==========================
Language
&mut
,*mut
,&Cell
, and*const Cell
in const.const
initializers.'r#ident
).!
const extern
functions can now be defined for other calling conventions.expr_2021
macro fragment specifier in all editions.non_local_definitions
lint now fires on less code and warns by default.Compiler
-Csoft-float
flag.aarch64_unknown_nto_qnx700
arm64e-apple-tvos
armv7-rtems-eabihf
loongarch64-unknown-linux-ohos
riscv32-wrs-vxworks
andriscv64-wrs-vxworks
riscv32{e|em|emc}-unknown-none-elf
x86_64-unknown-hurd-gnu
x86_64-unknown-trusty
Refer to Rust's [platform support page][platform-support-doc]
for more information on Rust's tiered platform support.
Libraries
PartialEq
forExitCode
.catch_unwind
can deal with foreign exceptions without UB, although the exact behavior is unspecified.Default
forHashMap
/HashSet
iterators that don't already have it.ptr::add
/sub
to not claim equivalence withoffset
.Stabilized APIs
BufRead::skip_until
ControlFlow::break_value
ControlFlow::continue_value
ControlFlow::map_break
ControlFlow::map_continue
DebugList::finish_non_exhaustive
DebugMap::finish_non_exhaustive
DebugSet::finish_non_exhaustive
DebugTuple::finish_non_exhaustive
ErrorKind::ArgumentListTooLong
ErrorKind::Deadlock
ErrorKind::DirectoryNotEmpty
ErrorKind::ExecutableFileBusy
ErrorKind::FileTooLarge
ErrorKind::HostUnreachable
ErrorKind::IsADirectory
ErrorKind::NetworkDown
ErrorKind::NetworkUnreachable
ErrorKind::NotADirectory
ErrorKind::NotSeekable
ErrorKind::ReadOnlyFilesystem
ErrorKind::ResourceBusy
ErrorKind::StaleNetworkFileHandle
ErrorKind::StorageFull
ErrorKind::TooManyLinks
Option::get_or_insert_default
Waker::data
Waker::new
Waker::vtable
char::MIN
hash_map::Entry::insert_entry
hash_map::VacantEntry::insert_entry
These APIs are now stable in const contexts:
Cell::into_inner
Duration::as_secs_f32
Duration::as_secs_f64
Duration::div_duration_f32
Duration::div_duration_f64
MaybeUninit::as_mut_ptr
NonNull::as_mut
NonNull::copy_from
NonNull::copy_from_nonoverlapping
NonNull::copy_to
NonNull::copy_to_nonoverlapping
NonNull::slice_from_raw_parts
NonNull::write
NonNull::write_bytes
NonNull::write_unaligned
OnceCell::into_inner
Option::as_mut
Option::expect
Option::replace
Option::take
Option::unwrap
Option::unwrap_unchecked
Option::<&_>::copied
Option::<&mut _>::copied
Option::<Option<_>>::flatten
Option::<Result<_, _>>::transpose
RefCell::into_inner
Result::as_mut
Result::<&_, _>::copied
Result::<&mut _, _>::copied
Result::<Option<_>, _>::transpose
UnsafeCell::get_mut
UnsafeCell::into_inner
array::from_mut
char::encode_utf8
{float}::classify
{float}::is_finite
{float}::is_infinite
{float}::is_nan
{float}::is_normal
{float}::is_sign_negative
{float}::is_sign_positive
{float}::is_subnormal
{float}::from_bits
{float}::from_be_bytes
{float}::from_le_bytes
{float}::from_ne_bytes
{float}::to_bits
{float}::to_be_bytes
{float}::to_le_bytes
{float}::to_ne_bytes
mem::replace
ptr::replace
ptr::slice_from_raw_parts_mut
ptr::write
ptr::write_unaligned
<*const _>::copy_to
<*const _>::copy_to_nonoverlapping
<*mut _>::copy_from
<*mut _>::copy_from_nonoverlapping
<*mut _>::copy_to
<*mut _>::copy_to_nonoverlapping
<*mut _>::write
<*mut _>::write_bytes
<*mut _>::write_unaligned
slice::from_mut
slice::from_raw_parts_mut
<[_]>::first_mut
<[_]>::last_mut
<[_]>::first_chunk_mut
<[_]>::last_chunk_mut
<[_]>::split_at_mut
<[_]>::split_at_mut_checked
<[_]>::split_at_mut_unchecked
<[_]>::split_first_mut
<[_]>::split_last_mut
<[_]>::split_first_chunk_mut
<[_]>::split_last_chunk_mut
str::as_bytes_mut
str::as_mut_ptr
str::from_utf8_unchecked_mut
Cargo
CARGO_MANIFEST_PATH
environment variable, similar toCARGO_MANIFEST_DIR
but pointing directly to the manifest file.package.autolib
to the manifest, allowing[lib]
auto-discovery to be disabled.Rustdoc
# headers
from the main item's doc comment. This is similar to a third-party feature provided by the rustdoc-search-enhancements browser extension.Compatibility Notes
Warn against function pointers using unsupported ABI strings.
Check well-formedness of the source type's signature in fn pointer casts. This partly closes a soundness hole that comes when casting a function item to function pointer
Use equality instead of subtyping when resolving type dependent paths.
Linking on macOS now correctly includes Rust's default deployment target. Due to a linker bug, you might have to pass
MACOSX_DEPLOYMENT_TARGET
or fix your#[link]
attributes to point to the correct frameworks. See #129369.Rust will now correctly raise an error for
repr(Rust)
written on non-struct
/enum
/union
items, since it previous did not have any effect.The future incompatibility lint
deprecated_cfg_attr_crate_type_name
has been made into a hard error. It was used to deny usage of#![crate_type]
and#![crate_name]
attributes in#![cfg_attr]
, which required a hack in the compiler to be able to change the used crate type and crate name after cfg expansion.Users can use
--crate-type
instead of#![cfg_attr(..., crate_type = "...")]
and--crate-name
instead of#![cfg_attr(..., crate_name = "...")]
when runningrustc
/cargo rustc
on the command line.Use of those two attributes outside of
#![cfg_attr]
continue to be fully supported.Until now, paths into the sysroot were always prefixed with
/rustc/$hash
in diagnostics, codegen, backtrace, e.g.RFC 3127 said
#129687 implements this behaviour, when
rust-src
is present at compile time,rustc
replaces/rustc/$hash
with a real path into the localrust-src
component with best effort.To sanitize this, users must explicitly supply
--remap-path-prefix=<path to rust-src>=foo
or not have therust-src
component installed.The allow-by-default
missing_docs
lint used to disable itself when invoked throughrustc --test
/cargo test
, resulting in#[expect(missing_docs)]
emitting false positives due to the expectation being wrongly unfulfilled. This behavior has now been removed, which allows#[expect(missing_docs)]
to be fulfilled in all scenarios, but will also report newmissing_docs
diagnostics for publicly reachable#[cfg(test)]
items, integration test crate-level documentation, and publicly reachable items in integration tests.The
armv8r-none-eabihf
target now uses the Armv8-R required set of floating-point features.Fix a soundness bug where rustc wouldn't detect unconstrained higher-ranked lifetimes in a
dyn Trait
's associated types that occur due to supertraits.Update the minimum external LLVM version to 18.
Remove
aarch64-fuchsia
andx86_64-fuchsia
target aliases in favor ofaarch64-unknown-fuchsia
andx86_64-unknown-fuchsia
respectively.The ABI-level exception class of a Rust panic is now encoded with native-endian bytes, so it is legible in hex dumps.
Visual Studio 2013 is no longer supported for MSVC targets.
The sysroot no longer contains the
std
dynamic library in its top-levellib/
dir.dtolnay/syn (syn)
v2.0.90
Compare Source
(#[attr] thing).field
(#1785)(thing.field)()
andthing.0()
(#1786)rustwasm/wasm-bindgen (wasm-bindgen)
v0.2.97
Compare Source
Released 2024-11-30
Fixed
js-sys
andwasm-bindgen-futures
relying on internal paths ofwasm-bindgen
that are not crate feature additive.#4305
v0.2.96
Compare Source
Released 2024-11-29
Added
Added support for the
HTMLOrSVGElement
mixin
, which is used for all interfaces deriving fromElement
.#4143
Added bindings for MathMLElement.
#4143
Added JSDoc type annotations to C-style enums.
#4192
Added support for C-style enums with negative discriminants.
#4204
Added bindings for
MediaStreamTrack.getCapabilities
.#4236
Added WASM ABI support for
u128
andi128
#4222
Added support for the
wasm32v1-none
target.#4277
Added support for
no_std
tojs-sys
,web-sys
,wasm-bindgen-futures
andwasm-bindgen-test
.#4277
Added support for
no_std
tolink_to!
,static_string
(viathread_local_v2
) andthrow
.#4277
Added environment variables to configure tests:
WASM_BINDGEN_USE_BROWSER
,WASM_BINDGEN_USE_DEDICATED_WORKER
,WASM_BINDGEN_USE_SHARED_WORKER
WASM_BINDGEN_USE_SERVICE_WORKER
,WASM_BINDGEN_USE_DENO
andWASM_BINDGEN_USE_NODE_EXPERIMENTAL
. The use ofwasm_bindgen_test_configure!
will overwrite any environment variable.#4295
Changed
String enums now generate private TypeScript types but only if used.
#4174
Remove unnecessary JSDoc type annotations from generated
.d.ts
files#4187
Deprecate
autofocus
,tabIndex
,focus()
andblur()
bindings in favor of bindings on the inheritedElement
class.#4143
Optimized ABI performance for
Option<{i32,u32,isize,usize,f32,*const T,*mut T}>
.#4183
Deprecate
--reference-types
in favor of automatic target feature detection.#4237
wasm-bindgen-test-runner
now tries to restart the WebDriver on failure, instead of spending its timeout period trying to connect to a non-existing WebDriver.#4267
Deprecated
#[wasm_bindgen(thread_local)]
in favor of#[wasm_bindgen(thread_local_v2)]
, which creates awasm_bindgen::JsThreadLocal
. It is similar tostd::thread::LocalKey
but supportsno_std
.#4277
Updated the WebGPU API to the current draft as of 2024-11-22.
#4290
Improved error messages for
self
arguments in invalid positions.#4276
Fixed
Fixed methods with
self: &Self
consuming the object.#4178
Fixed unused string enums generating JS values.
#4193
Fixed triggering lints in testing facilities.
#4195
Fixed
#[should_panic]
not working with#[wasm_bindgen_test(unsupported = ...)]
.#4196
Fixed potential
null
error when usingJsValue::as_debug_string()
.#4192
Fixed generated types when the getter and setter of a property have different types.
#4202
Fixed generated types when a static getter/setter has the same name as an instance getter/setter.
#4202
Fixed invalid TypeScript return types for multivalue signatures.
#4210
Only emit
table.fill
instructions if the bulk-memory proposal is enabled.#4237
Fixed calls to
JsCast::instanceof()
not respecting JavaScript namespaces.#4241
Fixed imports for functions using
this
and late binding.#4225
Don't expose non-functioning implicit constructors to classes when none are provided.
#4282
Configuration
📅 Schedule: Branch creation - "before 9am on monday" (UTC), 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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.