]> git.lizzy.rs Git - rust.git/commit
Auto merge of #42480 - eddyb:issue-42463, r=nikomatsakis
authorbors <bors@rust-lang.org>
Wed, 7 Jun 2017 07:52:12 +0000 (07:52 +0000)
committerbors <bors@rust-lang.org>
Wed, 7 Jun 2017 07:52:12 +0000 (07:52 +0000)
commit89fceaa5b09792efb1ef3ab872f6e351f351f0f2
treee9272fbb57f4f754bb5ad73017c474d863d4f168
parentf73f675a864e966aedde79f8d2a8c821128e6b10
parentb02e3a165c4f6b7bc3d2158cef2cb46f5b91e14a
Auto merge of #42480 - eddyb:issue-42463, r=nikomatsakis

rustc_typeck: do not overlap a borrow of TypeckTables with method lookup.

If trait selection is reached, it could potentially request a closure signature, which will have to borrow the `TypeckTables` of the current function, and so those tables *should not* be mutably borrowed.

Fixes #42463.
r? @nikomatsakis