Files
rust/compiler/rustc_lint/src
Nicholas Nethercote a3d590888b Remove impl IntoQueryParam<P> for &'a P.
`IntoQueryParam` is a trait that lets query callers be a bit sloppy with
the passed-in key.
- Types similar to `DefId` will be auto-converted to `DefId`. Likewise
  for `LocalDefId`.
- Reference types will be auto-derefed.

The auto-conversion is genuinely useful; the auto-derefing much less so.
In practice it's only used for passing `&DefId` to queries that accept
`DefId`, which is an anti-pattern because `DefId` is marked with
`#[rustc_pass_by_value]`.

This commit removes the auto-deref impl and makes the necessary sigil
adjustments. (I generally avoid using `*` to deref manually at call
sites, preferring to deref via `&` in patterns or via `*` in match
expressions. Mostly because that way a single deref often covers
multiple call sites.)
2026-02-22 17:58:54 +11:00
..
2026-02-14 13:47:52 +01:00
2026-02-20 09:50:16 +01:00
2026-02-20 09:50:16 +01:00
2026-02-20 09:50:16 +01:00
2025-09-17 04:46:46 +02:00
2026-02-15 15:40:13 +01:00
2025-06-18 15:46:19 +00:00
2025-06-30 20:42:27 +10:00
2025-10-28 11:18:58 -05:00
2026-02-15 15:40:13 +01:00
2026-02-20 10:35:52 +01:00
2025-08-08 15:01:01 -05:00
2026-02-14 13:47:52 +01:00
2025-11-07 19:57:52 +00:00
2026-02-20 09:50:16 +01:00
2025-12-10 15:15:54 +01:00
2025-12-10 15:15:54 +01:00
2025-02-08 22:12:13 +00:00
2026-02-20 09:50:16 +01:00
2025-02-08 22:12:13 +00:00
2025-06-03 08:23:21 +10:00
2026-02-20 09:50:16 +01:00