Skip to content

Commit

Permalink
implement Hash for proc_macro::LineColumn
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jan 16, 2023
1 parent 4817259 commit 25f0147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/proc_macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down

0 comments on commit 25f0147

Please sign in to comment.