]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_expand/src/expand.rs
Rollup merge of #105474 - RalfJung:typo, r=dtolnay
[rust.git] / compiler / rustc_expand / src / expand.rs
index 3e98b024c73b9ec746375578f3e0e11ac859d364..1014ec2209c614cec4fef55cbbc9481be3192792 100644 (file)
@@ -1122,7 +1122,7 @@ fn wrap_flat_map_node_noop_flat_map(
                         ecx.current_expansion.lint_node_id,
                         &attrs,
                         &items,
-                        ident.name.as_str(),
+                        ident.name,
                     );
                 }
 
@@ -1644,7 +1644,7 @@ fn check_attributes(&self, attrs: &[ast::Attribute], call: &ast::MacCall) {
         let mut span: Option<Span> = None;
         while let Some(attr) = attrs.next() {
             rustc_ast_passes::feature_gate::check_attribute(attr, self.cx.sess, features);
-            validate_attr::check_meta(&self.cx.sess.parse_sess, attr);
+            validate_attr::check_attr(&self.cx.sess.parse_sess, attr);
 
             let current_span = if let Some(sp) = span { sp.to(attr.span) } else { attr.span };
             span = Some(current_span);