]> git.lizzy.rs Git - rust.git/commit - compiler/rustc_codegen_cranelift/src/base.rs
Auto merge of #106253 - nbdd0121:upcast, r=compiler-errors
authorbors <bors@rust-lang.org>
Sun, 29 Jan 2023 10:20:25 +0000 (10:20 +0000)
committerbors <bors@rust-lang.org>
Sun, 29 Jan 2023 10:20:25 +0000 (10:20 +0000)
commitd117135f5a9b69ee3adfb1918aa25616758bf692
treecf9c6d8cab71b9b5125f2a27a76437640ebfcc4b
parenta29efccb1eff324c63454677688b5d7e08b5f40f
parent66f3ab90a14254d70c96acb0332fe403964025ce
Auto merge of #106253 - nbdd0121:upcast, r=compiler-errors

Skip possible where_clause_object_safety lints when checking `multiple_supertrait_upcastable`

Fix #106247

To achieve this, I lifted the `WhereClauseReferencesSelf` out from `object_safety_violations` and move it into `is_object_safe` (which is changed to a new query).

cc `@dtolnay`
r? `@compiler-errors`
compiler/rustc_hir_analysis/src/check/wfcheck.rs
compiler/rustc_middle/src/query/mod.rs
compiler/rustc_middle/src/ty/mod.rs
compiler/rustc_trait_selection/src/solve/mod.rs
compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs