Rollup merge of #138964 - compiler-errors:usage-of-interner, r=lcnr

Implement lint against using Interner and InferCtxtLike in random compiler crates

Often `Interner` defines similar methods to `TyCtxt` (but often simplified due to the simpler API surface of the type system layer for the new solver), which people will either unintentionally or intentionally import and use. Let's discourage that.

r? lcnr
This commit is contained in:
Stuart Cook 2025-03-27 15:57:24 +11:00 committed by GitHub
commit cb39217d44
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 139 additions and 47 deletions

View file

@ -2118,7 +2118,9 @@ symbols! {
type_changing_struct_update,
type_const,
type_id,
type_ir_infer_ctxt_like,
type_ir_inherent,
type_ir_interner,
type_length_limit,
type_macros,
type_name,