diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-05-25 12:54:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-25 12:54:34 +0200 |
| commit | 7ea507e0415deedf8ba7d477ef0fba4da9c90ae2 (patch) | |
| tree | 81432fdb4244c59e4093ce8baf11169d8b22910f /compiler/rustc_middle/src | |
| parent | f28d36899c1e914bd8e994c8f526da70a0ed1073 (diff) | |
| parent | d5eb7a71b3c869eb9e15f10da6eb92303b96dfb5 (diff) | |
| download | rust-7ea507e0415deedf8ba7d477ef0fba4da9c90ae2.tar.gz rust-7ea507e0415deedf8ba7d477ef0fba4da9c90ae2.zip | |
Rollup merge of #125451 - oli-obk:const_type_mismatch, r=compiler-errors
Fail relating constants of different types fixes #121585 fixes #121858 fixes #124151 I gave this several attempts before, but we lost too many important diagnostics until I managed to make compilation never bail out early. We have reached this point, so now we can finally fix all those ICEs by bubbling up an error instead of continueing when we encounter a bug.
Diffstat (limited to 'compiler/rustc_middle/src')
| -rw-r--r-- | compiler/rustc_middle/src/query/mod.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/compiler/rustc_middle/src/query/mod.rs b/compiler/rustc_middle/src/query/mod.rs index 5a6decc4f94..8ca7a465c2a 100644 --- a/compiler/rustc_middle/src/query/mod.rs +++ b/compiler/rustc_middle/src/query/mod.rs @@ -2218,15 +2218,6 @@ rustc_queries! { separate_provide_extern } - /// Used in `super_combine_consts` to ICE if the type of the two consts are definitely not going to end up being - /// equal to eachother. This might return `Ok` even if the types are not equal, but will never return `Err` if - /// the types might be equal. - query check_tys_might_be_eq( - arg: Canonical<'tcx, ty::ParamEnvAnd<'tcx, (Ty<'tcx>, Ty<'tcx>)>> - ) -> Result<(), NoSolution> { - desc { "check whether two const param are definitely not equal to eachother"} - } - /// Get all item paths that were stripped by a `#[cfg]` in a particular crate. /// Should not be called for the local crate before the resolver outputs are created, as it /// is only fed there. |
