File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
compiler/rustc_expand/src Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1217,7 +1217,7 @@ impl<'a> ExtCtxt<'a> {
12171217///
12181218/// This unifies the logic used for resolving `include_X!`.
12191219pub fn resolve_path (
1220- parse_sess : & Session ,
1220+ sess : & Session ,
12211221 path : impl Into < PathBuf > ,
12221222 span : Span ,
12231223) -> PResult < ' _ , PathBuf > {
@@ -1227,15 +1227,15 @@ pub fn resolve_path(
12271227 // after macro expansion (that is, they are unhygienic).
12281228 if !path. is_absolute ( ) {
12291229 let callsite = span. source_callsite ( ) ;
1230- let mut result = match parse_sess . source_map ( ) . span_to_filename ( callsite) {
1230+ let mut result = match sess . source_map ( ) . span_to_filename ( callsite) {
12311231 FileName :: Real ( name) => name
12321232 . into_local_path ( )
12331233 . expect ( "attempting to resolve a file path in an external file" ) ,
12341234 FileName :: DocTest ( path, _) => path,
12351235 other => {
1236- return Err ( parse_sess . dcx ( ) . create_err ( errors:: ResolveRelativePath {
1236+ return Err ( sess . dcx ( ) . create_err ( errors:: ResolveRelativePath {
12371237 span,
1238- path : parse_sess . source_map ( ) . filename_for_diagnostics ( & other) . to_string ( ) ,
1238+ path : sess . source_map ( ) . filename_for_diagnostics ( & other) . to_string ( ) ,
12391239 } ) ) ;
12401240 }
12411241 } ;
You can’t perform that action at this time.
0 commit comments