Skip to content

Commit 25f0147

Browse files
committed
implement Hash for proc_macro::LineColumn
1 parent 4817259 commit 25f0147

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/proc_macro/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ impl fmt::Debug for Span {
581581

582582
/// A line-column pair representing the start or end of a `Span`.
583583
#[unstable(feature = "proc_macro_span", issue = "54725")]
584-
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
584+
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
585585
pub struct LineColumn {
586586
/// The 1-indexed line in the source file on which the span starts or ends (inclusive).
587587
#[unstable(feature = "proc_macro_span", issue = "54725")]

0 commit comments

Comments
 (0)