diff options
author | Alexander Andreev <[email protected]> | 2019-09-30 09:58:53 +0100 |
---|---|---|
committer | Alexander Andreev <[email protected]> | 2019-09-30 09:58:53 +0100 |
commit | fdbd6bb11a0c47bf9ba1428e6bd432cd2ce72045 (patch) | |
tree | e5325e7642552b1902428eb4577e6c9d4f2e1260 /crates/ra_mbe | |
parent | 2b69c84396cf376b496e7de3c954400e51b5fc24 (diff) |
Added test for check doc strings in crates.
#1856
Diffstat (limited to 'crates/ra_mbe')
-rw-r--r-- | crates/ra_mbe/src/lib.rs | 8 | ||||
-rw-r--r-- | crates/ra_mbe/src/mbe_expander/matcher.rs | 2 | ||||
-rw-r--r-- | crates/ra_mbe/src/subtree_source.rs | 2 | ||||
-rw-r--r-- | crates/ra_mbe/src/syntax_bridge.rs | 2 | ||||
-rw-r--r-- | crates/ra_mbe/src/tt_iter.rs | 2 |
5 files changed, 12 insertions, 4 deletions
diff --git a/crates/ra_mbe/src/lib.rs b/crates/ra_mbe/src/lib.rs index a0904323c..afdbee84e 100644 --- a/crates/ra_mbe/src/lib.rs +++ b/crates/ra_mbe/src/lib.rs | |||
@@ -1,7 +1,7 @@ | |||
1 | /// `mbe` (short for Macro By Example) crate contains code for handling | 1 | //! `mbe` (short for Macro By Example) crate contains code for handling |
2 | /// `macro_rules` macros. It uses `TokenTree` (from `ra_tt` package) as the | 2 | //! `macro_rules` macros. It uses `TokenTree` (from `ra_tt` package) as the |
3 | /// interface, although it contains some code to bridge `SyntaxNode`s and | 3 | //! interface, although it contains some code to bridge `SyntaxNode`s and |
4 | /// `TokenTree`s as well! | 4 | //! `TokenTree`s as well! |
5 | 5 | ||
6 | mod parser; | 6 | mod parser; |
7 | mod mbe_expander; | 7 | mod mbe_expander; |
diff --git a/crates/ra_mbe/src/mbe_expander/matcher.rs b/crates/ra_mbe/src/mbe_expander/matcher.rs index aff953102..0548e8512 100644 --- a/crates/ra_mbe/src/mbe_expander/matcher.rs +++ b/crates/ra_mbe/src/mbe_expander/matcher.rs | |||
@@ -1,3 +1,5 @@ | |||
1 | //! FIXME: write short doc here | ||
2 | |||
1 | use crate::{ | 3 | use crate::{ |
2 | mbe_expander::{Binding, Bindings, Fragment}, | 4 | mbe_expander::{Binding, Bindings, Fragment}, |
3 | parser::{parse_pattern, Op, RepeatKind, Separator}, | 5 | parser::{parse_pattern, Op, RepeatKind, Separator}, |
diff --git a/crates/ra_mbe/src/subtree_source.rs b/crates/ra_mbe/src/subtree_source.rs index cf7458905..7ef45f6dc 100644 --- a/crates/ra_mbe/src/subtree_source.rs +++ b/crates/ra_mbe/src/subtree_source.rs | |||
@@ -1,3 +1,5 @@ | |||
1 | //! FIXME: write short doc here | ||
2 | |||
1 | use ra_parser::{Token, TokenSource}; | 3 | use ra_parser::{Token, TokenSource}; |
2 | use ra_syntax::{classify_literal, SmolStr, SyntaxKind, SyntaxKind::*, T}; | 4 | use ra_syntax::{classify_literal, SmolStr, SyntaxKind, SyntaxKind::*, T}; |
3 | use std::cell::{Cell, Ref, RefCell}; | 5 | use std::cell::{Cell, Ref, RefCell}; |
diff --git a/crates/ra_mbe/src/syntax_bridge.rs b/crates/ra_mbe/src/syntax_bridge.rs index 2d035307b..1b543c84b 100644 --- a/crates/ra_mbe/src/syntax_bridge.rs +++ b/crates/ra_mbe/src/syntax_bridge.rs | |||
@@ -1,3 +1,5 @@ | |||
1 | //! FIXME: write short doc here | ||
2 | |||
1 | use ra_parser::{ | 3 | use ra_parser::{ |
2 | FragmentKind::{self, *}, | 4 | FragmentKind::{self, *}, |
3 | ParseError, TreeSink, | 5 | ParseError, TreeSink, |
diff --git a/crates/ra_mbe/src/tt_iter.rs b/crates/ra_mbe/src/tt_iter.rs index c53f99d1e..319f1ee65 100644 --- a/crates/ra_mbe/src/tt_iter.rs +++ b/crates/ra_mbe/src/tt_iter.rs | |||
@@ -1,3 +1,5 @@ | |||
1 | //! FIXME: write short doc here | ||
2 | |||
1 | #[derive(Debug, Clone)] | 3 | #[derive(Debug, Clone)] |
2 | pub(crate) struct TtIter<'a> { | 4 | pub(crate) struct TtIter<'a> { |
3 | pub(crate) inner: std::slice::Iter<'a, tt::TokenTree>, | 5 | pub(crate) inner: std::slice::Iter<'a, tt::TokenTree>, |