( all_names: &[Name], env: &LeanEnv, stt: &CompileState, )
| 3388 | "[lean hash mismatch] {}: generated_ci_hash={:x?} lean_ci_hash={:x?}", |
| 3389 | n.pretty(), |
| 3390 | ci.get_hash(), |
| 3391 | lean_ci_ref.get_hash(), |
| 3392 | ); |
| 3393 | // Dump internal shape |
| 3394 | let gen_type = ci.get_type(); |
| 3395 | let orig_type = lean_ci.get_type(); |
| 3396 | if gen_type.get_hash() != orig_type.get_hash() { |
| 3397 | eprintln!(" type DIFFERS"); |
| 3398 | eprintln!(" gen: {}", gen_type.pretty()); |
| 3399 | eprintln!(" orig: {}", orig_type.pretty()); |
| 3400 | } |
| 3401 | if let (Some(gv), Some(ov)) = |
| 3402 | (get_value(&ci), get_value(lean_ci)) |
| 3403 | && gv.get_hash() != ov.get_hash() |
| 3404 | { |
| 3405 | eprintln!(" value DIFFERS"); |
| 3406 | eprintln!(" gen: {}", gv.pretty()); |
| 3407 | eprintln!(" orig: {}", ov.pretty()); |
| 3408 | } |
| 3409 | // Check `all` for DefnInfo |
| 3410 | if let ( |
| 3411 | LeanConstantInfo::DefnInfo(g_d), |
| 3412 | LeanConstantInfo::DefnInfo(o_d), |
| 3413 | ) = (&ci, lean_ci) |
| 3414 | { |
| 3415 | if g_d.all != o_d.all { |
| 3416 | eprintln!( |
| 3417 | " all DIFFERS: gen={:?} orig={:?}", |
| 3418 | g_d.all.iter().map(|n| n.pretty()).collect::<Vec<_>>(), |
| 3419 | o_d.all.iter().map(|n| n.pretty()).collect::<Vec<_>>(), |
| 3420 | ); |
| 3421 | } |
| 3422 | if g_d.hints != o_d.hints { |
no test coverage detected