diff options
| author | bors <bors@rust-lang.org> | 2017-01-18 02:20:03 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-01-18 02:20:03 +0000 |
| commit | be1daa4a18b6685f42194ea1407f8d5def10b342 (patch) | |
| tree | 1b8a1cf18abe23da64a152c135382ab2ca3bbfa0 /src/libsyntax | |
| parent | c07a6ae77cd4ceb3cf591d34c5608ca91d1f75d4 (diff) | |
| parent | d82d4b66f24e21dd124e1b4765939b230cec3685 (diff) | |
| download | rust-be1daa4a18b6685f42194ea1407f8d5def10b342.tar.gz rust-be1daa4a18b6685f42194ea1407f8d5def10b342.zip | |
Auto merge of #39019 - nikomatsakis:issue-38919, r=eddyb
only consider value items when searching for methods, not types Fixes #38919 r? @eddyb
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/json.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/json.rs b/src/libsyntax/json.rs index a1c273baeea..adab76309fe 100644 --- a/src/libsyntax/json.rs +++ b/src/libsyntax/json.rs @@ -296,7 +296,7 @@ impl DiagnosticSpanLine { h_end: usize) -> DiagnosticSpanLine { DiagnosticSpanLine { - text: fm.get_line(index).unwrap().to_owned(), + text: fm.get_line(index).unwrap_or("").to_owned(), highlight_start: h_start, highlight_end: h_end, } |
