rust/library/core/src
Matthias Krüger f2c287f744
Rollup merge of #127134 - tgross35:typeid-debug, r=Nilstrieb
Print `TypeId` as a `u128` for `Debug`

Since <https://github.com/rust-lang/rust/pull/121358>, `TypeId` is represented as a `(u64, u64)`. This also made the debug implementation a lot larger, which is especially apparent with pretty formatting.

Change this to convert the inner value back to a `u128` and then print as a tuple struct to make this less noisy.

Current:

    TypeId { t: (1403077013027291752, 4518903163082958039) }
    TypeId {
        t: (
            1403077013027291752,
            4518903163082958039,
        ),
    }

New:

    TypeId(25882202575019293479932656973818029271)
    TypeId(
        25882202575019293479932656973818029271,
    )
2024-06-30 10:39:48 +02:00
..
alloc alloc::Layout: explicitly document size invariant on the type level 2024-03-25 20:18:46 +01:00
array Replace MaybeUninit::uninit_array() with array repeat expression. 2024-06-24 10:23:50 -07:00
ascii implement Default for AsciiChar 2024-02-13 12:04:44 +01:00
async_iter Hide async_gen_internals from standard library documentation 2024-04-05 18:54:38 -07:00
cell replace version placeholder 2024-06-11 16:52:02 +02:00
char Improve escape methods. 2024-05-09 17:04:30 +02:00
cmp Use generic NonZero everywhere in core. 2024-02-22 15:17:33 +01:00
convert Re-add From<f16> for f64 2024-05-04 22:56:35 +01:00
ffi core: VaArgSafe is an unsafe trait 2024-06-24 20:40:33 -07:00
fmt core: improve comment 2024-06-27 12:16:46 +02:00
future Add tracking issue to async_drop API 2024-06-17 17:20:13 +03:00
hash Mark Hasher::finish as #[must_use] 2024-06-27 14:16:27 -04:00
intrinsics [GVN] Add tests for generic pointees with PtrMetadata 2024-06-20 22:16:59 -07:00
io Remove bound checks from BorrowedBuf and BorrowedCursor methods 2024-04-15 10:29:43 +02:00
iter add comments explaining optimizations for Filter::next_chunk 2024-06-25 23:20:00 +02:00
macros Rollup merge of #126096 - c410-f3r:tests-tests-tests, r=jhpratt 2024-06-06 14:46:25 -07:00
mem Replace MaybeUninit::uninit_array() with array repeat expression. 2024-06-24 10:23:50 -07:00
net Replace MaybeUninit::uninit_array() with array repeat expression. 2024-06-24 10:23:50 -07:00
num Rollup merge of #126906 - GrigorenkoPV:fixme-split_at_first, r=Mark-Simulacrum 2024-06-30 10:39:47 +02:00
ops Remove feature(effects) from the standard library 2024-06-21 09:23:24 +00:00
panic Add PanicMessage type for PanicInfo::message(). 2024-06-17 20:44:55 +02:00
prelude replace version placeholder 2024-06-11 16:52:02 +02:00
ptr Remove (deprecated & unstable) {to,from}_bits pointer methods 2024-06-27 23:32:20 -04:00
slice Replace MaybeUninit::uninit_array() with array repeat expression. 2024-06-24 10:23:50 -07:00
str Add blank lines after module-level //! comments. 2024-06-20 09:23:20 +10:00
sync Remove unnecessary SeqCst in impl fmt::Pointer for AtomicPtr 2024-06-28 00:20:35 -04:00
task Remove feature(effects) from the standard library 2024-06-21 09:23:24 +00:00
unicode Add a lower bound check to unicode-table-generator output 2024-04-20 10:16:45 +02:00
any.rs Print TypeId as a u128 for Debug 2024-06-29 16:39:48 -04:00
arch.rs Rust is a proper name: rust → Rust 2024-03-07 07:49:22 +01:00
ascii.rs Improve escape methods. 2024-05-09 17:04:30 +02:00
asserting.rs [RFC 2011] Library code 2022-05-22 07:18:32 -03:00
bool.rs core is now compilable 2023-04-16 07:20:26 +00:00
borrow.rs doc: replace wrong punctuation mark 2023-07-28 14:46:17 +02:00
cell.rs replace version placeholder 2024-06-11 16:52:02 +02:00
clone.rs Add core::clone::CloneToUninit. 2024-06-22 08:08:00 -07:00
cmp.rs Remove feature(effects) from the standard library 2024-06-21 09:23:24 +00:00
default.rs Detect unused structs which derived Default 2024-06-25 23:29:44 +08:00
error.md Mention core's PanicInfo in error.md. 2024-06-11 15:47:00 +02:00
error.rs update comment 2024-06-16 06:31:37 +08:00
escape.rs Remove feature(effects) from the standard library 2024-06-21 09:23:24 +00:00
hint.rs reword the hint::blackbox non-guarantees 2024-06-19 20:01:32 +02:00
internal_macros.rs Revert "Rollup merge of #125362 - joboet:tait_hack, r=Nilstrieb" 2024-06-12 08:47:49 +00:00
intrinsics.rs Add missing slash in const_eval_select doc comment 2024-06-25 13:37:22 +02:00
lib.miri.rs add 'x.py miri', and make it work for 'library/{core,alloc,std}' 2024-04-03 20:27:20 +02:00
lib.rs Rollup merge of #126705 - safinaskar:panic, r=Mark-Simulacrum 2024-06-30 10:39:46 +02:00
marker.rs Auto merge of #120639 - fee1-dead-contrib:new-effects-desugaring, r=oli-obk 2024-06-29 20:08:10 +00:00
option.rs Make Option::as_[mut_]slice const 2024-06-19 21:44:47 +01:00
panic.rs Add PanicMessage type for PanicInfo::message(). 2024-06-17 20:44:55 +02:00
panicking.rs Rename std::panic::PanicInfo to PanicHookInfo. 2024-06-11 15:47:00 +02:00
pat.rs Add pattern types to parser 2024-04-08 11:57:17 +00:00
pin.rs Fix typo in docs for std::pin 2024-06-07 12:18:43 -07:00
primitive.rs
primitive_docs.rs Rollup merge of #125043 - RalfJung:ref-type-safety-invariant, r=scottmcm 2024-05-22 23:41:11 +02:00
result.rs Rollup merge of #124870 - Lokathor:update-result-docs, r=dtolnay 2024-05-27 13:10:33 +02:00
time.rs docs: say "includes" instead of "does include" 2024-06-28 00:01:32 -04:00
tuple.rs Rollup merge of #118307 - scottmcm:tuple-eq-simpler, r=joshtriplett 2024-02-11 08:25:41 +01:00
ub_checks.rs export assert_unsafe_precondition macro for std-internal use 2024-04-22 19:02:37 +02:00
unit.rs Import the 2021 prelude in the core crate 2024-03-25 13:12:06 -07:00