We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 122849b commit 1961d9eCopy full SHA for 1961d9e
compiler/rustc_errors/src/emitter.rs
@@ -656,6 +656,11 @@ impl Emitter for SilentEmitter {
656
}
657
658
659
+/// Maximum number of lines we will print for a multiline suggestion; arbitrary.
660
+///
661
+/// This should be replaced with a more involved mechanism to output multiline suggestions that
662
+/// more closely mimics the regular diagnostic output, where irrelevant code lines are elided.
663
+pub const MAX_SUGGESTION_HIGHLIGHT_LINES: usize = 6;
664
/// Maximum number of suggestions to be shown
665
///
666
/// Arbitrary, but taken from trait import suggestion limit
0 commit comments