rust/compiler/rustc_query_impl
Matthias Krüger 1948288615
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.
2022-08-17 12:32:51 +02:00
..
src Rollup merge of #100389 - compiler-errors:return-type-suggestion-cycle, r=cjgillot 2022-08-17 12:32:51 +02:00
Cargo.toml Do not report cycle error when inferring return type for suggestion 2022-08-16 03:00:32 +00:00