Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 26 additions & 26 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6221,9 +6221,9 @@ dependencies = [

[[package]]
name = "wasi-preview1-component-adapter-provider"
version = "40.0.0"
version = "43.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bb5e2b9858989c3a257de4ca169977f4f79897b64e4f482f188f4fcf8ac557d1"
checksum = "93759d6fd0db242718bdcc6e4626eff8b0f3124ee7e58e47177a59f561baf164"

[[package]]
name = "wasm-bindgen"
Expand Down Expand Up @@ -6272,9 +6272,9 @@ dependencies = [

[[package]]
name = "wasm-component-ld"
version = "0.5.21"
version = "0.5.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "59dcd765f510df84d1677a502c49057761486597a95950b4c92153e5707af091"
checksum = "216ca7b603f362831b31db4e2cdea1fa3609edd7177792fa64f62a80e10aa917"
dependencies = [
"anyhow",
"clap",
Expand All @@ -6283,7 +6283,7 @@ dependencies = [
"libc",
"tempfile",
"wasi-preview1-component-adapter-provider",
"wasmparser 0.245.1",
"wasmparser 0.246.2",
"wat",
"windows-sys 0.61.2",
"winsplit",
Expand All @@ -6310,24 +6310,24 @@ dependencies = [

[[package]]
name = "wasm-encoder"
version = "0.245.1"
version = "0.246.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3f9dca005e69bf015e45577e415b9af8c67e8ee3c0e38b5b0add5aa92581ed5c"
checksum = "61fb705ce81adde29d2a8e99d87995e39a6e927358c91398f374474746070ef7"
dependencies = [
"leb128fmt",
"wasmparser 0.245.1",
"wasmparser 0.246.2",
]

[[package]]
name = "wasm-metadata"
version = "0.245.1"
version = "0.246.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "da55e60097e8b37b475a0fa35c3420dd71d9eb7bd66109978ab55faf56a57efb"
checksum = "e3e4c2aa916c425dcca61a6887d3e135acdee2c6d0ed51fd61c08d41ddaf62b1"
dependencies = [
"anyhow",
"indexmap",
"wasm-encoder 0.245.1",
"wasmparser 0.245.1",
"wasm-encoder 0.246.2",
"wasmparser 0.246.2",
]

[[package]]
Expand All @@ -6352,9 +6352,9 @@ dependencies = [

[[package]]
name = "wasmparser"
version = "0.245.1"
version = "0.246.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4f08c9adee0428b7bddf3890fc27e015ac4b761cc608c822667102b8bfd6995e"
checksum = "71cde4757396defafd25417cfb36aa3161027d06d865b0c24baaae229aac005d"
dependencies = [
"bitflags",
"hashbrown 0.16.1",
Expand All @@ -6365,22 +6365,22 @@ dependencies = [

[[package]]
name = "wast"
version = "245.0.1"
version = "246.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "28cf1149285569120b8ce39db8b465e8a2b55c34cbb586bd977e43e2bc7300bf"
checksum = "fe3fe8e3bf88ad96d031b4181ddbd64634b17cb0d06dfc3de589ef43591a9a62"
dependencies = [
"bumpalo",
"leb128fmt",
"memchr",
"unicode-width 0.2.2",
"wasm-encoder 0.245.1",
"wasm-encoder 0.246.2",
]

[[package]]
name = "wat"
version = "1.245.1"
version = "1.246.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cd48d1679b6858988cb96b154dda0ec5bbb09275b71db46057be37332d5477be"
checksum = "4bd7fda1199b94fff395c2d19a153f05dbe7807630316fa9673367666fd2ad8c"
dependencies = [
"wast",
]
Expand Down Expand Up @@ -6811,9 +6811,9 @@ dependencies = [

[[package]]
name = "wit-component"
version = "0.245.1"
version = "0.246.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4894f10d2d5cbc17c77e91f86a1e48e191a788da4425293b55c98b44ba3fcac9"
checksum = "1936c26cb24b93dc36bf78fb5dc35c55cd37f66ecdc2d2663a717d9fb3ee951e"
dependencies = [
"anyhow",
"bitflags",
Expand All @@ -6822,17 +6822,17 @@ dependencies = [
"serde",
"serde_derive",
"serde_json",
"wasm-encoder 0.245.1",
"wasm-encoder 0.246.2",
"wasm-metadata",
"wasmparser 0.245.1",
"wasmparser 0.246.2",
"wit-parser",
]

[[package]]
name = "wit-parser"
version = "0.245.1"
version = "0.246.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "330698718e82983499419494dd1e3d7811a457a9bf9f69734e8c5f07a2547929"
checksum = "fd979042b5ff288607ccf3b314145435453f20fc67173195f91062d2289b204d"
dependencies = [
"anyhow",
"hashbrown 0.16.1",
Expand All @@ -6844,7 +6844,7 @@ dependencies = [
"serde_derive",
"serde_json",
"unicode-xid",
"wasmparser 0.245.1",
"wasmparser 0.246.2",
]

[[package]]
Expand Down
8 changes: 5 additions & 3 deletions compiler/rustc_lint/src/early/diagnostics/check_cfg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -438,10 +438,10 @@ pub(super) fn unexpected_cfg_value(
}
}

/// Ordering of the output is not stable, use this only in diagnostic code.
fn possible_well_known_names_for_cfg_value(sess: &Session, value: Symbol) -> Vec<Symbol> {
#[allow(rustc::potential_query_instability)]
sess.psess
let mut names = sess
.psess
.check_config
.well_known_names
.iter()
Expand All @@ -454,5 +454,7 @@ fn possible_well_known_names_for_cfg_value(sess: &Session, value: Symbol) -> Vec
.unwrap_or_default()
})
.copied()
.collect()
.collect::<Vec<_>>();
names.sort_by(|a, b| a.as_str().cmp(b.as_str()));
names
}
6 changes: 4 additions & 2 deletions library/core/src/iter/range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,8 @@ macro_rules! step_nonzero_impls {
$(
#[allow(unreachable_patterns)]
#[unstable(feature = "step_trait", reason = "recently redesigned", issue = "42168")]
impl Step for NonZero<$narrower> {
#[rustc_const_unstable(feature = "step_trait", issue = "42168")]
impl const Step for NonZero<$narrower> {
step_nonzero_identical_methods!($narrower);

#[inline]
Expand All @@ -538,7 +539,8 @@ macro_rules! step_nonzero_impls {
$(
#[allow(unreachable_patterns)]
#[unstable(feature = "step_trait", reason = "recently redesigned", issue = "42168")]
impl Step for NonZero<$wider> {
#[rustc_const_unstable(feature = "step_trait", issue = "42168")]
impl const Step for NonZero<$wider> {
step_nonzero_identical_methods!($wider);

#[inline]
Expand Down
6 changes: 4 additions & 2 deletions library/core/src/num/nonzero.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ impl_nonzero_auto_trait!(Unpin);
impl_nonzero_auto_trait!(UnwindSafe);

#[stable(feature = "nonzero", since = "1.28.0")]
impl<T> Clone for NonZero<T>
#[rustc_const_unstable(feature = "const_clone", issue = "142757")]
impl<T> const Clone for NonZero<T>
where
T: ZeroablePrimitive,
{
Expand All @@ -202,7 +203,8 @@ impl<T> Copy for NonZero<T> where T: ZeroablePrimitive {}

#[doc(hidden)]
#[unstable(feature = "trivial_clone", issue = "none")]
unsafe impl<T> TrivialClone for NonZero<T> where T: ZeroablePrimitive {}
#[rustc_const_unstable(feature = "const_clone", issue = "142757")]
unsafe impl<T> const TrivialClone for NonZero<T> where T: ZeroablePrimitive {}

#[stable(feature = "nonzero", since = "1.28.0")]
#[rustc_const_unstable(feature = "const_cmp", issue = "143800")]
Expand Down
31 changes: 31 additions & 0 deletions library/coretests/tests/cmp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,37 @@ fn test_ord_min_max_by() {
assert_eq!(cmp::max_by(2, -1, f), 2);
}

// Regression test for #136307 / #139357: ensure compare() receives (v1, v2), not (v2, v1).
#[test]
fn min_by_compare_argument_order() {
let mut order = vec![];
let _ = cmp::min_by(1i32, 2, |a, b| {
order.push((*a, *b));
a.cmp(b)
});
assert_eq!(order, [(1, 2)]);
}

#[test]
fn max_by_compare_argument_order() {
let mut order = vec![];
let _ = cmp::max_by(1i32, 2, |a, b| {
order.push((*a, *b));
a.cmp(b)
});
assert_eq!(order, [(1, 2)]);
}

#[test]
fn minmax_by_compare_argument_order() {
let mut order = vec![];
let _ = cmp::minmax_by(1i32, 2, |a, b| {
order.push((*a, *b));
a.cmp(b)
});
assert_eq!(order, [(1, 2)]);
}

#[test]
fn test_ord_min_max_by_key() {
let f = |x: &i32| x.abs();
Expand Down
1 change: 1 addition & 0 deletions library/coretests/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#![feature(char_internals)]
#![feature(char_max_len)]
#![feature(clone_to_uninit)]
#![feature(cmp_minmax)]
#![feature(const_array)]
#![feature(const_bool)]
#![feature(const_cell_traits)]
Expand Down
2 changes: 1 addition & 1 deletion library/std/src/sys/pal/motor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ pub fn unsupported_err() -> io::Error {
}

pub fn abort_internal() -> ! {
core::intrinsics::abort();
moto_rt::process::exit(-1)
}
2 changes: 1 addition & 1 deletion license-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@
{
"directories": [],
"files": [
"Fira-LICENSE.txt",
"FiraMono-Medium.woff2",
"FiraMono-Regular.woff2",
"FiraSans-Italic.woff2",
"FiraSans-LICENSE.txt",
"FiraSans-Medium.woff2",
"FiraSans-MediumItalic.woff2",
"FiraSans-Regular.woff2"
Expand Down
2 changes: 1 addition & 1 deletion src/librustdoc/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fn main() {
"static/fonts/FiraSans-MediumItalic.woff2",
"static/fonts/FiraMono-Regular.woff2",
"static/fonts/FiraMono-Medium.woff2",
"static/fonts/FiraSans-LICENSE.txt",
"static/fonts/Fira-LICENSE.txt",
"static/fonts/SourceSerif4-Regular.ttf.woff2",
"static/fonts/SourceSerif4-Semibold.ttf.woff2",
"static/fonts/SourceSerif4-Bold.ttf.woff2",
Expand Down
7 changes: 4 additions & 3 deletions src/librustdoc/html/static/COPYRIGHT.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ These documentation pages include resources by third parties. This copyright
file applies only to those resources. The following third party resources are
included, and carry their own copyright notices and license terms:

* Fira Sans (FiraSans-Regular.woff2, FiraSans-Medium.woff2):
* Fira (FiraSans-Regular.woff2, FiraSans-Medium.woff2,
FiraMono-Regular.woff2, FiraMono-Medium.woff2):

Copyright (c) 2014, Mozilla Foundation https://mozilla.org/
with Reserved Font Name Fira Sans.
with Reserved Font Name < Fira >.

Copyright (c) 2014, Telefonica S.A.

Licensed under the SIL Open Font License, Version 1.1.
See FiraSans-LICENSE.txt.
See Fira-LICENSE.txt.

* rustdoc.css, main.js, and playpen.js:

Expand Down
2 changes: 1 addition & 1 deletion src/librustdoc/html/static_files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ static_files! {
fira_sans_medium_italic => "static/fonts/FiraSans-MediumItalic.woff2",
fira_mono_regular => "static/fonts/FiraMono-Regular.woff2",
fira_mono_medium => "static/fonts/FiraMono-Medium.woff2",
fira_sans_license => "static/fonts/FiraSans-LICENSE.txt",
fira_license => "static/fonts/Fira-LICENSE.txt",
source_serif_4_regular => "static/fonts/SourceSerif4-Regular.ttf.woff2",
source_serif_4_semibold => "static/fonts/SourceSerif4-Semibold.ttf.woff2",
source_serif_4_bold => "static/fonts/SourceSerif4-Bold.ttf.woff2",
Expand Down
2 changes: 1 addition & 1 deletion src/tools/wasm-component-ld/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ name = "wasm-component-ld"
path = "src/main.rs"

[dependencies]
wasm-component-ld = "0.5.21"
wasm-component-ld = "0.5.22"
2 changes: 1 addition & 1 deletion tests/ui/cfg/suggest-alternative-name-on-target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ struct D;
#[cfg(target_abi = "windows")]
//~^ ERROR unexpected `cfg` condition value:
//~| NOTE see <https://doc.rust-lang.org
//~| HELP `windows` is an expected value for `target_os`
//~| HELP `windows` is an expected value for `target_family`
//~| HELP `windows` is an expected value for `target_os`
struct E;

fn main() {}
8 changes: 4 additions & 4 deletions tests/ui/cfg/suggest-alternative-name-on-target.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ LL | #[cfg(target_abi = "windows")]
| ^^^^^^^^^^^^^^^^^^^^^^
|
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
help: `windows` is an expected value for `target_os`
help: `windows` is an expected value for `target_family`
|
LL - #[cfg(target_abi = "windows")]
LL + #[cfg(target_os = "windows")]
LL + #[cfg(target_family = "windows")]
|
help: `windows` is an expected value for `target_family`
help: `windows` is an expected value for `target_os`
|
LL - #[cfg(target_abi = "windows")]
LL + #[cfg(target_family = "windows")]
LL + #[cfg(target_os = "windows")]
|

error: aborting due to 5 previous errors
Expand Down
Loading