commit | 9f0a28a9c95d59c6969dd05121115884138dede4 | [log] [tgz] |
---|---|---|
author | Alex Crichton <alex@alexcrichton.com> | Sat Jul 21 18:53:35 2018 -0700 |
committer | Alex Crichton <alex@alexcrichton.com> | Sat Jul 21 18:53:35 2018 -0700 |
tree | 13a1b4c48b63abb4d10bb6387dd9dd30f885ed70 | |
parent | 1aa19432fb135be3fcb71b3b7989e05044fef9c7 [diff] |
Fix compile on nightly
diff --git a/src/unstable.rs b/src/unstable.rs index 730c5e7..ca13edf 100644 --- a/src/unstable.rs +++ b/src/unstable.rs
@@ -287,7 +287,7 @@ impl SourceFile { fn nightly(sf: proc_macro::SourceFile) -> Self { - let filename = stable::file_name(sf.path().to_string()); + let filename = stable::file_name(sf.path().display().to_string()); SourceFile::Nightly(sf, filename) }