Skip to content

Commit ffdc0c4

Browse files
Got rustc_expand and rustc_middle compiling
1 parent 6ffac62 commit ffdc0c4

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/librustc_expand/proc_macro_server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ impl server::SourceFile for Rustc<'_> {
610610
Lrc::ptr_eq(file1, file2)
611611
}
612612
fn path(&mut self, file: &Self::SourceFile) -> String {
613-
match file.name {
613+
match file.name.name() {
614614
FileName::Real(ref name) => name
615615
.local_path()
616616
.to_str()

src/librustc_middle/ich/impls_syntax.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ impl<'a> HashStable<StableHashingContext<'a>> for SourceFile {
5656
let SourceFile {
5757
name: _, // We hash the smaller name_hash instead of this
5858
name_hash,
59-
name_was_remapped,
60-
unmapped_path: _,
6159
cnum,
6260
// Do not hash the source as it is not encoded
6361
src: _,
@@ -72,7 +70,6 @@ impl<'a> HashStable<StableHashingContext<'a>> for SourceFile {
7270
} = *self;
7371

7472
(name_hash as u64).hash_stable(hcx, hasher);
75-
name_was_remapped.hash_stable(hcx, hasher);
7673

7774
src_hash.hash_stable(hcx, hasher);
7875

0 commit comments

Comments
 (0)