Skip to content

Commit 3b61803

Browse files
committed
Inline and remove source_file_to_stream.
It has a single call site.
1 parent 2b9f414 commit 3b61803

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

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

0 commit comments

Comments
 (0)