aboutsummaryrefslogtreecommitdiff
path: root/crates/assists/src/tests
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-01-15 19:43:59 +0000
committerGitHub <[email protected]>2021-01-15 19:43:59 +0000
commitd93d3d6d7334bc94bdbfe9f3ab50cafd0113211e (patch)
tree5bd9f3c17f87851325565c3fb0aa698d5583f62c /crates/assists/src/tests
parent8a869e870ac6328967fb120a0ebe44a9c900eaf0 (diff)
parentc303014f3923e46ae63fbcdc6cf6f166bb040b1e (diff)
Merge #7289
7289: Add Unmerge Use assist r=matklad a=unexge Closes https://github.com/rust-analyzer/rust-analyzer/issues/7185 Co-authored-by: unexge <[email protected]>
Diffstat (limited to 'crates/assists/src/tests')
-rw-r--r--crates/assists/src/tests/generated.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/crates/assists/src/tests/generated.rs b/crates/assists/src/tests/generated.rs
index 217f577eb..d48d063b4 100644
--- a/crates/assists/src/tests/generated.rs
+++ b/crates/assists/src/tests/generated.rs
@@ -1138,6 +1138,20 @@ fn arithmetics {
1138} 1138}
1139 1139
1140#[test] 1140#[test]
1141fn doctest_unmerge_use() {
1142 check_doc_test(
1143 "unmerge_use",
1144 r#####"
1145use std::fmt::{Debug, Display$0};
1146"#####,
1147 r#####"
1148use std::fmt::{Debug};
1149use std::fmt::Display;
1150"#####,
1151 )
1152}
1153
1154#[test]
1141fn doctest_unwrap_block() { 1155fn doctest_unwrap_block() {
1142 check_doc_test( 1156 check_doc_test(
1143 "unwrap_block", 1157 "unwrap_block",