Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-def/src/item_tree/tests.rs')
-rw-r--r--crates/hir-def/src/item_tree/tests.rs45
1 files changed, 8 insertions, 37 deletions
diff --git a/crates/hir-def/src/item_tree/tests.rs b/crates/hir-def/src/item_tree/tests.rs
index 7a85e8d175..e39efd31c6 100644
--- a/crates/hir-def/src/item_tree/tests.rs
+++ b/crates/hir-def/src/item_tree/tests.rs
@@ -73,10 +73,10 @@ extern "C" {
fn ex_fn();
}
"#,
- expect![[r##"
+ expect![[r#"
#[on_extern_block]
// AstId: ExternBlock[0000, 0]
- extern "C" {
+ extern {
#[on_extern_type]
// AstId: TypeAlias[9FDF, 0]
pub(self) type ExType;
@@ -89,7 +89,7 @@ extern "C" {
// AstId: Fn[452D, 0]
pub(self) fn ex_fn;
}
- "##]],
+ "#]],
);
}
@@ -129,39 +129,16 @@ enum E {
#[derive(Debug)]
// AstId: Struct[C7A1, 0]
- pub(self) struct Struct {
- #[doc = " fld docs"]
- pub(self) fld,
- }
+ pub(self) struct Struct { ... }
// AstId: Struct[DAC2, 0]
- pub(self) struct Tuple(
- #[attr]
- pub(self) 0,
- );
+ pub(self) struct Tuple(...);
// AstId: Union[2DBB, 0]
- pub(self) union Ize {
- pub(self) a,
- pub(self) b,
- }
+ pub(self) union Ize { ... }
// AstId: Enum[7FF8, 0]
- pub(self) enum E {
- // AstId: Variant[C717, 0]
- #[doc = " comment on Unit"]
- Unit,
- // AstId: Variant[AEAB, 0]
- #[doc = " comment on Tuple"]
- Tuple(
- pub(self) 0,
- ),
- // AstId: Variant[4B1B, 0]
- Struct {
- #[doc = " comment on a: u8"]
- pub(self) a,
- },
- }
+ pub(self) enum E { ... }
"#]],
);
}
@@ -197,13 +174,7 @@ trait Tr: SuperTrait + 'lifetime {
pub(self) fn f;
// AstId: Trait[2998, 0]
- pub(self) trait Tr {
- // AstId: TypeAlias[9F08, 0]
- pub(self) type Assoc;
-
- // AstId: Fn[6C0C, 0]
- pub(self) fn method;
- }
+ pub(self) trait Tr { ... }
"#]],
);
}