diff options
| author | bors <bors@rust-lang.org> | 2023-06-12 17:23:48 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-06-12 17:23:48 +0000 |
| commit | df77afbcaf3365a32066a8ca4a00ae6fc9a69647 (patch) | |
| tree | 1d88c226fa8e26cb089a7f56d6b92e190aa27de3 /compiler/rustc_infer/src/infer/combine.rs | |
| parent | b963a57205e548e8538a8182b1c273ea75007614 (diff) | |
| parent | 9cb785b9d3cb07ba52691ab4f8e6cb0a91d7d9aa (diff) | |
| download | rust-df77afbcaf3365a32066a8ca4a00ae6fc9a69647.tar.gz rust-df77afbcaf3365a32066a8ca4a00ae6fc9a69647.zip | |
Auto merge of #112563 - matthiaskrgr:rollup-ebetrzi, r=matthiaskrgr
Rollup of 4 pull requests Successful merges: - #112302 (Suggest using `ptr::null_mut` when user provided `ptr::null` to a function expecting `ptr::null_mut`) - #112416 (Fix debug ICE for extern type with where clauses) - #112527 (Add windows_sys type definitions for ARM32 manually) - #112546 (new solver: extend assert to other aliases) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_infer/src/infer/combine.rs')
| -rw-r--r-- | compiler/rustc_infer/src/infer/combine.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_infer/src/infer/combine.rs b/compiler/rustc_infer/src/infer/combine.rs index 7a80ee98cb3..bb2bd2faec2 100644 --- a/compiler/rustc_infer/src/infer/combine.rs +++ b/compiler/rustc_infer/src/infer/combine.rs @@ -34,7 +34,7 @@ use rustc_middle::infer::unify_key::{ConstVarValue, ConstVariableValue}; use rustc_middle::infer::unify_key::{ConstVariableOrigin, ConstVariableOriginKind}; use rustc_middle::ty::error::{ExpectedFound, TypeError}; use rustc_middle::ty::relate::{RelateResult, TypeRelation}; -use rustc_middle::ty::{self, AliasKind, InferConst, ToPredicate, Ty, TyCtxt, TypeVisitableExt}; +use rustc_middle::ty::{self, InferConst, ToPredicate, Ty, TyCtxt, TypeVisitableExt}; use rustc_middle::ty::{IntType, UintType}; use rustc_span::DUMMY_SP; @@ -103,12 +103,12 @@ impl<'tcx> InferCtxt<'tcx> { // We don't expect `TyVar` or `Fresh*` vars at this point with lazy norm. ( - ty::Alias(AliasKind::Projection, _), + ty::Alias(..), ty::Infer(ty::TyVar(_) | ty::FreshTy(_) | ty::FreshIntTy(_) | ty::FreshFloatTy(_)), ) | ( ty::Infer(ty::TyVar(_) | ty::FreshTy(_) | ty::FreshIntTy(_) | ty::FreshFloatTy(_)), - ty::Alias(AliasKind::Projection, _), + ty::Alias(..), ) if self.next_trait_solver() => { bug!() } |
