]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/ty/maps/job.rs
Store query jobs and query results in separate maps to reduce memory usage
[rust.git] / src / librustc / ty / maps / job.rs
index 374406158c1d51a5695dfd0ae615e4dd686d1e8c..3b6af018d6b789d839c4bb2a2f84781bc867cc9a 100644 (file)
 use errors::Diagnostic;
 
 /// Indicates the state of a query for a given key in a query map
-pub(super) enum QueryResult<'tcx, T> {
+pub(super) enum QueryResult<'tcx> {
     /// An already executing query. The query job can be used to await for its completion
     Started(Lrc<QueryJob<'tcx>>),
 
-    /// The query is complete and produced `T`
-    Complete(T),
-
     /// The query panicked. Queries trying to wait on this will raise a fatal error / silently panic
     Poisoned,
 }