rust/compiler/rustc_middle/src/ty
Jubilee ee2e97c416
Rollup merge of #89001 - jackh726:binder-cleanup, r=nikomatsakis
Be explicit about using Binder::dummy

This is somewhat of a late followup to the binder refactor PR. It removes `ToPredicate` and `ToPolyTraitImpls` that hide the use of `Binder::dummy`. While this does make code a bit more verbose, it allows us be more careful about where we create binders.

Another alternative here might be to add a new trait `ToBinder` or something with a `dummy()` fn. Which could still allow grepping but allows doing something like `trait_ref.dummy()` (but I also wonder if longer-term, it would be better to be even more explicit with a `bind_with_vars(ty::List::empty())` *but* that's not clear yet.

r? ``@nikomatsakis``
2021-09-24 11:40:11 -07:00
..
consts inline stuff 2021-08-26 11:14:31 +02:00
inhabitedness Fix typos “a”→“an” 2021-08-22 15:35:11 +02:00
print Disable visible path calculation for PrettyPrinter in Ok path of compiler 2021-09-21 00:41:44 +04:00
_match.rs Add variance-related information to lifetime error messages 2021-06-06 12:37:42 -05:00
adjustment.rs Add some backticks to the rustc_middle::ty::adjustment::Adjustment docs 2021-05-24 15:47:28 -07:00
adt.rs Const dropping 2021-09-09 05:21:29 +00:00
assoc.rs handle the case when container is not impl 2021-08-13 09:28:50 +00:00
binding.rs words 2020-11-16 22:42:09 +01:00
cast.rs Use rustc_type_ir::{IntTy,UintTy,FloatTy} instead of the rustc_ast` ones in types 2021-01-18 21:09:23 +01:00
closure.rs Fix typos “an”→“a” and a few different ones that appeared in the same search 2021-08-22 18:15:49 +02:00
codec.rs rename mir -> thir around abstract consts 2021-09-09 01:32:03 +01:00
consts.rs make unevaluated const substs optional 2021-08-26 11:00:30 +02:00
context.rs Auto merge of #88575 - eddyb:fn-abi-queries, r=nagisa 2021-09-19 21:39:47 +00:00
diagnostics.rs Don't move ?Trait bounds to param bounds if they're in where clauses 2021-09-07 18:08:46 -04:00
erase_regions.rs update TypeFlags to deal with missing ct substs 2021-08-26 11:00:30 +02:00
error.rs Keep a parent LocalDefId in SpanData. 2021-09-10 20:17:33 +02:00
fast_reject.rs Use rustc_type_ir::{IntTy,UintTy,FloatTy} instead of the rustc_ast` ones in types 2021-01-18 21:09:23 +01:00
flags.rs review 2021-08-26 11:14:31 +02:00
fold.rs optimize HasTypeFlagsVisitor 2021-08-26 11:14:31 +02:00
generics.rs Do not suggest impl traits as type arguments 2021-08-03 20:05:50 +09:00
instance.rs Support #[track_caller] on closures and generators 2021-09-22 15:19:33 -05:00
layout.rs [HACK(eddyb)] arena-allocate but don't intern FnAbis. 2021-09-18 04:41:33 +03:00
list.rs Don't create references to uninitialized data in List::from_arena 2021-07-19 10:47:45 +02:00
mod.rs Rollup merge of #89001 - jackh726:binder-cleanup, r=nikomatsakis 2021-09-24 11:40:11 -07:00
normalize_erasing_regions.rs Update compiler/rustc_middle/src/ty/normalize_erasing_regions.rs 2021-07-04 12:37:25 -04:00
outlives.rs add tcx to fn walk 2021-08-26 11:00:30 +02:00
query.rs Querify fn_abi_of_{fn_ptr,instance}. 2021-09-18 04:41:33 +03:00
relate.rs add case for checking const refs in check_const_value_eq 2021-09-21 15:49:29 +02:00
structural_impls.rs Support #[track_caller] on closures and generators 2021-09-22 15:19:33 -05:00
sty.rs Rollup merge of #89001 - jackh726:binder-cleanup, r=nikomatsakis 2021-09-24 11:40:11 -07:00
subst.rs update TypeFlags to deal with missing ct substs 2021-08-26 11:00:30 +02:00
trait_def.rs use indexmap instead of hashmap 2021-09-21 08:24:23 +02:00
util.rs Auto merge of #88558 - fee1-dead:const-drop, r=oli-obk 2021-09-15 03:51:03 +00:00
vtable.rs Add comment and more tests. 2021-07-22 23:29:53 +08:00
walk.rs ignore const substs in implicit_infer 2021-08-26 11:00:30 +02:00