]> git.lizzy.rs Git - rust.git/commitdiff
Remove FIXME on `ExtCtxt::fn_decl()`
authorYuki Okushi <jtitor@2k36.org>
Sat, 28 May 2022 09:12:34 +0000 (18:12 +0900)
committerYuki Okushi <jtitor@2k36.org>
Sat, 28 May 2022 09:12:34 +0000 (18:12 +0900)
compiler/rustc_expand/src/build.rs

index 301c67f70264502cd06244ad36dc287f045b8cea..56d0263269b53daacc2ab974dd6e557143bdefdf 100644 (file)
@@ -514,7 +514,7 @@ pub fn param(&self, span: Span, ident: Ident, ty: P<ast::Ty>) -> ast::Param {
         }
     }
 
-    // FIXME: unused `self`
+    // `self` is unused but keep it as method for the convenience use.
     pub fn fn_decl(&self, inputs: Vec<ast::Param>, output: ast::FnRetTy) -> P<ast::FnDecl> {
         P(ast::FnDecl { inputs, output })
     }