Inline and remove source_file_to_stream
.
It has a single call site.
This commit is contained in:
parent
ab192a0c97
commit
264dbe4d81
1 changed files with 1 additions and 9 deletions
|
@ -100,15 +100,7 @@ pub fn source_str_to_stream(
|
||||||
source: String,
|
source: String,
|
||||||
override_span: Option<Span>,
|
override_span: Option<Span>,
|
||||||
) -> TokenStream {
|
) -> TokenStream {
|
||||||
source_file_to_stream(psess, psess.source_map().new_source_file(name, source), override_span)
|
let source_file = psess.source_map().new_source_file(name, source);
|
||||||
}
|
|
||||||
|
|
||||||
/// Given a `source_file`, produces a sequence of token trees.
|
|
||||||
pub fn source_file_to_stream(
|
|
||||||
psess: &ParseSess,
|
|
||||||
source_file: Lrc<SourceFile>,
|
|
||||||
override_span: Option<Span>,
|
|
||||||
) -> TokenStream {
|
|
||||||
unwrap_or_emit_fatal(maybe_source_file_to_stream(psess, source_file, override_span))
|
unwrap_or_emit_fatal(maybe_source_file_to_stream(psess, source_file, override_span))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue