File tree 1 file changed +3
-2
lines changed
compiler/rustc_middle/src/ty
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -3498,7 +3498,7 @@ fn make_thin_self_ptr<'tcx>(
3498
3498
///
3499
3499
/// This code is intentionally conservative, and will not detect
3500
3500
/// * making uninitialized types who have a full valid range (ints, floats, raw pointers)
3501
- /// * uninit `&[T] ` where T has align 1 (only inside arrays). This includes `&str`
3501
+ /// * uninit `&T ` where T has align 1 size 0 (only inside arrays).
3502
3502
/// * zero init enums where a discriminant with tag 0 exists, but is invalid to be zeroed
3503
3503
/// * zero init type that does not allow zero init (only inside arrays)
3504
3504
///
@@ -3547,7 +3547,8 @@ where
3547
3547
// See: https://github.com/rust-lang/rust/pull/99389
3548
3548
if inside_array {
3549
3549
match init_kind {
3550
- // FIXME(#66151) We need to ignore uninit slice references with an alignment of 1
3550
+ // FIXME(#66151) We need to ignore uninit references with an alignment of 1 and
3551
+ // size 0
3551
3552
// (as in, &[u8] and &str)
3552
3553
// Since if we do not, old versions of `hyper` with no semver compatible fix
3553
3554
// (0.11, 0.12, 0.13) break.
You can’t perform that action at this time.
0 commit comments