Clarify core::panic::Location's docs on ordering.
Co-authored-by: Simon Sapin <simon.sapin@exyr.org>
This commit is contained in:
parent
d275739c09
commit
416dc4b978
@ -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")]
|
||||
|
Loading…
x
Reference in New Issue
Block a user