diff options
author | uHOOCCOOHu <[email protected]> | 2019-10-02 19:50:22 +0100 |
---|---|---|
committer | uHOOCCOOHu <[email protected]> | 2019-10-02 19:50:22 +0100 |
commit | b271cb18d5ab19624e751867df6705cd1e94edbc (patch) | |
tree | 0bda9053cf7def206013ed37a92d39e27270e472 | |
parent | 1067a1c5f649cc206e35b427eaa8d6553280cc96 (diff) |
Add docs
-rw-r--r-- | crates/ra_cfg/src/cfg_expr.rs | 4 | ||||
-rw-r--r-- | crates/ra_hir/src/attr.rs | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/crates/ra_cfg/src/cfg_expr.rs b/crates/ra_cfg/src/cfg_expr.rs index 811f83048..39d71851c 100644 --- a/crates/ra_cfg/src/cfg_expr.rs +++ b/crates/ra_cfg/src/cfg_expr.rs | |||
@@ -1,3 +1,7 @@ | |||
1 | //! The condition expression used in `#[cfg(..)]` attributes. | ||
2 | //! | ||
3 | //! See: https://doc.rust-lang.org/reference/conditional-compilation.html#conditional-compilation | ||
4 | |||
1 | use std::slice::Iter as SliceIter; | 5 | use std::slice::Iter as SliceIter; |
2 | 6 | ||
3 | use ra_syntax::SmolStr; | 7 | use ra_syntax::SmolStr; |
diff --git a/crates/ra_hir/src/attr.rs b/crates/ra_hir/src/attr.rs index a8a7e9006..f67e80bfd 100644 --- a/crates/ra_hir/src/attr.rs +++ b/crates/ra_hir/src/attr.rs | |||
@@ -1,3 +1,5 @@ | |||
1 | //! A higher level attributes based on TokenTree, with also some shortcuts. | ||
2 | |||
1 | use std::sync::Arc; | 3 | use std::sync::Arc; |
2 | 4 | ||
3 | use mbe::ast_to_token_tree; | 5 | use mbe::ast_to_token_tree; |