Omit argument names from function pointers that do not have argument names
This commit is contained in:
parent
5f447a1ca6
commit
b866debf3c
6 changed files with 27 additions and 13 deletions
|
@ -11,10 +11,10 @@ macro_rules! gen {
|
|||
}
|
||||
|
||||
//@ has 'foo/struct.Providers.html'
|
||||
//@ has - '//*[@class="rust item-decl"]//code' "pub a: for<'tcx> fn(_: TyCtxt<'tcx>, _: u8) -> i8,"
|
||||
//@ has - '//*[@class="rust item-decl"]//code' "pub b: for<'tcx> fn(_: TyCtxt<'tcx>, _: u16) -> i16,"
|
||||
//@ has - '//*[@id="structfield.a"]/code' "a: for<'tcx> fn(_: TyCtxt<'tcx>, _: u8) -> i8"
|
||||
//@ has - '//*[@id="structfield.b"]/code' "b: for<'tcx> fn(_: TyCtxt<'tcx>, _: u16) -> i16"
|
||||
//@ has - '//*[@class="rust item-decl"]//code' "pub a: for<'tcx> fn(TyCtxt<'tcx>, u8) -> i8,"
|
||||
//@ has - '//*[@class="rust item-decl"]//code' "pub b: for<'tcx> fn(TyCtxt<'tcx>, u16) -> i16,"
|
||||
//@ has - '//*[@id="structfield.a"]/code' "a: for<'tcx> fn(TyCtxt<'tcx>, u8) -> i8"
|
||||
//@ has - '//*[@id="structfield.b"]/code' "b: for<'tcx> fn(TyCtxt<'tcx>, u16) -> i16"
|
||||
gen! {
|
||||
(a, 'tcx, [u8], [i8])
|
||||
(b, 'tcx, [u16], [i16])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue