rust/compiler/rustc_serialize/src
David Wood 884d0e031a
library/compiler: add PointeeSized bounds
As core uses an extern type (`ptr::VTable`), the default `?Sized` to
`MetaSized` migration isn't sufficient, and some code that previously
accepted `VTable` needs relaxed to continue to accept extern types.

Similarly, the compiler uses many extern types in `rustc_codegen_llvm`
and in the `rustc_middle::ty::List` implementation (`OpaqueListContents`)
some bounds must be relaxed to continue to accept these types.

Unfortunately, due to the current inability to relax `Deref::Target`,
some of the bounds in the standard library are forced to be stricter than
they ideally would be.
2025-06-16 23:04:33 +00:00
..
leb128 Convert rustc_serialize integration tests to unit tests. 2025-03-20 08:59:50 +11:00
opaque Zero the buffer passed from write_with 2025-04-25 07:14:27 +02:00
int_overflow.rs Add add/sub methods that only panic with debug assertions to rustc 2024-04-13 17:03:12 +02:00
leb128.rs Convert rustc_serialize integration tests to unit tests. 2025-03-20 08:59:50 +11:00
lib.rs library/compiler: add PointeeSized bounds 2025-06-16 23:04:33 +00:00
opaque.rs Add index to the dep graph format and encode via MemEncoder 2025-04-22 16:57:28 +02:00
serialize.rs library/compiler: add PointeeSized bounds 2025-06-16 23:04:33 +00:00