diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2019-10-13 21:48:39 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2019-10-13 21:48:39 -0700 |
| commit | 4bb771615e194e64d0fc9cd97c1cdcc4972a1771 (patch) | |
| tree | c5f7fcb29adf6e80ebe2fe23a8066b95cdec7757 /src/librustc_errors/annotate_snippet_emitter_writer.rs | |
| parent | 898f36c83cc28d7921a1d7b3605323dc5cfcf533 (diff) | |
| download | rust-4bb771615e194e64d0fc9cd97c1cdcc4972a1771.tar.gz rust-4bb771615e194e64d0fc9cd97c1cdcc4972a1771.zip | |
Bring attention to suggestions when the only difference is capitalization
Diffstat (limited to 'src/librustc_errors/annotate_snippet_emitter_writer.rs')
| -rw-r--r-- | src/librustc_errors/annotate_snippet_emitter_writer.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/librustc_errors/annotate_snippet_emitter_writer.rs b/src/librustc_errors/annotate_snippet_emitter_writer.rs index 0281d10fd93..16a1a28cd3a 100644 --- a/src/librustc_errors/annotate_snippet_emitter_writer.rs +++ b/src/librustc_errors/annotate_snippet_emitter_writer.rs @@ -49,6 +49,10 @@ impl Emitter for AnnotateSnippetEmitterWriter { &suggestions); } + fn source_map(&self) -> Option<&Lrc<SourceMapperDyn>> { + self.source_map.as_ref() + } + fn should_show_explain(&self) -> bool { !self.short_message } |
