about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2023-01-02 14:26:43 -0800
committerManish Goregaokar <manishsmail@gmail.com>2023-01-02 14:42:27 -0800
commit157211ff2f0a8f45c6000c46a545412a0fb9eed4 (patch)
tree1cfbbc6a6858171fd4da4d7bcd1ba4e5171dcdb8
parent3c7c694e734b6bcc41663eaf230a7f26c19de0f4 (diff)
downloadrust-157211ff2f0a8f45c6000c46a545412a0fb9eed4.tar.gz
rust-157211ff2f0a8f45c6000c46a545412a0fb9eed4.zip
Document rustc_ast::FnHeader fields
-rw-r--r--compiler/rustc_ast/src/ast.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_ast/src/ast.rs b/compiler/rustc_ast/src/ast.rs
index 9f38deacca4..37dfa46f696 100644
--- a/compiler/rustc_ast/src/ast.rs
+++ b/compiler/rustc_ast/src/ast.rs
@@ -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,
 }