2022-09-05 16:17:50 -05:00
|
|
|
#![feature(no_core)]
|
|
|
|
#![no_core]
|
|
|
|
|
|
|
|
// @set 1.1.0 = "$.index[*][?(@.docs=='1.1.0')].id"
|
|
|
|
// @set 2.1.0 = "$.index[*][?(@.docs=='2.1.0')].id"
|
|
|
|
// @set 2.1.1 = "$.index[*][?(@.docs=='2.1.1')].id"
|
|
|
|
// @set 2.2.1 = "$.index[*][?(@.docs=='2.2.1')].id"
|
|
|
|
// @set 2.3.0 = "$.index[*][?(@.docs=='2.3.0')].id"
|
|
|
|
// @set 3.1.1 = "$.index[*][?(@.docs=='3.1.1')].id"
|
|
|
|
// @set 3.1.2 = "$.index[*][?(@.docs=='3.1.2')].id"
|
|
|
|
// @set 3.2.0 = "$.index[*][?(@.docs=='3.2.0')].id"
|
|
|
|
// @set 3.2.2 = "$.index[*][?(@.docs=='3.2.2')].id"
|
|
|
|
// @set 3.3.0 = "$.index[*][?(@.docs=='3.3.0')].id"
|
|
|
|
// @set 3.3.1 = "$.index[*][?(@.docs=='3.3.1')].id"
|
|
|
|
|
|
|
|
pub enum EnumWithStrippedTupleVariants {
|
2023-05-22 12:17:52 -05:00
|
|
|
// @count "$.index[*][?(@.name=='None')].inner.variant.kind.tuple[*]" 0
|
2022-09-05 16:17:50 -05:00
|
|
|
None(),
|
|
|
|
|
2023-05-22 12:17:52 -05:00
|
|
|
// @count "$.index[*][?(@.name=='One')].inner.variant.kind.tuple[*]" 1
|
|
|
|
// @is "$.index[*][?(@.name=='One')].inner.variant.kind.tuple[0]" $1.1.0
|
2022-09-05 16:17:50 -05:00
|
|
|
One(/** 1.1.0*/ bool),
|
2023-05-22 12:17:52 -05:00
|
|
|
// @count "$.index[*][?(@.name=='OneHidden')].inner.variant.kind.tuple[*]" 1
|
|
|
|
// @is "$.index[*][?(@.name=='OneHidden')].inner.variant.kind.tuple[0]" null
|
2022-09-05 16:17:50 -05:00
|
|
|
OneHidden(#[doc(hidden)] bool),
|
|
|
|
|
2023-05-22 12:17:52 -05:00
|
|
|
// @count "$.index[*][?(@.name=='Two')].inner.variant.kind.tuple[*]" 2
|
|
|
|
// @is "$.index[*][?(@.name=='Two')].inner.variant.kind.tuple[0]" $2.1.0
|
|
|
|
// @is "$.index[*][?(@.name=='Two')].inner.variant.kind.tuple[1]" $2.1.1
|
2022-09-05 16:17:50 -05:00
|
|
|
Two(/** 2.1.0*/ bool, /** 2.1.1*/ bool),
|
2023-05-22 12:17:52 -05:00
|
|
|
// @count "$.index[*][?(@.name=='TwoLeftHidden')].inner.variant.kind.tuple[*]" 2
|
|
|
|
// @is "$.index[*][?(@.name=='TwoLeftHidden')].inner.variant.kind.tuple[0]" null
|
|
|
|
// @is "$.index[*][?(@.name=='TwoLeftHidden')].inner.variant.kind.tuple[1]" $2.2.1
|
2022-09-05 16:17:50 -05:00
|
|
|
TwoLeftHidden(#[doc(hidden)] bool, /** 2.2.1*/ bool),
|
2023-05-22 12:17:52 -05:00
|
|
|
// @count "$.index[*][?(@.name=='TwoRightHidden')].inner.variant.kind.tuple[*]" 2
|
|
|
|
// @is "$.index[*][?(@.name=='TwoRightHidden')].inner.variant.kind.tuple[0]" $2.3.0
|
|
|
|
// @is "$.index[*][?(@.name=='TwoRightHidden')].inner.variant.kind.tuple[1]" null
|
2022-09-05 16:17:50 -05:00
|
|
|
TwoRightHidden(/** 2.3.0*/ bool, #[doc(hidden)] bool),
|
2023-05-22 12:17:52 -05:00
|
|
|
// @count "$.index[*][?(@.name=='TwoBothHidden')].inner.variant.kind.tuple[*]" 2
|
|
|
|
// @is "$.index[*][?(@.name=='TwoBothHidden')].inner.variant.kind.tuple[0]" null
|
|
|
|
// @is "$.index[*][?(@.name=='TwoBothHidden')].inner.variant.kind.tuple[1]" null
|
2022-09-05 16:17:50 -05:00
|
|
|
TwoBothHidden(#[doc(hidden)] bool, #[doc(hidden)] bool),
|
|
|
|
|
2023-05-22 12:17:52 -05:00
|
|
|
// @count "$.index[*][?(@.name=='Three1')].inner.variant.kind.tuple[*]" 3
|
|
|
|
// @is "$.index[*][?(@.name=='Three1')].inner.variant.kind.tuple[0]" null
|
|
|
|
// @is "$.index[*][?(@.name=='Three1')].inner.variant.kind.tuple[1]" $3.1.1
|
|
|
|
// @is "$.index[*][?(@.name=='Three1')].inner.variant.kind.tuple[2]" $3.1.2
|
2022-09-05 16:17:50 -05:00
|
|
|
Three1(#[doc(hidden)] bool, /** 3.1.1*/ bool, /** 3.1.2*/ bool),
|
2023-05-22 12:17:52 -05:00
|
|
|
// @count "$.index[*][?(@.name=='Three2')].inner.variant.kind.tuple[*]" 3
|
|
|
|
// @is "$.index[*][?(@.name=='Three2')].inner.variant.kind.tuple[0]" $3.2.0
|
|
|
|
// @is "$.index[*][?(@.name=='Three2')].inner.variant.kind.tuple[1]" null
|
|
|
|
// @is "$.index[*][?(@.name=='Three2')].inner.variant.kind.tuple[2]" $3.2.2
|
2022-09-05 16:17:50 -05:00
|
|
|
Three2(/** 3.2.0*/ bool, #[doc(hidden)] bool, /** 3.2.2*/ bool),
|
2023-05-22 12:17:52 -05:00
|
|
|
// @count "$.index[*][?(@.name=='Three3')].inner.variant.kind.tuple[*]" 3
|
|
|
|
// @is "$.index[*][?(@.name=='Three3')].inner.variant.kind.tuple[0]" $3.3.0
|
|
|
|
// @is "$.index[*][?(@.name=='Three3')].inner.variant.kind.tuple[1]" $3.3.1
|
|
|
|
// @is "$.index[*][?(@.name=='Three3')].inner.variant.kind.tuple[2]" null
|
2022-09-05 16:17:50 -05:00
|
|
|
Three3(/** 3.3.0*/ bool, /** 3.3.1*/ bool, #[doc(hidden)] bool),
|
|
|
|
}
|
|
|
|
|
|
|
|
// @is "$.index[*][?(@.docs=='1.1.0')].name" '"0"'
|
|
|
|
// @is "$.index[*][?(@.docs=='2.1.0')].name" '"0"'
|
|
|
|
// @is "$.index[*][?(@.docs=='2.1.1')].name" '"1"'
|
|
|
|
// @is "$.index[*][?(@.docs=='2.2.1')].name" '"1"'
|
|
|
|
// @is "$.index[*][?(@.docs=='2.3.0')].name" '"0"'
|
|
|
|
// @is "$.index[*][?(@.docs=='3.1.1')].name" '"1"'
|
|
|
|
// @is "$.index[*][?(@.docs=='3.1.2')].name" '"2"'
|
|
|
|
// @is "$.index[*][?(@.docs=='3.2.0')].name" '"0"'
|
|
|
|
// @is "$.index[*][?(@.docs=='3.2.2')].name" '"2"'
|
|
|
|
// @is "$.index[*][?(@.docs=='3.3.0')].name" '"0"'
|
|
|
|
// @is "$.index[*][?(@.docs=='3.3.1')].name" '"1"'
|
|
|
|
|
2023-05-22 12:17:52 -05:00
|
|
|
// @is "$.index[*][?(@.docs=='1.1.0')].inner.struct_field" '{"primitive": "bool"}'
|
|
|
|
// @is "$.index[*][?(@.docs=='2.1.0')].inner.struct_field" '{"primitive": "bool"}'
|
|
|
|
// @is "$.index[*][?(@.docs=='2.1.1')].inner.struct_field" '{"primitive": "bool"}'
|
|
|
|
// @is "$.index[*][?(@.docs=='2.2.1')].inner.struct_field" '{"primitive": "bool"}'
|
|
|
|
// @is "$.index[*][?(@.docs=='2.3.0')].inner.struct_field" '{"primitive": "bool"}'
|
|
|
|
// @is "$.index[*][?(@.docs=='3.1.1')].inner.struct_field" '{"primitive": "bool"}'
|
|
|
|
// @is "$.index[*][?(@.docs=='3.1.2')].inner.struct_field" '{"primitive": "bool"}'
|
|
|
|
// @is "$.index[*][?(@.docs=='3.2.0')].inner.struct_field" '{"primitive": "bool"}'
|
|
|
|
// @is "$.index[*][?(@.docs=='3.2.2')].inner.struct_field" '{"primitive": "bool"}'
|
|
|
|
// @is "$.index[*][?(@.docs=='3.3.0')].inner.struct_field" '{"primitive": "bool"}'
|
|
|
|
// @is "$.index[*][?(@.docs=='3.3.1')].inner.struct_field" '{"primitive": "bool"}'
|