Rollup merge of #155377 - Enselic:stepping-zsts, r=petrochenkov

tests/debuginfo/basic-stepping.rs: Remove FIXME related to ZSTs

We don't consider it a bug that users can't break on initialization of some non-zero sized types (see https://github.com/rust-lang/rust/pull/153941 and linked discussions), so it does not make sense to consider it a bug that users can't break on initialization of some zero-sized types.

Closes rust-lang/rust#97083

r? compiler (see https://github.com/rust-lang/rust/pull/155352)
This commit is contained in:
Stuart Cook
2026-04-17 16:17:56 +10:00
committed by GitHub
+2 -2
View File
@@ -142,8 +142,8 @@
fn main () {
let a = (); // #break
let b : [i32; 0] = [];
// FIXME(#97083): Should we be able to break on initialization of zero-sized types?
// FIXME(#97083): Right now the first breakable line is:
// The above lines initialize zero-sized types. That does not emit machine
// code, so the first breakable line is:
let mut c = 27;
let d = c = 99;
let e = "hi bob";