]> git.lizzy.rs Git - rust.git/commit
Update the syn crate and adopt let_else in three more places
authorest31 <MTest31@outlook.com>
Sat, 16 Oct 2021 02:37:30 +0000 (04:37 +0200)
committerest31 <MTest31@outlook.com>
Sat, 16 Oct 2021 05:18:15 +0000 (07:18 +0200)
commitef018be5c49d7a0bb8ad8e3485111e8b2ab9c5ac
tree7d43eb40bd52d7d62ad1ccb552c8dc66b3a91f9d
parent1418df5888131578eae04b39360f30df4ffe5599
Update the syn crate and adopt let_else in three more places

The syn crate has gained support for let_else syntax in version 1.0.76,
see https://github.com/dtolnay/syn/pull/1057 .

In the three instances that use let_else, we've sent code through an
attr macro, which would create compile errors when there was no
let_else support in syn. To avoid this, we ran
`cargo +nightly update -p syn` for updating the syn crate.
Cargo.lock
compiler/rustc_resolve/src/late/lifetimes.rs
compiler/rustc_typeck/src/check/coercion.rs
compiler/rustc_typeck/src/check/upvar.rs