]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #57885 - arielb1:xform-probe, r=nikomatsakis
authorbors <bors@rust-lang.org>
Sat, 9 Feb 2019 15:11:43 +0000 (15:11 +0000)
committerbors <bors@rust-lang.org>
Sat, 9 Feb 2019 15:11:43 +0000 (15:11 +0000)
Avoid committing to autoderef in object method probing

This fixes the "leak" introduced in #57835 (see test for details, also apparently #54252 had no tests for the "leaks" that were fixed in it, so go ahead and add one).

Maybe beta-nominating because regression, but I'm against landing things on beta we don't have to.

r? @nikomatsakis

1  2 
src/librustc_typeck/check/method/probe.rs