Allow unused rules in some places in the compiler, library and tools
This commit is contained in:
@@ -258,6 +258,7 @@ macro_rules! make_mir_visitor {
|
||||
// for best performance, we want to use an iterator rather
|
||||
// than a for-loop, to avoid calling `body::Body::invalidate` for
|
||||
// each basic block.
|
||||
#[cfg_attr(not(bootstrap), allow(unused_macro_rules))]
|
||||
macro_rules! basic_blocks {
|
||||
(mut) => (body.basic_blocks_mut().iter_enumerated_mut());
|
||||
() => (body.basic_blocks().iter_enumerated());
|
||||
@@ -279,6 +280,7 @@ macro_rules! make_mir_visitor {
|
||||
self.visit_local_decl(local, & $($mutability)? body.local_decls[local]);
|
||||
}
|
||||
|
||||
#[cfg_attr(not(bootstrap), allow(unused_macro_rules))]
|
||||
macro_rules! type_annotations {
|
||||
(mut) => (body.user_type_annotations.iter_enumerated_mut());
|
||||
() => (body.user_type_annotations.iter_enumerated());
|
||||
@@ -932,6 +934,7 @@ macro_rules! make_mir_visitor {
|
||||
body: &$($mutability)? Body<'tcx>,
|
||||
location: Location
|
||||
) {
|
||||
#[cfg_attr(not(bootstrap), allow(unused_macro_rules))]
|
||||
macro_rules! basic_blocks {
|
||||
(mut) => (body.basic_blocks_mut());
|
||||
() => (body.basic_blocks());
|
||||
|
||||
Reference in New Issue
Block a user