Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
ee9b61c
deprecate `std::char` constants and functions
folkertdev Mar 14, 2026
bbb9e3b
libtest: use binary search for --exact test filtering
sunshowers Apr 6, 2026
782a214
Implemented PermissionsExt ACP on Windows, which provides functions/u…
asder8215 Apr 11, 2026
8712a92
Replace the spdx-rs dependency with a minimal in-tree SPDX tag-value …
jakubadamw Apr 4, 2026
57de72c
Add a bunch of unit tests for the in-house parser
jakubadamw Apr 12, 2026
1bdbde5
Move spdx.rs to spdx/mod.rs
jakubadamw Apr 12, 2026
1e14a7b
Make documentation for `std::io::ErrorKind` `core::io` compatible
bushrat011899 Apr 1, 2026
c456797
Adjust usage of `std::io::ErrorKind` to be `core` compatible
bushrat011899 Apr 1, 2026
3c03144
Move `std::io::ErrorKind` to `core::io`
bushrat011899 Apr 14, 2026
f684713
triagebot.toml: Sync `assign.owners` with `autolabel."T-compiler"`
Enselic Apr 15, 2026
46f360a
Add regression test for dead code elimination with drop + panic
iyernaveenr Apr 16, 2026
e0ef87f
Add temporary scope to assert_matches
Voultapher Apr 17, 2026
3a0c0e9
Apply review feedback
Voultapher Apr 18, 2026
7962119
Rollup merge of #155370 - iyernaveenr:naveen_r_iyer/issue-114532-need…
jhpratt Apr 19, 2026
9348541
Rollup merge of #154823 - jakubadamw:spdx-rs-replacement, r=Mark-Simu…
jhpratt Apr 19, 2026
f2e4f9f
Rollup merge of #155352 - Enselic:label-sync, r=Mark-Simulacrum
jhpratt Apr 19, 2026
be3ad64
Rollup merge of #155431 - Voultapher:add-tmp-scope-to-assert-matches,…
jhpratt Apr 19, 2026
6b7aa2d
Rollup merge of #152995 - asder8215:windows_permissions_ext, r=Mark-S…
jhpratt Apr 19, 2026
22aaa41
Rollup merge of #153873 - folkertdev:deprecate-char-max, r=Mark-Simul…
jhpratt Apr 19, 2026
877c205
Rollup merge of #154654 - bushrat011899:core_io_error_kind, r=Mark-Si…
jhpratt Apr 19, 2026
d8048a2
Rollup merge of #154865 - sunshowers:binary-search-test, r=Mark-Simul…
jhpratt Apr 19, 2026
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
149 changes: 41 additions & 108 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions compiler/rustc_builtin_macros/src/test_harness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,8 @@ fn mk_tests_slice(cx: &TestCtxt<'_>, sp: Span) -> Box<ast::Expr> {
let ecx = &cx.ext_cx;

let mut tests = cx.test_cases.clone();
// Note that this sort is load-bearing: the libtest harness uses binary search to find tests by
// name.
tests.sort_by(|a, b| a.name.as_str().cmp(b.name.as_str()));

ecx.expr_array_ref(
Expand Down
23 changes: 13 additions & 10 deletions library/core/src/char/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,31 +93,31 @@ const MAX_THREE_B: u32 = 0x10000;

/// The highest valid code point a `char` can have, `'\u{10FFFF}'`. Use [`char::MAX`] instead.
#[stable(feature = "rust1", since = "1.0.0")]
#[deprecated(since = "TBD", note = "replaced by the `MAX` associated constant on `char`")]
pub const MAX: char = char::MAX;

/// The maximum number of bytes required to [encode](char::encode_utf8) a `char` to
/// UTF-8 encoding.
#[unstable(feature = "char_max_len", issue = "121714")]
pub const MAX_LEN_UTF8: usize = char::MAX_LEN_UTF8;

/// The maximum number of two-byte units required to [encode](char::encode_utf16) a `char`
/// to UTF-16 encoding.
#[unstable(feature = "char_max_len", issue = "121714")]
pub const MAX_LEN_UTF16: usize = char::MAX_LEN_UTF16;

/// `U+FFFD REPLACEMENT CHARACTER` (�) is used in Unicode to represent a
/// decoding error. Use [`char::REPLACEMENT_CHARACTER`] instead.
#[stable(feature = "decode_utf16", since = "1.9.0")]
#[deprecated(
since = "TBD",
note = "replaced by the `REPLACEMENT_CHARACTER` associated constant on `char`"
)]
pub const REPLACEMENT_CHARACTER: char = char::REPLACEMENT_CHARACTER;

/// The version of [Unicode](https://www.unicode.org/) that the Unicode parts of
/// `char` and `str` methods are based on. Use [`char::UNICODE_VERSION`] instead.
#[stable(feature = "unicode_version", since = "1.45.0")]
#[deprecated(
since = "TBD",
note = "replaced by the `UNICODE_VERSION` associated constant on `char`"
)]
pub const UNICODE_VERSION: (u8, u8, u8) = char::UNICODE_VERSION;

/// Creates an iterator over the UTF-16 encoded code points in `iter`, returning
/// unpaired surrogates as `Err`s. Use [`char::decode_utf16`] instead.
#[stable(feature = "decode_utf16", since = "1.9.0")]
#[deprecated(since = "TBD", note = "replaced by the `decode_utf16` method on `char`")]
#[inline]
pub fn decode_utf16<I: IntoIterator<Item = u16>>(iter: I) -> DecodeUtf16<I::IntoIter> {
self::decode::decode_utf16(iter)
Expand All @@ -126,6 +126,7 @@ pub fn decode_utf16<I: IntoIterator<Item = u16>>(iter: I) -> DecodeUtf16<I::Into
/// Converts a `u32` to a `char`. Use [`char::from_u32`] instead.
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_const_stable(feature = "const_char_convert", since = "1.67.0")]
#[deprecated(since = "TBD", note = "replaced by the `from_u32` method on `char`")]
#[must_use]
#[inline]
pub const fn from_u32(i: u32) -> Option<char> {
Expand All @@ -136,6 +137,7 @@ pub const fn from_u32(i: u32) -> Option<char> {
/// instead.
#[stable(feature = "char_from_unchecked", since = "1.5.0")]
#[rustc_const_stable(feature = "const_char_from_u32_unchecked", since = "1.81.0")]
#[deprecated(since = "TBD", note = "replaced by the `from_u32_unchecked` method on `char`")]
#[must_use]
#[inline]
pub const unsafe fn from_u32_unchecked(i: u32) -> char {
Expand All @@ -146,6 +148,7 @@ pub const unsafe fn from_u32_unchecked(i: u32) -> char {
/// Converts a digit in the given radix to a `char`. Use [`char::from_digit`] instead.
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_const_stable(feature = "const_char_convert", since = "1.67.0")]
#[deprecated(since = "TBD", note = "replaced by the `from_digit` method on `char`")]
#[must_use]
#[inline]
pub const fn from_digit(num: u32, radix: u32) -> Option<char> {
Expand Down
Loading
Loading