diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-10-25 12:50:06 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2019-10-25 12:50:06 +0100 |
commit | c48b467eff0e18f3b8fa1b65a21abb19f800f56a (patch) | |
tree | 47d48171346d25e357df7b15c012447756cf9b0b /crates/ra_assists/src/doc_tests | |
parent | 5f779f6c46f29c63483c0e2be732377b1b87e685 (diff) | |
parent | 0dd35ff2b2ceffdb926953fdacc7d30e1968047d (diff) |
Merge #2069
2069: auto-generate assists docs and tests r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_assists/src/doc_tests')
-rw-r--r-- | crates/ra_assists/src/doc_tests/generated.rs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/crates/ra_assists/src/doc_tests/generated.rs b/crates/ra_assists/src/doc_tests/generated.rs new file mode 100644 index 000000000..e5f6910f1 --- /dev/null +++ b/crates/ra_assists/src/doc_tests/generated.rs | |||
@@ -0,0 +1,27 @@ | |||
1 | //! Generated file, do not edit by hand, see `crate/ra_tools/src/codegen` | ||
2 | |||
3 | use super::check; | ||
4 | |||
5 | #[test] | ||
6 | fn doctest_convert_to_guarded_return() { | ||
7 | check( | ||
8 | "convert_to_guarded_return", | ||
9 | r#####" | ||
10 | fn main() { | ||
11 | <|>if cond { | ||
12 | foo(); | ||
13 | bar(); | ||
14 | } | ||
15 | } | ||
16 | "#####, | ||
17 | r#####" | ||
18 | fn main() { | ||
19 | if !cond { | ||
20 | return; | ||
21 | } | ||
22 | foo(); | ||
23 | bar(); | ||
24 | } | ||
25 | "#####, | ||
26 | ) | ||
27 | } | ||