about summary refs log tree commit diff
path: root/src/librustc/ty/query
diff options
context:
space:
mode:
authorscalexm <alexandre@scalexm.fr>2018-10-11 17:57:45 +0200
committerscalexm <alexandre@scalexm.fr>2018-10-17 14:09:39 +0200
commite1926080db954fea5ac6abb75267bde762d478c5 (patch)
treeaaa1041b3c15da6544dc7fb941dc25a3a3a50ca8 /src/librustc/ty/query
parent079b97c54391af0a589f9dc8e28af56c9c950424 (diff)
downloadrust-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.rs6
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 {