1
Fork 0

rustdoc: normalise type/field names in rustdoc-json-types/jsondoclint

This commit is contained in:
schvv31n 2024-08-05 00:44:35 +01:00
parent d571ae851d
commit f2696ab4d3
74 changed files with 382 additions and 375 deletions

View file

@ -19,8 +19,8 @@ pub struct Struct;
impl Orig<i32> for Struct {}
//@ has "$.index[*][?(@.name=='takes_alias')].inner.function.decl.inputs[0][1].impl_trait"
//@ is "$.index[*][?(@.name=='takes_alias')].inner.function.decl.inputs[0][1].impl_trait[0].trait_bound.trait.id" $Alias
//@ has "$.index[*][?(@.name=='takes_alias')].inner.function.sig.inputs[0][1].impl_trait"
//@ is "$.index[*][?(@.name=='takes_alias')].inner.function.sig.inputs[0][1].impl_trait[0].trait_bound.trait.id" $Alias
//@ is "$.index[*][?(@.name=='takes_alias')].inner.function.generics.params[0].kind.type.bounds[0].trait_bound.trait.id" $Alias
pub fn takes_alias(_: impl Alias) {}
// FIXME: Should the trait be mentioned in both the decl and generics?