about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/query.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-08-17 12:32:51 +0200
committerGitHub <noreply@github.com>2022-08-17 12:32:51 +0200
commit1948288615bb75ba916169e3eaf5e2ad33c5e7d7 (patch)
treef07247cc7fa22c9cf8ee47f353c69b13ed4ad309 /compiler/rustc_mir_transform/src/coverage/query.rs
parent989e4ffc7c45db3905926c6650e8b2cf6daa43db (diff)
parent5309375d2c8d51dafedb5404f0fb49f402350394 (diff)
downloadrust-1948288615bb75ba916169e3eaf5e2ad33c5e7d7.tar.gz
rust-1948288615bb75ba916169e3eaf5e2ad33c5e7d7.zip
Rollup merge of #100389 - compiler-errors:return-type-suggestion-cycle, r=cjgillot
Do not report cycle error when inferring return type for suggestion

The UI test is a good example of a case where this happens. The cycle is due to needing the value of the return type `-> _` to compute the variances of items in the crate, but then needing the variances of the items in the crate to do typechecking to infer what `-> _`'s real type is.

Since we're already gonna emit an error in astconv, just delay the cycle bug as an error.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/query.rs')
0 files changed, 0 insertions, 0 deletions