rust/compiler/rustc_middle/src/ty
Michael Goulet b0483e8004
Rollup merge of #109938 - oli-obk:try_norm, r=compiler-errors
Move a const-prop-lint specific hack from mir interpret to const-prop-lint and make it fallible

fixes #109743

This hack didn't need to live in the mir interpreter. For const-prop-lint it is entirely correct to avoid doing any const prop if normalization fails at this stage. Most likely we couldn't const propagate anything anyway, and if revealing was needed (so opaque types were involved), we wouldn't want to be too smart and leak the hidden type anyway.
2023-04-04 09:27:47 -07:00
..
consts use and_then/flat_map for map().flatten() 2023-04-01 23:50:45 +02:00
context Update indexmap and rayon crates 2023-03-25 02:12:13 +01:00
inhabitedness Auto merge of #108351 - petrochenkov:rmdit, r=cjgillot 2023-03-05 10:37:02 +00:00
print Rollup merge of #109506 - BoxyUwU:debugable_bound_var_printing, r=compiler-errors 2023-03-23 08:35:36 +01:00
_match.rs Remove intercrate and mark_ambiguous from Relation 2023-04-04 00:09:12 +00:00
abstract_const.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
adjustment.rs Update ty::VariantDef to use IndexVec<FieldIdx, FieldDef> 2023-03-30 09:23:40 -07:00
adt.rs Use &IndexSlice instead of &IndexVec where possible 2023-04-02 17:35:37 -07:00
assoc.rs Don't opt_rpitit_info as a separate query 2023-03-13 17:02:47 +00: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 Update ty::VariantDef to use IndexVec<FieldIdx, FieldDef> 2023-03-30 09:23:40 -07:00
codec.rs Add mk_canonical_var_infos_from_iter. 2023-02-24 07:33:02 +11:00
consts.rs IdentitySubsts::identity_for_item takes Into<DefId> 2023-03-21 15:38:52 +00:00
context.rs Move mir::Fieldabi::FieldIdx 2023-03-28 22:22:37 -07:00
diagnostics.rs Place binder correctly for arbitrary trait bound suggestion 2023-03-06 16:37:34 +00:00
erase_regions.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
error.rs remove duplicated calls to sort_string 2023-03-11 16:15:06 +03:00
fast_reject.rs Auto merge of #109750 - compiler-errors:deep-reject-less-permissive-num-var, r=lcnr 2023-03-31 00:59:04 +00:00
flags.rs Rename AliasEq -> AliasRelate 2023-03-23 05:56:40 +00:00
fold.rs drive-by: Fix a comment in TyCtxt::fold_regions and remove an unused method 2023-03-20 04:50:07 +00:00
generics.rs Rename ty_error_with_guaranteed to ty_error, ty_error to ty_error_misc 2023-02-22 22:23:45 +00:00
impls_ty.rs Rename many interner functions. 2023-02-24 07:32:24 +11:00
instance.rs Support TLS access into dylibs on Windows 2023-03-29 08:55:21 +02:00
layout.rs Update ty::VariantDef to use IndexVec<FieldIdx, FieldDef> 2023-03-30 09:23:40 -07:00
list.rs add List::as_slice 2022-08-17 11:22:47 +02:00
mod.rs Update ty::VariantDef to use IndexVec<FieldIdx, FieldDef> 2023-03-30 09:23:40 -07:00
normalize_erasing_regions.rs Move a const-prop-lint specific hack from mir interpret to const-prop-lint and make it fallible 2023-04-04 10:39:26 +00:00
opaque_types.rs Rename many interner functions. 2023-02-24 07:32:24 +11:00
parameterized.rs Encode opt_rpitit_info for associated types 2023-03-14 22:10:09 +00:00
query.rs query_keys_local is conditional on separate_provide_if_extern 2023-03-21 15:38:52 +00:00
relate.rs Remove intercrate and mark_ambiguous from Relation 2023-04-04 00:09:12 +00:00
rvalue_scopes.rs rustc_typeck to rustc_hir_analysis 2022-09-27 10:37:23 +02:00
structural_impls.rs Move mir::Fieldabi::FieldIdx 2023-03-28 22:22:37 -07:00
sty.rs Update ty::VariantDef to use IndexVec<FieldIdx, FieldDef> 2023-03-30 09:23:40 -07:00
subst.rs IdentitySubsts::identity_for_item takes Into<DefId> 2023-03-21 15:38:52 +00:00
trait_def.rs Don't split up TreatProjections and TreatParams anymore 2023-03-23 18:57:02 +00:00
typeck_results.rs Update ty::VariantDef to use IndexVec<FieldIdx, FieldDef> 2023-03-30 09:23:40 -07:00
util.rs fix(middle): emit error rather than delay bug when reaching limit 2023-04-03 11:08:14 +08:00
visit.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
vtable.rs Rename many interner functions. 2023-02-24 07:32:24 +11:00
walk.rs Introduce GeneratorWitnessMIR. 2023-01-27 18:58:44 +00:00