File tree 4 files changed +6
-4
lines changed
src/tools/error_index_generator
4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -816,6 +816,7 @@ fn generic_simd_intrinsic<'ll, 'tcx>(
816
816
span : Span ,
817
817
) -> Result < & ' ll Value , ( ) > {
818
818
// macros for error handling:
819
+ #[ cfg_attr( not( bootstrap) , allow( unused_macro_rules) ) ]
819
820
macro_rules! emit_error {
820
821
( $msg: tt) => {
821
822
emit_error!( $msg, )
@@ -1144,6 +1145,7 @@ fn generic_simd_intrinsic<'ll, 'tcx>(
1144
1145
span : Span ,
1145
1146
args : & [ OperandRef < ' tcx , & ' ll Value > ] ,
1146
1147
) -> Result < & ' ll Value , ( ) > {
1148
+ #[ cfg_attr( not( bootstrap) , allow( unused_macro_rules) ) ]
1147
1149
macro_rules! emit_error {
1148
1150
( $msg: tt) => {
1149
1151
emit_error!( $msg, )
Original file line number Diff line number Diff line change @@ -258,6 +258,7 @@ macro_rules! make_mir_visitor {
258
258
// for best performance, we want to use an iterator rather
259
259
// than a for-loop, to avoid calling `body::Body::invalidate` for
260
260
// each basic block.
261
+ #[ cfg_attr( not( bootstrap) , allow( unused_macro_rules) ) ]
261
262
macro_rules! basic_blocks {
262
263
( mut ) => ( body. basic_blocks_mut( ) . iter_enumerated_mut( ) ) ;
263
264
( ) => ( body. basic_blocks( ) . iter_enumerated( ) ) ;
@@ -279,6 +280,7 @@ macro_rules! make_mir_visitor {
279
280
self . visit_local_decl( local, & $( $mutability) ? body. local_decls[ local] ) ;
280
281
}
281
282
283
+ #[ cfg_attr( not( bootstrap) , allow( unused_macro_rules) ) ]
282
284
macro_rules! type_annotations {
283
285
( mut ) => ( body. user_type_annotations. iter_enumerated_mut( ) ) ;
284
286
( ) => ( body. user_type_annotations. iter_enumerated( ) ) ;
@@ -932,6 +934,7 @@ macro_rules! make_mir_visitor {
932
934
body: & $( $mutability) ? Body <' tcx>,
933
935
location: Location
934
936
) {
937
+ #[ cfg_attr( not( bootstrap) , allow( unused_macro_rules) ) ]
935
938
macro_rules! basic_blocks {
936
939
( mut ) => ( body. basic_blocks_mut( ) ) ;
937
940
( ) => ( body. basic_blocks( ) ) ;
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ macro_rules! vec {
56
56
// `slice::into_vec` function which is only available with cfg(test)
57
57
// NB see the slice::hack module in slice.rs for more information
58
58
#[ cfg( all( not( no_global_oom_handling) , test) ) ]
59
+ #[ cfg_attr( not( bootstrap) , allow( unused_macro_rules) ) ]
59
60
macro_rules! vec {
60
61
( ) => (
61
62
$crate:: vec:: Vec :: new( )
Original file line number Diff line number Diff line change @@ -280,10 +280,6 @@ fn main() {
280
280
fn register_all ( ) -> Vec < ( & ' static str , Option < & ' static str > ) > {
281
281
let mut long_codes: Vec < ( & ' static str , Option < & ' static str > ) > = Vec :: new ( ) ;
282
282
macro_rules! register_diagnostics {
283
- ( $( $ecode: ident: $message: expr, ) * ) => (
284
- register_diagnostics!{ $( $ecode: $message, ) * ; }
285
- ) ;
286
-
287
283
( $( $ecode: ident: $message: expr, ) * ; $( $code: ident, ) * ) => (
288
284
$(
289
285
{ long_codes. extend( [
You can’t perform that action at this time.
0 commit comments