]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Auto merge of #66384 - cjgillot:typefoldable, r=Zoxc
authorbors <bors@rust-lang.org>
Sun, 17 Nov 2019 15:25:10 +0000 (15:25 +0000)
committerbors <bors@rust-lang.org>
Sun, 17 Nov 2019 15:25:10 +0000 (15:25 +0000)
commitd8014582b843d8722795b06586ef9c2042094963
treec8bbdde9cff8ad44764df9dd3f57befb2d23f52b
parent4b6cef1e32b4f2fa44b7d8ebd7ddef0bdeaf51a2
parentcb46c3558af9f9863f3fa3659693fcc883dbfcee
Auto merge of #66384 - cjgillot:typefoldable, r=Zoxc

Derive TypeFoldable using a proc-macro

A new proc macro is added in librustc_macros.
It is used to derive TypeFoldable inside librustc and librustc_traits.

For now, the macro uses the `'tcx` lifetime implicitly, and does not allow for a more robust selection of the adequate lifetime.

The Clone-based TypeFoldable implementations are not migrated.

Closes #65674
14 files changed:
Cargo.lock
src/librustc/infer/canonical/mod.rs
src/librustc/infer/mod.rs
src/librustc/mir/mod.rs
src/librustc/traits/mod.rs
src/librustc/traits/query/dropck_outlives.rs
src/librustc/ty/context.rs
src/librustc/ty/fold.rs
src/librustc/ty/mod.rs
src/librustc/ty/relate.rs
src/librustc/ty/structural_impls.rs
src/librustc/ty/sty.rs
src/librustc/ty/subst.rs
src/librustc_traits/chalk_context/mod.rs