diff options
| author | scalexm <alexandre@scalexm.fr> | 2018-10-11 17:57:45 +0200 |
|---|---|---|
| committer | scalexm <alexandre@scalexm.fr> | 2018-10-17 14:09:39 +0200 |
| commit | e1926080db954fea5ac6abb75267bde762d478c5 (patch) | |
| tree | aaa1041b3c15da6544dc7fb941dc25a3a3a50ca8 /src/librustc/ty/query | |
| parent | 079b97c54391af0a589f9dc8e28af56c9c950424 (diff) | |
| download | rust-e1926080db954fea5ac6abb75267bde762d478c5.tar.gz rust-e1926080db954fea5ac6abb75267bde762d478c5.zip | |
Add `FromEnv` for input types in the environment
Diffstat (limited to 'src/librustc/ty/query')
| -rw-r--r-- | src/librustc/ty/query/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc/ty/query/mod.rs b/src/librustc/ty/query/mod.rs index adb5883fd5e..b61bc8b4fd9 100644 --- a/src/librustc/ty/query/mod.rs +++ b/src/librustc/ty/query/mod.rs @@ -377,9 +377,6 @@ define_queries! { <'tcx> // might want to use `reveal_all()` method to change modes. [] fn param_env: ParamEnv(DefId) -> ty::ParamEnv<'tcx>, - // Get the chalk-style environment of the given item. - [] fn environment: Environment(DefId) -> traits::Environment<'tcx>, - // Trait selection queries. These are best used by invoking `ty.moves_by_default()`, // `ty.is_copy()`, etc, since that will prune the environment where possible. [] fn is_copy_raw: is_copy_dep_node(ty::ParamEnvAnd<'tcx, Ty<'tcx>>) -> bool, @@ -669,6 +666,9 @@ define_queries! { <'tcx> [] fn program_clauses_for_env: ProgramClausesForEnv( traits::Environment<'tcx> ) -> Clauses<'tcx>, + + // Get the chalk-style environment of the given item. + [] fn environment: Environment(DefId) -> traits::Environment<'tcx>, }, Linking { |
