Skip to content

Commit

Permalink
remove MAX_SUGGESTION_HIGHLIGHT_LINES
Browse files Browse the repository at this point in the history
  • Loading branch information
WaffleLapkin committed Jun 19, 2022
1 parent e251247 commit ffb593b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions compiler/rustc_errors/src/emitter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -656,11 +656,6 @@ impl Emitter for SilentEmitter {
}
}

/// Maximum number of lines we will print for a multiline suggestion; arbitrary.
///
/// This should be replaced with a more involved mechanism to output multiline suggestions that
/// more closely mimics the regular diagnostic output, where irrelevant code lines are elided.
pub const MAX_SUGGESTION_HIGHLIGHT_LINES: usize = 6;
/// Maximum number of suggestions to be shown
///
/// Arbitrary, but taken from trait import suggestion limit
Expand Down

0 comments on commit ffb593b

Please sign in to comment.