Skip to content

Commit

Permalink
Merge pull request rust-lang#129 from JohnTitor/real-file-name
Browse files Browse the repository at this point in the history
Rustup to the latest nightly
  • Loading branch information
Manishearth authored Jun 2, 2020
2 parents aa4e42f + 51d313e commit 0bbdabf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/changes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
};
Expand Down
4 changes: 2 additions & 2 deletions tests/full_cases/log-0.3.4-0.3.8.windows_msvc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ warning: technically breaking changes in `<new::LogRecord<'a> as std::fmt::Debug
|
= note: trait impl generalized or newly added (technically breaking)

warning: technically breaking changes in `<new::LogMetadata<'a> as std::cmp::Eq>`
warning: technically breaking changes in `<new::LogMetadata<'a> as std::marker::StructuralEq>`
--> log-0.3.8\src\lib.rs:552:10
|
552 | #[derive(Eq, PartialEq, Ord, PartialOrd, Hash, Debug)]
Expand Down Expand Up @@ -71,7 +71,7 @@ warning: technically breaking changes in `<new::LogMetadata<'a> as std::fmt::Deb
|
= note: trait impl generalized or newly added (technically breaking)

warning: technically breaking changes in `<new::LogLocation as std::cmp::Eq>`
warning: technically breaking changes in `<new::LogLocation as std::marker::StructuralEq>`
--> log-0.3.8\src\lib.rs:604:30
|
604 | #[derive(Copy, Clone, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)]
Expand Down

0 comments on commit 0bbdabf

Please sign in to comment.