]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Auto merge of #60174 - matthewjasper:add-match-arm-scopes, r=pnkfelix
authorbors <bors@rust-lang.org>
Thu, 23 May 2019 04:48:21 +0000 (04:48 +0000)
committerbors <bors@rust-lang.org>
Thu, 23 May 2019 04:48:21 +0000 (04:48 +0000)
commit85334c50921a1c90707c9d0fb344c63bd373e1b8
tree29d106408d94b1b1809af77d59fa47dff995da93
parent15ccaf77911d9261d0c254be8a3e878db84792c6
parent0835048ea0fc724163b5032112df3c7555a2073b
Auto merge of #60174 - matthewjasper:add-match-arm-scopes, r=pnkfelix

Add match arm scopes and other scope fixes

* Add drop and lint scopes for match arms.
* Lint attributes are now respected on match arms.
* Make sure we emit a StorageDead if we diverge when initializing a temporary.
* Adjust MIR pretty printing of scopes for locals.
* Don't generate duplicate lint scopes for `let statements`.
* Add some previously missing fake borrows for matches.

closes #46525

cc @rust-lang/compiler
src/librustc/hir/lowering.rs
src/librustc/hir/map/mod.rs
src/librustc/hir/mod.rs
src/librustc/hir/print.rs
src/librustc_mir/build/mod.rs
src/librustc_mir/build/scope.rs
src/libsyntax/ast.rs
src/libsyntax/ext/build.rs
src/libsyntax/mut_visit.rs
src/libsyntax/parse/parser.rs