Skip to content

Commit

Permalink
Clarify core::panic::Location's docs on ordering.
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Sapin <simon.sapin@exyr.org>
  • Loading branch information
anp and SimonSapin authored Jul 19, 2020
1 parent d275739 commit 416dc4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libcore/panic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ impl fmt::Display for PanicInfo<'_> {
///
/// # Comparisons
///
/// Comparisons for equality and ordering are made in file, line, then column priority. Such
/// comparisons can occasionally have surprising results. See [`Location::file`]'s documentation for
/// more discussion.
/// Comparisons for equality and ordering are made in file, line, then column priority.
/// Files are compared as strings, not `Path`, which could be unexpected.
/// See [`Location::file`]'s documentation for more discussion.
#[lang = "panic_location"]
#[derive(Copy, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
#[stable(feature = "panic_hooks", since = "1.10.0")]
Expand Down

0 comments on commit 416dc4b

Please sign in to comment.