Skip to content

Commit 9f0a28a

Browse files
committed
Fix compile on nightly
1 parent 1aa1943 commit 9f0a28a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unstable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ pub enum SourceFile {
287287

288288
impl SourceFile {
289289
fn nightly(sf: proc_macro::SourceFile) -> Self {
290-
let filename = stable::file_name(sf.path().to_string());
290+
let filename = stable::file_name(sf.path().display().to_string());
291291
SourceFile::Nightly(sf, filename)
292292
}
293293

0 commit comments

Comments
 (0)