Skip to content

Commit 4eb6303

Browse files
committed
Inline and remove source_file_to_stream.
It has a single call site.
1 parent 2e66154 commit 4eb6303

File tree

1 file changed

+1
-9
lines changed
  • compiler/rustc_parse/src

1 file changed

+1
-9
lines changed

compiler/rustc_parse/src/lib.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,7 @@ pub fn source_str_to_stream(
9999
source: String,
100100
override_span: Option<Span>,
101101
) -> TokenStream {
102-
source_file_to_stream(psess, psess.source_map().new_source_file(name, source), override_span)
103-
}
104-
105-
/// Given a `source_file`, produces a sequence of token trees.
106-
pub fn source_file_to_stream(
107-
psess: &ParseSess,
108-
source_file: Lrc<SourceFile>,
109-
override_span: Option<Span>,
110-
) -> TokenStream {
102+
let source_file = psess.source_map().new_source_file(name, source);
111103
unwrap_or_emit_fatal(maybe_source_file_to_stream(psess, source_file, override_span))
112104
}
113105

0 commit comments

Comments
 (0)