@@ -122,7 +122,7 @@ fn maybe_source_file_to_parser(
122
122
source_file : Lrc < SourceFile > ,
123
123
) -> Result < Parser < ' _ > , Vec < Diag < ' _ > > > {
124
124
let end_pos = source_file. end_position ( ) ;
125
- let stream = maybe_file_to_stream ( psess, source_file, None ) ?;
125
+ let stream = maybe_source_file_to_stream ( psess, source_file, None ) ?;
126
126
let mut parser = stream_to_parser ( psess, stream, None ) ;
127
127
if parser. token == token:: Eof {
128
128
parser. token . span = Span :: new ( end_pos, end_pos, parser. token . span . ctxt ( ) , None ) ;
@@ -148,12 +148,12 @@ pub fn source_file_to_stream(
148
148
source_file : Lrc < SourceFile > ,
149
149
override_span : Option < Span > ,
150
150
) -> TokenStream {
151
- panictry_buffer ! ( maybe_file_to_stream ( psess, source_file, override_span) )
151
+ panictry_buffer ! ( maybe_source_file_to_stream ( psess, source_file, override_span) )
152
152
}
153
153
154
154
/// Given a source file, produces a sequence of token trees. Returns any buffered errors from
155
155
/// parsing the token stream.
156
- fn maybe_file_to_stream < ' psess > (
156
+ fn maybe_source_file_to_stream < ' psess > (
157
157
psess : & ' psess ParseSess ,
158
158
source_file : Lrc < SourceFile > ,
159
159
override_span : Option < Span > ,
0 commit comments