diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-06-13 18:28:31 +0400 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-06-16 17:08:26 +0400 |
| commit | 3c55672795bdc4473bbaa1922c1703916839c4aa (patch) | |
| tree | 6b3a59774f929e7f2a1c286bbbf43654f163812e /compiler/rustc_errors | |
| parent | cf6f821c3372b5ddc3cb0a92afcc48a1e0313efa (diff) | |
| download | rust-3c55672795bdc4473bbaa1922c1703916839c4aa.tar.gz rust-3c55672795bdc4473bbaa1922c1703916839c4aa.zip | |
Add back MAX_SUGGESTION_HIGHLIGHT_LINES so clippy is happy & buildable
Diffstat (limited to 'compiler/rustc_errors')
| -rw-r--r-- | compiler/rustc_errors/src/emitter.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/rustc_errors/src/emitter.rs b/compiler/rustc_errors/src/emitter.rs index 690ba14e699..1329e3a0b95 100644 --- a/compiler/rustc_errors/src/emitter.rs +++ b/compiler/rustc_errors/src/emitter.rs @@ -656,6 +656,11 @@ 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 |
