@@ -734,6 +734,8 @@ pub enum RangeSyntax {
734
734
}
735
735
736
736
/// All the different flavors of pattern that Rust recognizes.
737
+ //
738
+ // Adding a new variant? Please update `test_pat` in `tests/ui/macros/stringify.rs`.
737
739
#[ derive( Clone , Encodable , Decodable , Debug ) ]
738
740
pub enum PatKind {
739
741
/// Represents a wildcard pattern (`_`).
@@ -967,6 +969,7 @@ impl Stmt {
967
969
}
968
970
}
969
971
972
+ // Adding a new variant? Please update `test_stmt` in `tests/ui/macros/stringify.rs`.
970
973
#[ derive( Clone , Encodable , Decodable , Debug ) ]
971
974
pub enum StmtKind {
972
975
/// A local (let) binding.
@@ -1345,6 +1348,7 @@ pub struct StructExpr {
1345
1348
pub rest : StructRest ,
1346
1349
}
1347
1350
1351
+ // Adding a new variant? Please update `test_expr` in `tests/ui/macros/stringify.rs`.
1348
1352
#[ derive( Clone , Encodable , Decodable , Debug ) ]
1349
1353
pub enum ExprKind {
1350
1354
/// An array (`[a, b, c, d]`)
@@ -2015,6 +2019,8 @@ pub struct BareFnTy {
2015
2019
}
2016
2020
2017
2021
/// The various kinds of type recognized by the compiler.
2022
+ //
2023
+ // Adding a new variant? Please update `test_ty` in `tests/ui/macros/stringify.rs`.
2018
2024
#[ derive( Clone , Encodable , Decodable , Debug ) ]
2019
2025
pub enum TyKind {
2020
2026
/// A variable-length slice (`[T]`).
@@ -2880,6 +2886,7 @@ pub struct ConstItem {
2880
2886
pub expr : Option < P < Expr > > ,
2881
2887
}
2882
2888
2889
+ // Adding a new variant? Please update `test_item` in `tests/ui/macros/stringify.rs`.
2883
2890
#[ derive( Clone , Encodable , Decodable , Debug ) ]
2884
2891
pub enum ItemKind {
2885
2892
/// An `extern crate` item, with the optional *original* crate name if the crate was renamed.
0 commit comments