about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-02-24 21:42:19 +0100
committerGitHub <noreply@github.com>2022-02-24 21:42:19 +0100
commit3bd163f4e8422db4c0de384b2b21bfaaecd2e5c1 (patch)
tree23fbd4cd23c587684432375a288e303b80be8051 /compiler/rustc_codegen_llvm/src
parentec44d48ae396e596f07ecc496f95da2b5ec36223 (diff)
parent34319ff4e1d4b50a2406c03df0befe15362b4227 (diff)
downloadrust-3bd163f4e8422db4c0de384b2b21bfaaecd2e5c1.tar.gz
rust-3bd163f4e8422db4c0de384b2b21bfaaecd2e5c1.zip
Rollup merge of #94327 - Mark-Simulacrum:avoid-macro-sp, r=petrochenkov
Avoid emitting full macro body into JSON errors

While investigating https://github.com/rust-lang/rust/issues/94322, it was noted that currently the JSON diagnostics for macro backtraces include the full def_site span -- the whole macro body.

It seems like this shouldn't be necessary, so this PR adjusts the span to just be the "guessed head", typically the macro name. It doesn't look like we keep enough information to synthesize a nicer span here at this time.

Atop #92123, this reduces output for the src/test/ui/suggestions/missing-lifetime-specifier.rs test from 660 KB to 156 KB locally.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions