about summary refs log tree commit diff
path: root/src/test/rustdoc-js-std/multi-query.js
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-01-15 02:25:20 +0100
committerGitHub <noreply@github.com>2022-01-15 02:25:20 +0100
commit6c94f99d83fcb0e6c7e152a5cb8d9e3da9b73ce2 (patch)
treed7b3f3c936887c160c03a321bbac385c2bacbc9c /src/test/rustdoc-js-std/multi-query.js
parent8f4155909c6008cc4749c208c4dbcc1ae6b1218b (diff)
parent61c07a9a23d8967564bdddb5137efadeb48df271 (diff)
downloadrust-6c94f99d83fcb0e6c7e152a5cb8d9e3da9b73ce2.tar.gz
rust-6c94f99d83fcb0e6c7e152a5cb8d9e3da9b73ce2.zip
Rollup merge of #92875 - BoxyUwU:infer_arg_opt_const_param_of, r=lcnr
Make `opt_const_param_of` work in the presence of `GenericArg::Infer`

highly recommend viewing the first and second commits on their own rather than looking at file changes :rofl:

Because we filtered args down to just const args we would ignore `GenericArg::Infer` which made us get a `arg_index` which was wrong by however many const `GenericArg::Infer` came previously

[example](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=46dba6a53aca6333028a10908ef16e0b) of the [bugs](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=a8eebced26eefa4119fc2e7ae0c76de6) fixed.

r? ```@lcnr```
Diffstat (limited to 'src/test/rustdoc-js-std/multi-query.js')
0 files changed, 0 insertions, 0 deletions