Commit b43b942
committed
Remove
The query key sloppiness mentioned in the previous commit has another
component: `query_helper_param_ty` only uses `IntoQueryParam` when the
key type is `DefId` or `LocalDefId`.
But thanks to the previous commit, `DefId` and `LocalDefId` are the only
`T`s for which `IntoQueryParam<T>` is implemented. So we can just get
rid of `query_helper_param_ty` and always use `IntoQueryParam` for every
type. The net effect is the same, and makes the code simpler.
Furthermore, `query_helper_param_ty`'s special cases required that the
key in the macro be `$($K:tt)*` for the literal `DefId`/`LocalDefId`
matches to work. With those gone, the next commit will change the key to
the simpler `$K:ty`.query_helper_param_ty.1 parent b996d80 commit b43b942
2 files changed
Lines changed: 5 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
| 280 | + | |
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | 265 | | |
272 | 266 | | |
273 | 267 | | |
| |||
416 | 410 | | |
417 | 411 | | |
418 | 412 | | |
419 | | - | |
| 413 | + | |
420 | 414 | | |
421 | 415 | | |
422 | 416 | | |
| |||
447 | 441 | | |
448 | 442 | | |
449 | 443 | | |
450 | | - | |
| 444 | + | |
451 | 445 | | |
452 | 446 | | |
453 | 447 | | |
| |||
464 | 458 | | |
465 | 459 | | |
466 | 460 | | |
467 | | - | |
| 461 | + | |
468 | 462 | | |
469 | 463 | | |
470 | 464 | | |
| |||
474 | 468 | | |
475 | 469 | | |
476 | 470 | | |
477 | | - | |
| 471 | + | |
478 | 472 | | |
479 | 473 | | |
480 | 474 | | |
| |||
0 commit comments