rust/compiler/rustc_errors/src
Matthias Krüger 2846699366
Rollup merge of #134181 - estebank:trim-render, r=oli-obk
Tweak multispan rendering to reduce output length

Consider comments and bare delimiters the same as an "empty line" for purposes of hiding rendered code output of long multispans. This results in more aggressive shortening of rendered output without losing too much context, specially in `*.stderr` tests that have "hidden" comments. We do that check not only on the first 4 lines of the multispan, but now also on the previous to last line as well.
2024-12-14 03:54:31 +01:00
..
json Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
markdown chore: Fix typos in 'compiler' (batch 1) 2024-09-02 07:42:38 +02:00
annotate_snippet_emitter_writer.rs Store a single copy of the error registry in DiagCtxt 2024-12-06 18:42:31 +00:00
codes.rs Stop using String for error codes. 2024-01-29 07:41:41 +11:00
diagnostic_impls.rs Eliminate magic numbers from expression precedence 2024-11-30 17:53:40 -08:00
diagnostic.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
emitter.rs Account for /// when rendering multiline spans 2024-12-13 18:48:33 +00:00
error.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
json.rs Store a single copy of the error registry in DiagCtxt 2024-12-06 18:42:31 +00:00
lib.rs Rollup merge of #134187 - nnethercote:rm-PErr, r=jieyouxu 2024-12-12 08:07:05 +01:00
lock.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
registry.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
snippet.rs Add warn(unreachable_pub) to rustc_errors. 2024-08-27 12:03:37 +10:00
styled_buffer.rs Add warn(unreachable_pub) to rustc_errors. 2024-08-27 12:03:37 +10:00
tests.rs Delete the cfg(not(parallel)) serial compiler 2024-11-12 13:38:58 +00:00
translation.rs Convert Option<&Lrc<T>> return types to Option<&T>. 2024-10-07 13:56:29 +11:00