scala/scala — pull request #910 by adriaanm (2012-07-14 15:49:05+00:00)
Title: SI-6028 Avoid needless symbol renaming in lambdalift

reviewed as #847 (which was against master but this is deemed critical)

original description:

Preserve names of all referenced free vars. This is achieved
in a slightly roundabout manner:

1. they are renamed (as before this change)
2. the code that references them is lifted
3. the original names are restored.

The resulting natural beauty is evident in the [diff of t6028.check](https://github.com/retronym/scala/commit/22f2e355#diff-3).

This subsumes the treatment in 0e170e4 that ensured named parameter
calls cannot see mangled names; pos/t6028 confirms as much.

Review by @lrytz