Files
rust/library/coretests/tests
Jonathan Brouwer b07688dc2e Rollup merge of #153873 - folkertdev:deprecate-char-max, r=Mark-Simulacrum
deprecate `std::char` constants and functions

similar to how constants in those modules for numeric types have been deprecated. The `std::char` module contains:

Three stable constants that this PR deprecates. These already link to their associated constant equivalents.

- `MAX`
- `REPLACEMENT_CHARACTER`
- `UNICODE_VERSION`

two unstable constants that this PR removes. The constants are already stablized as associated constants on `char`.

- `MAX_LEN_UTF8`
- `MAX_LEN_UTF16`

Four stable functions that this PR deprecates. These already link to their method equivalents.

- `fn decode_utf16`
- `fn from_digit`
- `fn from_u32`
- `fn from_u32_unchecked⚠`

discussion at [#t-libs > should `std::char::{MIN, MAX}` be deprecated?](https://rust-lang.zulipchat.com/#narrow/channel/219381-t-libs/topic/should.20.60std.3A.3Achar.3A.3A.7BMIN.2C.20MAX.7D.60.20be.20deprecated.3F/with/579444750).

r? libs-api
2026-04-19 16:04:32 +02:00
..
2025-06-12 12:53:14 -04:00
2025-09-12 13:54:15 -05:00
2026-02-20 10:16:36 +01:00
2025-08-02 17:34:59 -04:00
2026-01-11 16:39:18 +03:00
2025-07-09 16:37:11 +00:00
2025-09-16 10:05:40 -05:00
2025-09-16 10:26:52 -05:00
2026-01-23 15:12:47 +07:00
2025-06-25 17:06:49 -07:00
2026-03-23 08:17:14 -04:00
2025-12-12 06:31:00 +02:00
2026-04-08 17:59:14 +02:00
2025-01-26 10:26:36 +00:00
2025-01-26 10:26:36 +00:00
2025-10-26 21:33:00 -04:00
2026-02-20 10:16:36 +01:00
2025-01-26 10:26:36 +00:00
2026-04-18 15:12:33 +02:00
2025-09-10 16:50:45 -05:00
2025-01-26 10:26:36 +00:00
2025-05-12 15:33:37 +02:00
2026-03-25 11:40:27 +07:00
2025-08-01 08:55:50 +03:00
2025-01-26 10:26:36 +00:00
2026-01-29 11:12:54 -08:00
2025-01-26 10:26:36 +00:00
2025-01-26 10:26:36 +00:00
2025-08-20 20:31:33 -04:00