Skip to content

Commit 157211f

Browse files
committed
Document rustc_ast::FnHeader fields
1 parent 3c7c694 commit 157211f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler/rustc_ast/src/ast.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2736,9 +2736,13 @@ impl Extern {
27362736
/// included in this struct (e.g., `async unsafe fn` or `const extern "C" fn`).
27372737
#[derive(Clone, Copy, Encodable, Decodable, Debug)]
27382738
pub struct FnHeader {
2739+
/// The `unsafe` keyword, if any
27392740
pub unsafety: Unsafe,
2741+
/// The `async` keyword, if any
27402742
pub asyncness: Async,
2743+
/// The `const` keyword, if any
27412744
pub constness: Const,
2745+
/// The `extern` keyword and corresponding ABI string, if any
27422746
pub ext: Extern,
27432747
}
27442748

0 commit comments

Comments
 (0)