Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ffb593b

Browse files
committedJun 19, 2022
remove MAX_SUGGESTION_HIGHLIGHT_LINES
1 parent e251247 commit ffb593b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed
 

‎compiler/rustc_errors/src/emitter.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -656,11 +656,6 @@ 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;
664659
/// Maximum number of suggestions to be shown
665660
///
666661
/// Arbitrary, but taken from trait import suggestion limit

0 commit comments

Comments
 (0)
Please sign in to comment.