pub ext: Extern,
pub generic_params: Vec<GenericParam>,
pub decl: P<FnDecl>,
+ /// Span of the `fn(...) -> ...` part.
+ pub decl_span: Span,
}
/// The various kinds of type recognized by the compiler.
}
}
-#[derive(Copy, Clone, Encodable, Decodable, Debug, HashStable_Generic)]
-pub enum CrateSugar {
- /// Source is `pub(crate)`.
- PubCrate,
-
- /// Source is (just) `crate`.
- JustCrate,
-}
-
#[derive(Clone, Encodable, Decodable, Debug)]
pub struct Visibility {
pub kind: VisibilityKind,
#[derive(Clone, Encodable, Decodable, Debug)]
pub enum VisibilityKind {
Public,
- Crate(CrateSugar),
Restricted { path: P<Path>, id: NodeId },
Inherited,
}