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
|
||||||
///
|
///
|
||||||
/// Comparisons for equality and ordering are made in file, line, then column priority. Such
|
/// Comparisons for equality and ordering are made in file, line, then column priority.
|
||||||
/// comparisons can occasionally have surprising results. See [`Location::file`]'s documentation for
|
/// Files are compared as strings, not `Path`, which could be unexpected.
|
||||||
/// more discussion.
|
/// See [`Location::file`]'s documentation for more discussion.
|
||||||
#[lang = "panic_location"]
|
#[lang = "panic_location"]
|
||||||
#[derive(Copy, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
|
#[derive(Copy, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
|
||||||
#[stable(feature = "panic_hooks", since = "1.10.0")]
|
#[stable(feature = "panic_hooks", since = "1.10.0")]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user