/// when the configuration predicate is true, or otherwise expand into an
/// empty list of attributes.
///
- /// Gives a compiler warning when the `cfg_attr` contains no attribtes and
+ /// Gives a compiler warning when the `cfg_attr` contains no attributes and
/// is in the original source file. Gives a compiler error if the syntax of
/// the attribute is incorrect
fn process_cfg_attr(&mut self, attr: ast::Attribute) -> Vec<ast::Attribute> {
};
// Check feature gate and lint on zero attributes in source. Even if the feature is gated,
- // we still compute as if it wasn't, since the emitted error will stop compilation futher
+ // we still compute as if it wasn't, since the emitted error will stop compilation further
// along the compilation.
match (expanded_attrs.len(), gate_cfg_attr_multi) {
(0, false) => {
// Anything else is always required, and thus has to error out
// in case of a cfg attr.
//
- // NB: This is intentionally not part of the fold_expr() function
+ // N.B., this is intentionally not part of the fold_expr() function
// in order for fold_opt_expr() to be able to avoid this check
if let Some(attr) = expr.attrs().iter().find(|a| is_cfg(a)) {
let msg = "removing an expression is not supported in this position";
}
fn fold_mac(&mut self, mac: ast::Mac) -> ast::Mac {
- // Don't configure interpolated AST (c.f. #34171).
+ // Don't configure interpolated AST (cf. issue #34171).
// Interpolated AST will get configured once the surrounding tokens are parsed.
mac
}