Skip to content

Commit

Permalink
Document rustc_ast::FnHeader fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Jan 2, 2023
1 parent 3c7c694 commit 157211f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler/rustc_ast/src/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2736,9 +2736,13 @@ impl Extern {
/// included in this struct (e.g., `async unsafe fn` or `const extern "C" fn`).
#[derive(Clone, Copy, Encodable, Decodable, Debug)]
pub struct FnHeader {
/// The `unsafe` keyword, if any
pub unsafety: Unsafe,
/// The `async` keyword, if any
pub asyncness: Async,
/// The `const` keyword, if any
pub constness: Const,
/// The `extern` keyword and corresponding ABI string, if any
pub ext: Extern,
}

Expand Down

0 comments on commit 157211f

Please sign in to comment.