rust/compiler/rustc_typeck
Yuki Okushi aaef1a1649
Rollup merge of #87554 - sexxi-goose:fix-issue-87426, r=nikomatsakis
2229: Discr should be read when PatKind is Range

This PR fixes an issue related to pattern matching in closures when Edition 2021 is enabled.

- If any of the patterns the discr is being matched on is `PatKind::Range` then the discr should be read

r? ```@nikomatsakis```

Closes https://github.com/rust-lang/rust/issues/87426
2021-07-30 16:26:55 +09:00
..
src Rollup merge of #87554 - sexxi-goose:fix-issue-87426, r=nikomatsakis 2021-07-30 16:26:55 +09:00
Cargo.toml move representability out of rustc_middle 2021-04-27 15:01:37 +02:00
README.md mv compiler to compiler/ 2020-08-30 18:45:07 +03:00

For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.