From 773b25a5568ceb5cde1124101cd2dcce37eec28f Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Tue, 2 Jun 2020 19:03:00 +0900 Subject: [PATCH 1/2] Rustup to the latest nightly --- src/changes.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/changes.rs b/src/changes.rs index 9066afa0..ae418b1f 100644 --- a/src/changes.rs +++ b/src/changes.rs @@ -87,8 +87,8 @@ impl<'a> Serialize for RSpan<'a> { let hi = self.0.source_map().lookup_char_pos(self.1.hi()); assert!(lo.file.name == hi.file.name); - let file_name = if let FileName::Real(ref p) = lo.file.name { - format!("{}", p.display()) + let file_name = if let FileName::Real(ref name) = lo.file.name { + format!("{}", name.local_path().display()) } else { "no file name".to_owned() }; From 51d313ebcfa398223cbbb1938bacdebd136377c3 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Tue, 2 Jun 2020 20:33:57 +0900 Subject: [PATCH 2/2] Update test --- tests/full_cases/log-0.3.4-0.3.8.windows_msvc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/full_cases/log-0.3.4-0.3.8.windows_msvc b/tests/full_cases/log-0.3.4-0.3.8.windows_msvc index 68ef6b55..ecd8f1c4 100644 --- a/tests/full_cases/log-0.3.4-0.3.8.windows_msvc +++ b/tests/full_cases/log-0.3.4-0.3.8.windows_msvc @@ -23,7 +23,7 @@ warning: technically breaking changes in ` as std::fmt::Debug | = note: trait impl generalized or newly added (technically breaking) -warning: technically breaking changes in ` as std::cmp::Eq>` +warning: technically breaking changes in ` as std::marker::StructuralEq>` --> log-0.3.8\src\lib.rs:552:10 | 552 | #[derive(Eq, PartialEq, Ord, PartialOrd, Hash, Debug)] @@ -71,7 +71,7 @@ warning: technically breaking changes in ` as std::fmt::Deb | = note: trait impl generalized or newly added (technically breaking) -warning: technically breaking changes in `` +warning: technically breaking changes in `` --> log-0.3.8\src\lib.rs:604:30 | 604 | #[derive(Copy, Clone, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)]