Merge pull request #362 from dtolnay/hashlinecolumn

Implement Hash for LineColumn
This commit is contained in:
David Tolnay 2023-01-16 11:33:29 -08:00 committed by GitHub
commit f01da432fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@ use core::cmp::Ordering;
///
/// This type is semver exempt and not exposed by default.
#[cfg_attr(doc_cfg, doc(cfg(feature = "span-locations")))]
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub struct LineColumn {
/// The 1-indexed line in the source file on which the span starts or ends
/// (inclusive).