diff options
| author | Tyler Mandry <tmandry@gmail.com> | 2019-10-14 17:52:41 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-14 17:52:41 -0700 |
| commit | a14e35f382825549a506eb5c187fa5d58622bb1c (patch) | |
| tree | bd7340907eaa546979c95a0025631519e8cb36a7 /src/libsyntax/source_map.rs | |
| parent | 8d1123d80880c213b27720d2e7d92a093e0e6fe9 (diff) | |
| parent | 8bf6d353772aacc15c78919e3d2f2db0528484b1 (diff) | |
| download | rust-a14e35f382825549a506eb5c187fa5d58622bb1c.tar.gz rust-a14e35f382825549a506eb5c187fa5d58622bb1c.zip | |
Rollup merge of #65398 - estebank:capitalization-only, r=varkor
Bring attention to suggestions when the only difference is capitalization CC #65386.
Diffstat (limited to 'src/libsyntax/source_map.rs')
| -rw-r--r-- | src/libsyntax/source_map.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libsyntax/source_map.rs b/src/libsyntax/source_map.rs index 5e569f9dae3..1501adc5971 100644 --- a/src/libsyntax/source_map.rs +++ b/src/libsyntax/source_map.rs @@ -970,6 +970,9 @@ impl SourceMapper for SourceMap { fn span_to_string(&self, sp: Span) -> String { self.span_to_string(sp) } + fn span_to_snippet(&self, sp: Span) -> Result<String, SpanSnippetError> { + self.span_to_snippet(sp) + } fn span_to_filename(&self, sp: Span) -> FileName { self.span_to_filename(sp) } |
