@@ -527,6 +527,7 @@ fn hover_field_offset() {
527
527
// Hovering over the field when instantiating
528
528
check (
529
529
r#"
530
+ //- /main.rs target_data_layout:e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128
530
531
struct Foo { fiel$0d_a: u8, field_b: i32, field_c: i16 }
531
532
"# ,
532
533
expect ! [ [ r#"
@@ -548,6 +549,7 @@ fn hover_shows_struct_field_info() {
548
549
// Hovering over the field when instantiating
549
550
check (
550
551
r#"
552
+ //- /main.rs target_data_layout:e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128
551
553
struct Foo { field_a: u32 }
552
554
553
555
fn main() {
@@ -570,6 +572,7 @@ fn main() {
570
572
// Hovering over the field in the definition
571
573
check (
572
574
r#"
575
+ //- /main.rs target_data_layout:e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128
573
576
struct Foo { field_a$0: u32 }
574
577
575
578
fn main() {
@@ -1515,6 +1518,8 @@ fn my() {}
1515
1518
fn test_hover_struct_doc_comment ( ) {
1516
1519
check (
1517
1520
r#"
1521
+ //- /main.rs target_data_layout:e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128
1522
+
1518
1523
/// This is an example
1519
1524
/// multiline doc
1520
1525
///
@@ -1573,7 +1578,7 @@ fn foo() { let bar = Ba$0r; }
1573
1578
```
1574
1579
1575
1580
```rust
1576
- struct Bar // size = 0, align = 1
1581
+ struct Bar
1577
1582
```
1578
1583
1579
1584
---
@@ -1602,7 +1607,7 @@ fn foo() { let bar = Ba$0r; }
1602
1607
```
1603
1608
1604
1609
```rust
1605
- struct Bar // size = 0, align = 1
1610
+ struct Bar
1606
1611
```
1607
1612
1608
1613
---
@@ -1630,7 +1635,7 @@ pub struct B$0ar
1630
1635
```
1631
1636
1632
1637
```rust
1633
- pub struct Bar // size = 0, align = 1
1638
+ pub struct Bar
1634
1639
```
1635
1640
1636
1641
---
@@ -1657,7 +1662,7 @@ pub struct B$0ar
1657
1662
```
1658
1663
1659
1664
```rust
1660
- pub struct Bar // size = 0, align = 1
1665
+ pub struct Bar
1661
1666
```
1662
1667
1663
1668
---
@@ -2959,6 +2964,8 @@ fn main() { let foo_test = name_with_dashes::wrapper::Thing::new$0(); }
2959
2964
fn hover_field_pat_shorthand_ref_match_ergonomics ( ) {
2960
2965
check (
2961
2966
r#"
2967
+ //- /main.rs target_data_layout:e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128
2968
+
2962
2969
struct S {
2963
2970
f: i32,
2964
2971
}
@@ -4398,6 +4405,7 @@ fn main() {
4398
4405
fn hover_intra_doc_links ( ) {
4399
4406
check (
4400
4407
r#"
4408
+ //- /main.rs target_data_layout:e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128
4401
4409
4402
4410
pub mod theitem {
4403
4411
/// This is the item. Cool!
@@ -4539,7 +4547,7 @@ trait A where
4539
4547
fn string_shadowed_with_inner_items ( ) {
4540
4548
check (
4541
4549
r#"
4542
- //- /main.rs crate:main deps:alloc
4550
+ //- /main.rs crate:main deps:alloc target_data_layout:e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128
4543
4551
4544
4552
/// Custom `String` type.
4545
4553
struct String;
@@ -5234,7 +5242,7 @@ foo_macro!(
5234
5242
```
5235
5243
5236
5244
```rust
5237
- pub struct Foo // size = 0, align = 1
5245
+ pub struct Foo
5238
5246
```
5239
5247
5240
5248
---
@@ -5248,6 +5256,8 @@ foo_macro!(
5248
5256
fn hover_intra_in_attr ( ) {
5249
5257
check (
5250
5258
r#"
5259
+ //- /main.rs target_data_layout:e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128
5260
+
5251
5261
#[doc = "Doc comment for [`Foo$0`]"]
5252
5262
pub struct Foo(i32);
5253
5263
"# ,
@@ -5368,6 +5378,8 @@ enum Enum {
5368
5378
fn hover_record_variant_field ( ) {
5369
5379
check (
5370
5380
r#"
5381
+ //- /main.rs target_data_layout:e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128
5382
+
5371
5383
enum Enum {
5372
5384
RecordV { field$0: u32 }
5373
5385
}
0 commit comments