@@ -107,18 +107,6 @@ class _:
107
107
"""
108
108
109
109
110
- @annotate (MissingExpr )
111
- class _ :
112
- """
113
- A missing expression, used as a placeholder for incomplete syntax.
114
-
115
- ```rust
116
- let x = non_existing_macro!();
117
- ```
118
- """
119
- pass
120
-
121
-
122
110
@annotate (PathExpr )
123
111
class _ :
124
112
"""
@@ -182,46 +170,17 @@ class _:
182
170
"""
183
171
184
172
185
- @annotate (AsyncBlockExpr )
186
- @rust .doc_test_signature ("() -> i32" )
187
- class _ :
188
- """
189
- An async block expression. For example:
190
- ```rust
191
- async {
192
- let x = 42;
193
- x
194
- }.await
195
- ```
196
- """
197
- pass
198
-
199
-
200
- @annotate (ConstExpr )
201
- @rust .doc_test_signature ("() -> bool" )
202
- class _ :
203
- """
204
- A `const` block expression. For example:
205
- ```rust
206
- if const { SRC::IS_ZST || DEST::IS_ZST || mem::align_of::<SRC>() != mem::align_of::<DEST>() } {
207
- return false;
208
- }
209
- ```
210
- """
211
-
212
-
213
- @annotate (UnsafeBlockExpr )
214
- class _ :
215
- """
216
- An unsafe block expression. For example:
217
- ```rust
218
- let layout = unsafe {
219
- let x = 42;
220
- Layout::from_size_align_unchecked(size, align)
221
- };
222
- ```
223
- """
224
- pass
173
+ # @annotate(ConstExpr)
174
+ # @rust.doc_test_signature("() -> bool")
175
+ # class _:
176
+ # """
177
+ # A `const` block expression. For example:
178
+ # ```rust
179
+ # if const { SRC::IS_ZST || DEST::IS_ZST || mem::align_of::<SRC>() != mem::align_of::<DEST>() } {
180
+ # return false;
181
+ # }
182
+ # ```
183
+ # """
225
184
226
185
227
186
@annotate (LoopExpr )
@@ -487,16 +446,6 @@ class _:
487
446
"""
488
447
489
448
490
- @annotate (BoxExpr )
491
- class _ :
492
- """
493
- A box expression. For example:
494
- ```rust
495
- let x = #[rustc_box] Box::new(42);
496
- ```
497
- """
498
-
499
-
500
449
@annotate (PrefixExpr )
501
450
class _ :
502
451
"""
@@ -588,25 +537,25 @@ class _:
588
537
pass
589
538
590
539
591
- @annotate (ElementListExpr )
592
- class _ :
593
- """
594
- An element list expression. For example:
595
- ```rust
596
- [1, 2, 3, 4, 5];
597
- [1, 2, 3, 4, 5][0] = 6;
598
- ```
599
- """
540
+ # @annotate(ElementListExpr)
541
+ # class _:
542
+ # """
543
+ # An element list expression. For example:
544
+ # ```rust
545
+ # [1, 2, 3, 4, 5];
546
+ # [1, 2, 3, 4, 5][0] = 6;
547
+ # ```
548
+ # """
600
549
601
550
602
- @annotate (RepeatExpr )
603
- class _ :
604
- """
605
- A repeat expression. For example:
606
- ```rust
607
- [1; 10];
608
- ```
609
- """
551
+ # @annotate(RepeatExpr)
552
+ # class _:
553
+ # """
554
+ # A repeat expression. For example:
555
+ # ```rust
556
+ # [1; 10];
557
+ # ```
558
+ # """
610
559
611
560
612
561
@annotate (LiteralExpr )
@@ -689,35 +638,6 @@ class _:
689
638
"""
690
639
691
640
692
- # At the HIR-level, we don't have items, only some markers without location indicating where they used to be.
693
- @annotate (ItemStmt )
694
- @qltest .skip
695
- class _ :
696
- """
697
- An item statement. For example:
698
- ```rust
699
- fn print_hello() {
700
- println!("Hello, world!");
701
- }
702
- print_hello();
703
- ```
704
- """
705
- pass
706
-
707
-
708
- @annotate (MissingPat )
709
- class _ :
710
- """
711
- A missing pattern, used as a place holder for incomplete syntax.
712
- ```rust
713
- match Some(42) {
714
- .. => "bad use of .. syntax",
715
- };
716
- ```
717
- """
718
- pass
719
-
720
-
721
641
@annotate (WildcardPat )
722
642
class _ :
723
643
"""
0 commit comments