about summary refs log tree commit diff
path: root/compiler/rustc_parse
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-10-23 15:20:17 +0530
committerGitHub <noreply@github.com>2022-10-23 15:20:17 +0530
commit8440b09d1705c0c0120b7c6cb2c74d128136d2d4 (patch)
treebb07591f232d47d740a6d386ca70d86793263c0e /compiler/rustc_parse
parente42687478870e9a764feabc7277300f2afe7a2ac (diff)
parent134de38e4dd44a6b7a0c8c3bb7a6ae02e1a08c86 (diff)
downloadrust-8440b09d1705c0c0120b7c6cb2c74d128136d2d4.tar.gz
rust-8440b09d1705c0c0120b7c6cb2c74d128136d2d4.zip
Rollup merge of #103226 - compiler-errors:delay-if-need-infer, r=lcnr
Check `needs_infer` before `needs_drop` during HIR generator analysis

This is kinda a revival of #103036, but with the understanding that after fallback, a generator-interior type will only have `needs_infer` true if there's an error that prevented int or float variable fallback to occur (modulo region variables, which are erased).

Therefore the best choice here is to delay a bug and skip the `needs_drop` call altogether.

r? `@lcnr` feel free to reassign though
Diffstat (limited to 'compiler/rustc_parse')
0 files changed, 0 insertions, 0 deletions