rust/compiler/rustc_query_impl/src
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
..
keys.rs Use LocalDefId for closures more 2022-07-30 15:59:17 -05:00
lib.rs consistently use VTable over Vtable (matching stable stdlib API RawWakerVTable) 2022-07-20 17:12:07 -04:00
on_disk_cache.rs Move abstract const to rustc_middle::ty 2022-07-12 02:21:31 +00:00
plumbing.rs Remove usages of opt_remap_env_constness 2022-08-15 21:26:31 -04:00
profiling_support.rs Integrate measureme's hardware performance counter support. 2022-06-13 07:56:47 +00:00
README.md Move the query system to rustc_query_impl. 2021-02-19 17:51:58 +01:00
values.rs Do not report cycle error when inferring return type for suggestion 2022-08-16 03:00:32 +00:00

For more information about how the query system works, see the rustc dev guide.