]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Auto merge of #52890 - djrenren:test-visibility, r=petrochenkov
authorbors <bors@rust-lang.org>
Thu, 2 Aug 2018 08:24:14 +0000 (08:24 +0000)
committerbors <bors@rust-lang.org>
Thu, 2 Aug 2018 08:24:14 +0000 (08:24 +0000)
commit02a369a5c8a9be35ddfa17b8af1d51459c4a6bc6
tree476ae2ee989e045e1e5a9256960c253d23877769
parentdb5476571d9b27c862b95c1e64764b0ac8980e23
parent77f9aca2a3e30eb430ba5a506261ff126c2d3077
Auto merge of #52890 - djrenren:test-visibility, r=petrochenkov

Reexport tests without polluting namespaces

This should fix issue #52557.

Basically now we gensym a new name for the test function and reexport that.
That way the test function's reexport name can't conflict because it was impossible for the test author to write it down.
We then use a `use` statement to expose the original name using the original visibility.
src/libsyntax/ext/expand.rs