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