Bring attention to suggestions when the only difference is capitalization
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
use crate::source_map::{SourceMap, FilePathMapping};
|
||||
|
||||
use errors::registry::Registry;
|
||||
use errors::{SubDiagnostic, CodeSuggestion, SourceMapper};
|
||||
use errors::{SubDiagnostic, CodeSuggestion, SourceMapper, SourceMapperDyn};
|
||||
use errors::{DiagnosticId, Applicability};
|
||||
use errors::emitter::{Emitter, HumanReadableErrorType};
|
||||
|
||||
@@ -113,6 +113,10 @@ impl Emitter for JsonEmitter {
|
||||
}
|
||||
}
|
||||
|
||||
fn source_map(&self) -> Option<&Lrc<SourceMapperDyn>> {
|
||||
Some(&self.sm)
|
||||
}
|
||||
|
||||
fn should_show_explain(&self) -> bool {
|
||||
match self.json_rendered {
|
||||
HumanReadableErrorType::Short(_) => false,
|
||||
|
||||
Reference in New Issue
Block a user