Skip to content

Commit

Permalink
Rollup merge of #134474 - oli-obk:push-yomnkntvzlxw, r=compiler-errors
Browse files Browse the repository at this point in the history
Forbid overwriting types in typeck

While trying to figure out some type setting logic in rust-lang/rust#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.
  • Loading branch information
jieyouxu authored Dec 19, 2024
2 parents 5305b02 + 9321f7e commit 505ab38
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 505ab38

Please sign in to comment.