Use Freeze
for SourceFile.external_src
This commit is contained in:
parent
f00c139998
commit
c5996b80be
8 changed files with 91 additions and 46 deletions
|
@ -558,7 +558,7 @@ impl DiagnosticSpanLine {
|
|||
.span_to_lines(span)
|
||||
.map(|lines| {
|
||||
// We can't get any lines if the source is unavailable.
|
||||
if !je.sm.ensure_source_file_source_present(lines.file.clone()) {
|
||||
if !je.sm.ensure_source_file_source_present(&lines.file) {
|
||||
return vec![];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue