compiler: derive Debug in parser
It's annoying to debug the parser if you have to stop every five seconds to add a Debug impl.
This commit is contained in:
parent
e0192f48c9
commit
c70290da0a
2 changed files with 12 additions and 9 deletions
|
@ -706,7 +706,7 @@ impl<'t> Iterator for RefTokenTreeCursor<'t> {
|
|||
/// involve associated types) for getting individual elements, or
|
||||
/// `RefTokenTreeCursor` if you really want an `Iterator`, e.g. in a `for`
|
||||
/// loop.
|
||||
#[derive(Clone)]
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct TokenTreeCursor {
|
||||
pub stream: TokenStream,
|
||||
index: usize,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue