We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
source_file_to_stream
1 parent 2e66154 commit 4eb6303Copy full SHA for 4eb6303
compiler/rustc_parse/src/lib.rs
@@ -99,15 +99,7 @@ pub fn source_str_to_stream(
99
source: String,
100
override_span: Option<Span>,
101
) -> 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 {
+ let source_file = psess.source_map().new_source_file(name, source);
111
unwrap_or_emit_fatal(maybe_source_file_to_stream(psess, source_file, override_span))
112
}
113
0 commit comments