aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_mbe
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-09-30 11:46:13 +0100
committerGitHub <[email protected]>2019-09-30 11:46:13 +0100
commitebfba461123928363da55e75195d76314c51fa7e (patch)
treea1eecf37856e82e6a858de330ffdec9e1a0327f5 /crates/ra_mbe
parent733f1d8b709788225bd06f8c0aee1819db92620b (diff)
parenta47bca636cec350cf29c296dafd0c1bec51cd654 (diff)
Merge #1937
1937: Added test for check doc strings in directory crates/ r=andreevlex a=andreevlex #1856 Co-authored-by: Alexander Andreev <[email protected]>
Diffstat (limited to 'crates/ra_mbe')
-rw-r--r--crates/ra_mbe/src/lib.rs8
-rw-r--r--crates/ra_mbe/src/mbe_expander/matcher.rs2
-rw-r--r--crates/ra_mbe/src/subtree_source.rs2
-rw-r--r--crates/ra_mbe/src/syntax_bridge.rs2
-rw-r--r--crates/ra_mbe/src/tt_iter.rs2
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
6mod parser; 6mod parser;
7mod mbe_expander; 7mod 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
1use crate::{ 3use 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
1use ra_parser::{Token, TokenSource}; 3use ra_parser::{Token, TokenSource};
2use ra_syntax::{classify_literal, SmolStr, SyntaxKind, SyntaxKind::*, T}; 4use ra_syntax::{classify_literal, SmolStr, SyntaxKind, SyntaxKind::*, T};
3use std::cell::{Cell, Ref, RefCell}; 5use 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
1use ra_parser::{ 3use 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)]
2pub(crate) struct TtIter<'a> { 4pub(crate) struct TtIter<'a> {
3 pub(crate) inner: std::slice::Iter<'a, tt::TokenTree>, 5 pub(crate) inner: std::slice::Iter<'a, tt::TokenTree>,