-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
A-rustdoc-jsonArea: Rustdoc JSON backendArea: Rustdoc JSON backendC-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Description
We mostly use type_: Type
,
rust/src/rustdoc-json-types/lib.rs
Lines 567 to 568 in ed2a69c
#[serde(rename = "type")] | |
pub type_: Type, |
But sometimes use ty
rust/src/rustdoc-json-types/lib.rs
Lines 380 to 383 in ed2a69c
Const { | |
ty: Type, | |
default: Option<String>, | |
}, |
rust/src/rustdoc-json-types/lib.rs
Lines 388 to 392 in ed2a69c
pub enum WherePredicate { | |
BoundPredicate { ty: Type, bounds: Vec<GenericBound> }, | |
RegionPredicate { lifetime: String, bounds: Vec<GenericBound> }, | |
EqPredicate { lhs: Type, rhs: Term }, | |
} |
We should choose one and stick to it. ty
is nicer to type (ha), and generaly consistant with compiller internals, but for those who don't know, type_
is much more clear, even if more ugly.
cc @CraftSpider @P1n3appl3 what do you think?
@rustbot modify labels: +A-rustdoc-json +T-rustdoc +C-discussion
Metadata
Metadata
Assignees
Labels
A-rustdoc-jsonArea: Rustdoc JSON backendArea: Rustdoc JSON backendC-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.