mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
816cda7e1b
Move generator check earlier in inlining. Inlining into generator may create references to other generators. For instance, inlining `Pin::<&mut from_generator::GenFuture<[generator1]>>::new_unchecked` into `generator2`. This cross reference can then create cycles when computing inlining for `generator1`. In order to avoid this kind of surprises, we forbid all inlining into generators, and rely on LLVM to do the right thing. The existing `remove-zst-query-cycle` already ICEs in inline-mir mode, so we use it as test. Split from #91743. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |