/// Checks whether a block contains no statements, expressions, comments, or
/// inner attributes.
Checks whether a block contains no statements, expressions, comments, or
inner attributes.
Checks whether a block contains no statements expressions comments or inner attributes .
pub(crate) fn is_empty_block(
    context: &RewriteContext<'_>,
    block: &ast::Block,
    attrs: Option<&[ast::Attribute]>,
) -> bool {
    !block_has_statements(block)
        && !block_contains_comment(context, block)
        && attrs.map_or(true, |a| inner_attributes(a).is_empty())
}
pub ( crate ) fn is_empty_block ( context : & RewriteContext < ' _ > , block : & ast :: Block , attrs : Option < & [ ast :: Attribute ] > , ) -> bool { ! block_has_statements ( block ) && ! block_contains_comment ( context , block ) && attrs . map_or ( true , | a | inner_attributes ( a ) . is_empty ( ) ) }
Checks whether a block contains no statements, expressions, comments, or
inner attributes.
Checks whether a block contains no statements expressions comments or inner attributes .
context
&RewriteContext<'_>
block
&ast::Block
attrs
Option<&[ast::Attribute]>