Files
rust/tests/ui/rust-2018
albab-hasan 1d08359d33 don't fire explicit_outlives_requirements on unsized type params
When a type param `T` is not `Sized` (i.e. `is_sized` returns false),
removing an explicit `T: 'r` bound can silently change trait object
lifetime defaults per RFC 599 — `Struct<dyn Trait>` would shift from
`dyn Trait + 'r` to `dyn Trait + 'static`. Suppress the lint in that
case using `Ty::new_param(...).is_sized(tcx, typing_env)`.

Fixes https://github.com/rust-lang/rust/issues/134902
2026-07-27 06:48:55 +06:00
..
2025-11-27 11:19:00 -05:00
2025-12-10 15:15:56 +01:00
2025-12-10 15:15:56 +01:00
2025-12-10 15:15:56 +01:00
2025-12-10 15:15:56 +01:00
2025-12-10 15:15:56 +01:00
2025-12-10 15:15:56 +01:00
2025-12-10 15:15:56 +01:00
2025-12-10 15:15:56 +01:00