implement Hash for proc_macro::LineColumn

This commit is contained in:
David Tolnay 2023-01-16 11:41:19 -08:00
parent 481725984b
commit 25f0147db2
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View file

@ -581,7 +581,7 @@ impl fmt::Debug for Span {
/// A line-column pair representing the start or end of a `Span`.
#[unstable(feature = "proc_macro_span", issue = "54725")]
#[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).
#[unstable(feature = "proc_macro_span", issue = "54725")]