rust/compiler/rustc_middle/src/ty
bors 7c75fe4c85 Auto merge of #104170 - cjgillot:hir-def-id, r=fee1-dead
Record `LocalDefId` in HIR nodes instead of a side table

This is part of an attempt to remove the `HirId -> LocalDefId` table from HIR.
This attempt is a prerequisite to creation of `LocalDefId` after HIR lowering (https://github.com/rust-lang/rust/pull/96840), by controlling how `def_id` information is accessed.

This first part adds the information to HIR nodes themselves instead of a table.
The second part is https://github.com/rust-lang/rust/pull/103902
The third part will be to make `hir::Visitor::visit_fn` take a `LocalDefId` as last parameter.
The fourth part will be to completely remove the side table.
2022-11-17 07:42:27 +00:00
..
consts cleanup and dedupe CTFE and Miri error reporting 2022-11-16 10:13:29 +01:00
inhabitedness Introduce InhabitedPredicate 2022-10-22 13:20:06 -05:00
print Auto merge of #104282 - cjgillot:intern-span, r=compiler-errors 2022-11-13 06:23:18 +00:00
_match.rs Rename the ConstS::val field as kind. 2022-06-14 13:06:44 +10:00
abstract_const.rs deprecate DelaySpanBugEmitted and use ErrorGuaranteed directly 2022-11-02 23:15:49 +08:00
adjustment.rs Make dyn* cast into a coercion 2022-10-14 04:27:01 +00:00
adt.rs cleanup and dedupe CTFE and Miri error reporting 2022-11-16 10:13:29 +01:00
assoc.rs rustc: Parameterize ty::Visibility over used ID 2022-09-07 13:35:41 +04:00
binding.rs Refactor and re-use BindingAnnotation 2022-09-02 12:55:05 -05:00
cast.rs Remove mir::CastKind::Misc 2022-10-06 15:32:41 +03:00
closure.rs Use LocalDefId for closures more 2022-07-30 15:59:17 -05:00
codec.rs Refactor tcx mk_const parameters. 2022-11-04 20:33:32 +00:00
consts.rs Store a LocalDefId in hir::AnonConst. 2022-11-13 14:06:11 +00:00
context.rs Make user_provided_sigs a LocalDefIdMap. 2022-11-13 14:04:42 +00:00
diagnostics.rs Store a LocalDefId in hir::GenericParam. 2022-11-13 14:05:30 +00:00
erase_regions.rs mir constants: type traversing bye bye 2022-10-17 10:54:01 +02:00
error.rs Fix ICE in default impl error reporting 2022-11-01 02:27:26 +00:00
fast_reject.rs It's not about types or consts, but the lack of regions 2022-10-04 14:10:44 +00:00
flags.rs stop folding UnevaluatedConst 2022-10-19 10:15:46 +02:00
fold.rs Add an optional Span to BrAnon and use it to print better error for HRTB error from generator interior 2022-11-07 17:39:29 -05:00
generics.rs remove the Subst trait, always use EarlyBinder 2022-09-19 11:37:27 +02:00
impls_ty.rs interpret: support for per-byte provenance 2022-11-06 14:17:10 +01:00
instance.rs Some tracing and comment cleanups 2022-11-04 17:10:07 +00:00
layout.rs Use LayoutError's implementation of IntoDiagnostic 2022-11-09 14:56:21 +01:00
list.rs add List::as_slice 2022-08-17 11:22:47 +02:00
mod.rs More nits 2022-11-10 21:29:20 +00:00
normalize_erasing_regions.rs mir constants: type traversing bye bye 2022-10-17 10:54:01 +02:00
opaque_types.rs Remap hidden types from typeck before storing them in the TypeckResult 2022-10-07 19:43:46 +00:00
parameterized.rs Introduce deduced parameter attributes, and use them for deducing readonly on 2022-10-21 02:33:15 -07:00
query.rs Auto merge of #102698 - michaelwoerister:unord-collections, r=lncr 2022-10-29 06:20:48 +00:00
relate.rs Refactor tcx mk_const parameters. 2022-11-04 20:33:32 +00:00
rvalue_scopes.rs rustc_typeck to rustc_hir_analysis 2022-09-27 10:37:23 +02:00
structural_impls.rs Add an optional Span to BrAnon and use it to print better error for HRTB error from generator interior 2022-11-07 17:39:29 -05:00
sty.rs Add an optional Span to BrAnon and use it to print better error for HRTB error from generator interior 2022-11-07 17:39:29 -05:00
subst.rs Rollup merge of #104258 - compiler-errors:tait-closure-deduce, r=oli-obk 2022-11-15 10:44:10 +01:00
trait_def.rs tracing::instrument cleanup 2022-09-01 14:54:27 +00:00
util.rs Accept TyCtxt instead of TyCtxtAt in Ty::is_* functions 2022-10-27 15:06:08 +04:00
visit.rs deprecate unchecked_claim_error_was_emitted in error_reported 2022-11-08 11:17:57 +08:00
vtable.rs add is_sized method on Abi and Layout, and use it 2022-11-13 12:23:53 +01:00
walk.rs change ConstEvaluatable to use ty::Const 2022-10-18 16:09:04 +02:00