Skip to content

Commit c8f40b1

Browse files
Fixup
1 parent 489ae7a commit c8f40b1

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

crates/mbe/src/lib.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,13 @@ impl fmt::Display for ExpandError {
6464
}
6565
}
6666

67-
pub use crate::syntax_bridge::{
68-
ast_to_token_tree, parse_exprs_with_sep, parse_to_token_tree, syntax_node_to_token_tree,
69-
token_tree_to_syntax_node,
67+
pub use crate::{
68+
syntax_bridge::{
69+
ast_to_token_tree, parse_exprs_with_sep, parse_to_token_tree, syntax_node_to_token_tree,
70+
token_tree_to_syntax_node,
71+
},
72+
token_map::TokenMap,
7073
};
71-
pub use crate::token_map::TokenMap;
7274

7375
/// This struct contains AST for a single `macro_rules` definition. What might
7476
/// be very confusing is that AST has almost exactly the same shape as

crates/mbe/src/token_map.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Mapping between `TokenId`s and the token's position in macro definitions or inputs.
2+
13
use parser::{SyntaxKind, T};
24
use syntax::{TextRange, TextSize};
35

0 commit comments

Comments
 (0)