Skip to content

Commit 1961d9e

Browse files
committed
Add back MAX_SUGGESTION_HIGHLIGHT_LINES so clippy is happy & buildable
1 parent 122849b commit 1961d9e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

compiler/rustc_errors/src/emitter.rs

+5
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,11 @@ impl Emitter for SilentEmitter {
656656
}
657657
}
658658

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;
659664
/// Maximum number of suggestions to be shown
660665
///
661666
/// Arbitrary, but taken from trait import suggestion limit

0 commit comments

Comments
 (0)