rust/compiler/rustc_middle/src/ty
Dylan DPC f468fd1d23
Rollup merge of #81496 - guswynn:expected_async_block, r=oli-obk
name async generators something more human friendly in type error diagnostic

fixes #81457

Some details:

1. I opted to load the generator kind from the hir in TyCategory. I also use 1 impl in the hir for the descr
2. I named both the source of the future, in addition to the general type (`future`), not sure what is preferred
3. I am not sure what is required to make sure "generator" is not referred to anywhere. A brief `rg "\"generator\"" showed me that most diagnostics correctly distinguish from generators and async generator, but the `descr` of `DefKind` is pretty general (not sure how thats used)
4. should the descr impl of AsyncGeneratorKind use its display impl instead of copying the string?
2021-02-19 02:49:00 +01:00
..
consts Use Option::map_or instead of .map(..).unwrap_or(..) 2021-01-14 19:23:59 +01:00
inhabitedness Implement Debug for DefIdForest 2021-01-16 17:56:32 -05:00
print remove useless ?s (clippy::needless_question_marks) 2021-02-17 23:23:57 +01:00
query Print -Ztime-passes (and misc stats/logs) on stderr, not stdout. 2021-02-18 14:13:38 +02:00
_match.rs More rebinds 2020-12-19 04:26:35 -05:00
adjustment.rs Reduce boilerplate with the matches! macro 2020-09-21 05:28:40 +02: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
codec.rs remove useless ?s (clippy::needless_question_marks) 2021-02-17 23:23:57 +01:00
consts.rs Rename HIR UnOp variants 2021-02-09 11:39:20 +03:00
context.rs Separate the query cache from the query state. 2021-02-13 21:14:58 +01:00
diagnostics.rs In some limited cases, suggest where bounds for non-type params 2021-02-17 09:26:40 -08:00
erase_regions.rs compiler: fold by value 2020-11-16 22:34:57 +01:00
error.rs Rollup merge of #81496 - guswynn:expected_async_block, r=oli-obk 2021-02-19 02:49:00 +01: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 changes 2021-01-16 18:56:37 -05:00
fold.rs Make BoundRegion have a kind of BoungRegionKind 2020-12-18 15:27:28 -05:00
instance.rs param_env debugs are instrumental to rustc's success 2021-02-14 11:18:40 +00:00
layout.rs Auto merge of #80652 - calebzulawski:simd-lanes, r=nagisa 2021-02-07 22:25:14 +00:00
list.rs Fix typo 2020-12-23 13:08:15 -08:00
mod.rs Make ProjectionTy::trait_ref truncate substs again 2021-02-13 19:30:07 +00:00
normalize_erasing_regions.rs compiler: fold by value 2020-11-16 22:34:57 +01:00
outlives.rs Address comments 2020-10-14 00:17:42 -04:00
relate.rs remove useless ?s (clippy::needless_question_marks) 2021-02-17 23:23:57 +01:00
structural_impls.rs Move a few more types to rustc_type_ir 2021-01-18 21:06:12 +01:00
sty.rs Rollup merge of #82066 - matthewjasper:trait-ref-fix, r=jackh726 2021-02-18 16:57:34 +01:00
subst.rs Auto merge of #78779 - LeSeulArtichaut:ty-visitor-return, r=oli-obk 2020-11-17 12:24:34 +00:00
trait_def.rs Trait impls are Items, therefore HIR owners. 2021-02-15 19:36:13 +01:00
util.rs Use rustc_type_ir::{IntTy,UintTy,FloatTy} instead of the rustc_ast` ones in types 2021-01-18 21:09:23 +01:00
walk.rs MiniSet/MiniMap moved and renamed into SsoHashSet/SsoHashMap 2020-09-26 14:30:05 -05:00