diff options
| author | David Tolnay <dtolnay@gmail.com> | 2023-01-16 11:41:19 -0800 |
|---|---|---|
| committer | David Tolnay <dtolnay@gmail.com> | 2023-01-16 11:41:19 -0800 |
| commit | 25f0147db2ca7538ab9324d63bc1e0060f67f9c8 (patch) | |
| tree | 02a53b415b1669145670dad92cb76b8dae61c940 | |
| parent | 481725984b4cd94ef5c00917b01c1771b6e5299c (diff) | |
| download | rust-25f0147db2ca7538ab9324d63bc1e0060f67f9c8.tar.gz rust-25f0147db2ca7538ab9324d63bc1e0060f67f9c8.zip | |
implement Hash for proc_macro::LineColumn
| -rw-r--r-- | library/proc_macro/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/proc_macro/src/lib.rs b/library/proc_macro/src/lib.rs index f0e4f5d8a80..1699f0d55bc 100644 --- a/library/proc_macro/src/lib.rs +++ b/library/proc_macro/src/lib.rs @@ -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")] |
