diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2025-07-03 22:24:21 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2025-07-22 01:52:34 +0000 |
| commit | 3c81faec23161d3f997666e90e6e34747ace6d28 (patch) | |
| tree | 26cafe1a5afbcedcf754c0e3fac9d3dc91bab4a5 /compiler/rustc_ast/src/tokenstream.rs | |
| parent | ca9eecda36795789511e6e19500cb13b5a053fec (diff) | |
| download | rust-3c81faec23161d3f997666e90e6e34747ace6d28.tar.gz rust-3c81faec23161d3f997666e90e6e34747ace6d28.zip | |
Implement AST visitors using a derive macro.
Diffstat (limited to 'compiler/rustc_ast/src/tokenstream.rs')
| -rw-r--r-- | compiler/rustc_ast/src/tokenstream.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_ast/src/tokenstream.rs b/compiler/rustc_ast/src/tokenstream.rs index c60185cdde0..e55399adfb8 100644 --- a/compiler/rustc_ast/src/tokenstream.rs +++ b/compiler/rustc_ast/src/tokenstream.rs @@ -20,7 +20,7 @@ use std::{cmp, fmt, iter, mem}; use rustc_data_structures::stable_hasher::{HashStable, StableHasher}; use rustc_data_structures::sync; -use rustc_macros::{Decodable, Encodable, HashStable_Generic}; +use rustc_macros::{Decodable, Encodable, HashStable_Generic, Walkable}; use rustc_serialize::{Decodable, Encodable}; use rustc_span::{DUMMY_SP, Span, SpanDecoder, SpanEncoder, Symbol, sym}; use thin_vec::ThinVec; @@ -977,7 +977,7 @@ impl TokenCursor { } } -#[derive(Debug, Copy, Clone, PartialEq, Encodable, Decodable, HashStable_Generic)] +#[derive(Debug, Copy, Clone, PartialEq, Encodable, Decodable, HashStable_Generic, Walkable)] pub struct DelimSpan { pub open: Span, pub close: Span, |
