1
Fork 0

don't ICE when emitting linker errors during -Z link-only

note that this still ICEs when passed `-Z link-only --error-format json` because i can't be bothered to fix it right now
This commit is contained in:
jyn 2024-12-21 10:06:07 -05:00
parent cedd4cad21
commit b757663a00
5 changed files with 67 additions and 22 deletions

View file

@ -47,7 +47,7 @@ fn test_positions(code: &str, span: (u32, u32), expected_output: SpanTestData) {
let output = Arc::new(Mutex::new(Vec::new()));
let je = JsonEmitter::new(
Box::new(Shared { data: output.clone() }),
sm,
Some(sm),
fallback_bundle,
true, // pretty
HumanReadableErrorType::Short,