Rollup merge of #131976 - jalil-salame:rustdoc-types-copy-enums, r=aDotInTheVoid
feat(rustdoc-json-types): mark simple enums as copy Fixes rust-lang/rustdoc-types#26 and some typos in the documentation r? `@aDotInTheVoid` I have been assigning these PRs to you `@aDotInTheVoid,` is that okay? I think I'm out of PRs for now, but for future reference c:
This commit is contained in:
commit
4b658657da
1 changed files with 7 additions and 7 deletions
|
|
@ -317,10 +317,10 @@ pub enum AssocItemConstraintKind {
|
|||
// FIXME(aDotInTheVoid): Consider making this non-public in rustdoc-types.
|
||||
pub struct Id(pub u32);
|
||||
|
||||
/// The fundamental kind of an item. Unlike [`ItemEnum`], this does not carry any aditional info.
|
||||
/// The fundamental kind of an item. Unlike [`ItemEnum`], this does not carry any additional info.
|
||||
///
|
||||
/// Part of [`ItemSummary`].
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub enum ItemKind {
|
||||
/// A module declaration, e.g. `mod foo;` or `mod foo {}`
|
||||
|
|
@ -710,7 +710,7 @@ pub enum Abi {
|
|||
Aapcs { unwind: bool },
|
||||
/// Can be specified as `extern "win64"`.
|
||||
Win64 { unwind: bool },
|
||||
/// Can be specifed as `extern "sysv64"`.
|
||||
/// Can be specified as `extern "sysv64"`.
|
||||
SysV64 { unwind: bool },
|
||||
/// Can be specified as `extern "system"`.
|
||||
System { unwind: bool },
|
||||
|
|
@ -904,7 +904,7 @@ pub enum GenericBound {
|
|||
}
|
||||
|
||||
/// A set of modifiers applied to a trait.
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub enum TraitBoundModifier {
|
||||
/// Marks the absence of a modifier.
|
||||
|
|
@ -1008,7 +1008,7 @@ pub enum Type {
|
|||
QualifiedPath {
|
||||
/// The name of the associated type in the parent type.
|
||||
///
|
||||
/// ```ignore (incomplete expresssion)
|
||||
/// ```ignore (incomplete expression)
|
||||
/// <core::array::IntoIter<u32, 42> as Iterator>::Item
|
||||
/// // ^^^^
|
||||
/// ```
|
||||
|
|
@ -1095,7 +1095,7 @@ pub struct FunctionSignature {
|
|||
#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
||||
pub struct Trait {
|
||||
/// Whether the trait is marked `auto` and is thus implemented automatically
|
||||
/// for all aplicable types.
|
||||
/// for all applicable types.
|
||||
pub is_auto: bool,
|
||||
/// Whether the trait is marked as `unsafe`.
|
||||
pub is_unsafe: bool,
|
||||
|
|
@ -1205,7 +1205,7 @@ pub struct ProcMacro {
|
|||
}
|
||||
|
||||
/// The way a [`ProcMacro`] is declared to be used.
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub enum MacroKind {
|
||||
/// A bang macro `foo!()`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue