File tree 1 file changed +4
-4
lines changed
compiler/rustc_expand/src
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> {
1217
1217
///
1218
1218
/// This unifies the logic used for resolving `include_X!`.
1219
1219
pub fn resolve_path (
1220
- parse_sess : & Session ,
1220
+ sess : & Session ,
1221
1221
path : impl Into < PathBuf > ,
1222
1222
span : Span ,
1223
1223
) -> PResult < ' _ , PathBuf > {
@@ -1227,15 +1227,15 @@ pub fn resolve_path(
1227
1227
// after macro expansion (that is, they are unhygienic).
1228
1228
if !path. is_absolute ( ) {
1229
1229
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) {
1231
1231
FileName :: Real ( name) => name
1232
1232
. into_local_path ( )
1233
1233
. expect ( "attempting to resolve a file path in an external file" ) ,
1234
1234
FileName :: DocTest ( path, _) => path,
1235
1235
other => {
1236
- return Err ( parse_sess . dcx ( ) . create_err ( errors:: ResolveRelativePath {
1236
+ return Err ( sess . dcx ( ) . create_err ( errors:: ResolveRelativePath {
1237
1237
span,
1238
- path : parse_sess . source_map ( ) . filename_for_diagnostics ( & other) . to_string ( ) ,
1238
+ path : sess . source_map ( ) . filename_for_diagnostics ( & other) . to_string ( ) ,
1239
1239
} ) ) ;
1240
1240
}
1241
1241
} ;
You can’t perform that action at this time.
0 commit comments