rust/compiler/rustc_hir/src
Guillaume Gomez 1a878df2b8
Rollup merge of #106927 - Ezrashaw:e0606-make-machine-applicable, r=estebank
make `CastError::NeedsDeref` create a `MachineApplicable` suggestion

Fixes #106903

Simple impl for the linked issue. I also made some other small changes:
- `CastError::ErrorGuaranteed` now owns an actual `ErrorGuaranteed`. This better enforces the static guarantees of `ErrorGuaranteed`.
- `CastError::NeedDeref` code simplified a bit, we now just suggest the `*`, instead of the whole expression as well.
2023-01-19 11:19:34 +01:00
..
arena.rs rustc_hir: Change representation of import paths to support multiple resolutions 2022-12-01 18:51:05 +03:00
def.rs Remove double spaces after dots in comments 2023-01-17 08:09:33 +00:00
def_path_hash_map.rs Use on-disk-hash-table format for DefPathHashMap in hir::definitions. 2021-09-14 13:54:41 +02:00
definitions.rs Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
diagnostic_items.rs Introduce get_diagnostic_name 2021-10-06 08:40:28 -05:00
errors.rs have LangItemError derive everything LangItem does 2022-08-25 11:06:45 -06:00
hir.rs Rollup merge of #106927 - Ezrashaw:e0606-make-machine-applicable, r=estebank 2023-01-19 11:19:34 +01:00
hir_id.rs fix typo LocalItemId -> ItemLocalId 2023-01-11 15:45:52 +03:00
intravisit.rs parse const closures 2023-01-12 02:28:37 +00:00
lang_items.rs Transform async ResumeTy in generator transform 2023-01-19 09:03:05 +01:00
lib.rs Separate lifetime ident from resolution in HIR. 2022-11-23 19:33:06 +00:00
pat_util.rs compiler: remove unnecessary imports and qualified paths 2022-12-10 18:45:34 +01:00
stable_hash_impls.rs Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
target.rs Handle generic parameters. 2022-09-09 01:31:46 +00:00
tests.rs Use Symbol for the crate name instead of String/str 2022-12-07 20:30:02 +00:00
weak_lang_items.rs Rewrite implementation of #[alloc_error_handler] 2022-10-31 16:32:57 +00:00