diff options
| author | mark <markm@cs.wisc.edu> | 2020-08-27 22:58:48 -0500 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2020-08-30 18:45:07 +0300 |
| commit | 9e5f7d5631b8f4009ac1c693e585d4b7108d4275 (patch) | |
| tree | 158a05eb3f204a8e72939b58427d0c2787a4eade /compiler/rustc_traits/src/lib.rs | |
| parent | db534b3ac286cf45688c3bbae6aa6e77439e52d2 (diff) | |
| download | rust-9e5f7d5631b8f4009ac1c693e585d4b7108d4275.tar.gz rust-9e5f7d5631b8f4009ac1c693e585d4b7108d4275.zip | |
mv compiler to compiler/
Diffstat (limited to 'compiler/rustc_traits/src/lib.rs')
| -rw-r--r-- | compiler/rustc_traits/src/lib.rs | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/compiler/rustc_traits/src/lib.rs b/compiler/rustc_traits/src/lib.rs new file mode 100644 index 00000000000..6fea4732dda --- /dev/null +++ b/compiler/rustc_traits/src/lib.rs @@ -0,0 +1,33 @@ +//! New recursive solver modeled on Chalk's recursive solver. Most of +//! the guts are broken up into modules; see the comments in those modules. + +#![feature(crate_visibility_modifier)] +#![feature(in_band_lifetimes)] +#![feature(nll)] +#![feature(or_patterns)] +#![recursion_limit = "256"] + +#[macro_use] +extern crate tracing; +#[macro_use] +extern crate rustc_middle; + +mod chalk; +mod dropck_outlives; +mod evaluate_obligation; +mod implied_outlives_bounds; +mod normalize_erasing_regions; +mod normalize_projection_ty; +mod type_op; + +use rustc_middle::ty::query::Providers; + +pub fn provide(p: &mut Providers) { + dropck_outlives::provide(p); + evaluate_obligation::provide(p); + implied_outlives_bounds::provide(p); + chalk::provide(p); + normalize_projection_ty::provide(p); + normalize_erasing_regions::provide(p); + type_op::provide(p); +} |
