mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
parent
7ddc3b468a
commit
36f97d39a4
@ -112,7 +112,7 @@ const ATTRIBUTES: &[AttrCompletion] = &[
|
|||||||
AttrCompletion { label: "repr", snippet: Some("repr(${0:C})"), should_be_inner: false },
|
AttrCompletion { label: "repr", snippet: Some("repr(${0:C})"), should_be_inner: false },
|
||||||
AttrCompletion {
|
AttrCompletion {
|
||||||
label: "should_panic",
|
label: "should_panic",
|
||||||
snippet: Some(r#"expected = "${0:reason}""#),
|
snippet: Some(r#"should_panic(expected = "${0:reason}")"#),
|
||||||
should_be_inner: false,
|
should_be_inner: false,
|
||||||
},
|
},
|
||||||
AttrCompletion {
|
AttrCompletion {
|
||||||
@ -571,7 +571,7 @@ mod tests {
|
|||||||
label: "should_panic",
|
label: "should_panic",
|
||||||
source_range: 19..19,
|
source_range: 19..19,
|
||||||
delete: 19..19,
|
delete: 19..19,
|
||||||
insert: "expected = \"${0:reason}\"",
|
insert: "should_panic(expected = \"${0:reason}\")",
|
||||||
kind: Attribute,
|
kind: Attribute,
|
||||||
},
|
},
|
||||||
CompletionItem {
|
CompletionItem {
|
||||||
@ -810,7 +810,7 @@ mod tests {
|
|||||||
label: "should_panic",
|
label: "should_panic",
|
||||||
source_range: 20..20,
|
source_range: 20..20,
|
||||||
delete: 20..20,
|
delete: 20..20,
|
||||||
insert: "expected = \"${0:reason}\"",
|
insert: "should_panic(expected = \"${0:reason}\")",
|
||||||
kind: Attribute,
|
kind: Attribute,
|
||||||
},
|
},
|
||||||
CompletionItem {
|
CompletionItem {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user