Files
rust/tests
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
..
2026-06-26 13:24:12 +00:00
2026-06-26 13:24:12 +00:00