]> git.lizzy.rs Git - rust.git/commit
Auto merge of #34095 - petrochenkov:pathir2, r=jseyfried
authorbors <bors@rust-lang.org>
Thu, 9 Jun 2016 22:48:37 +0000 (15:48 -0700)
committerGitHub <noreply@github.com>
Thu, 9 Jun 2016 22:48:37 +0000 (15:48 -0700)
commit7d2f75a953b5645d3a336b2978b48b60d310bf54
treee08cdb6ca15086992180b9b05204f67801cdc0a8
parentee00760a14020d73e8ad509b2ddbd3054101db6f
parent6d7b35bd98858a8095fbc205115cedf069434f7f
Auto merge of #34095 - petrochenkov:pathir2, r=jseyfried

Improvements to pattern resolution + some refactoring

Continuation of https://github.com/rust-lang/rust/pull/33929
First commit is a careful rewrite of `resolve_pattern`, pattern path resolution and new binding creation logic is factored out in separate functions, some minor bugs are fixed. Also, `resolve_possibly_assoc_item` doesn't swallow modules now.
Later commits are refactorings, see the comment descriptions.

I intend to continue this work later with better support for `Def::Err` in patterns in post-resolve stages and cleanup of pattern resolution code in type checker.

Fixes https://github.com/rust-lang/rust/issues/32086
Fixes https://github.com/rust-lang/rust/issues/34047 ([breaking-change])
Fixes https://github.com/rust-lang/rust/issues/34074

cc @jseyfried
r? @eddyb