diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-06-20 00:25:51 +0400 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-06-20 00:25:51 +0400 |
| commit | ffb593bf4d0dfea864f8e47dfd30098e70b8e5f8 (patch) | |
| tree | 5a5cb1b9d808cc46b31358e6a5b25a9de10c1870 /compiler/rustc_errors/src/emitter.rs | |
| parent | e2512477a9faf2a86ddeba9c8538c84d9c948384 (diff) | |
| download | rust-ffb593bf4d0dfea864f8e47dfd30098e70b8e5f8.tar.gz rust-ffb593bf4d0dfea864f8e47dfd30098e70b8e5f8.zip | |
remove MAX_SUGGESTION_HIGHLIGHT_LINES
Diffstat (limited to 'compiler/rustc_errors/src/emitter.rs')
| -rw-r--r-- | compiler/rustc_errors/src/emitter.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/compiler/rustc_errors/src/emitter.rs b/compiler/rustc_errors/src/emitter.rs index a4cbc73978d..8b2a995f1c5 100644 --- a/compiler/rustc_errors/src/emitter.rs +++ b/compiler/rustc_errors/src/emitter.rs @@ -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 |
