about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/errors.rs
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2024-12-19 16:48:10 +0800
committerGitHub <noreply@github.com>2024-12-19 16:48:10 +0800
commitc0b47d95f8c61a825ac2340f7fdaba9e696e53c0 (patch)
tree95909d5131dcf5845cd524aec416859e17b9be52 /compiler/rustc_mir_transform/src/errors.rs
parentcc3053a1f3b2df217d7979d099e75f5539ce51e2 (diff)
parent661b8f5694ff1d188172ecb893b71cd5da2f6072 (diff)
downloadrust-c0b47d95f8c61a825ac2340f7fdaba9e696e53c0.tar.gz
rust-c0b47d95f8c61a825ac2340f7fdaba9e696e53c0.zip
Rollup merge of #134474 - oli-obk:push-yomnkntvzlxw, r=compiler-errors
Forbid overwriting types in typeck

While trying to figure out some type setting logic in https://github.com/rust-lang/rust/pull/134248 I realized that we sometimes set a type twice. While hopefully that would have been the same type, we didn't ensure that at all and just silently accepted it. So now we reject setting it twice, unless errors are happening, then we don't care.

Best reviewed commit by commit.

No behaviour change is intended.
Diffstat (limited to 'compiler/rustc_mir_transform/src/errors.rs')
0 files changed, 0 insertions, 0 deletions