Add module documentation support

This commit is contained in:
Jeremy A. Kolb 2019-01-25 12:51:36 -05:00
parent bce0c6267a
commit 6588579116
4 changed files with 50 additions and 1 deletions

View file

@ -65,6 +65,22 @@ mod tests {
check_completion(code, expected_completions, CompletionKind::Reference);
}
#[test]
fn completes_mod_with_docs() {
check_reference_completion(
"mod_with_docs",
r"
use self::my<|>;
/// Some simple
/// docs describing `mod my`.
mod my {
struct Bar;
}
",
);
}
#[test]
fn completes_use_item_starting_with_self() {
check_reference_completion(