-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Remove QueryInfo.
#153639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove QueryInfo.
#153639
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,15 +8,15 @@ use rustc_data_structures::sync::{AtomicU64, WorkerLocal}; | |
| use rustc_errors::Diag; | ||
| use rustc_hir::def_id::{DefId, LocalDefId}; | ||
| use rustc_hir::hir_id::OwnerId; | ||
| use rustc_span::Span; | ||
| use rustc_span::{Span, Spanned}; | ||
| pub use sealed::IntoQueryParam; | ||
|
|
||
| use crate::dep_graph::{DepKind, DepNodeIndex, SerializedDepNodeIndex}; | ||
| use crate::ich::StableHashingContext; | ||
| use crate::queries::{ExternProviders, Providers, QueryArenas, QueryVTables, TaggedQueryKey}; | ||
| use crate::query::on_disk_cache::OnDiskCache; | ||
| use crate::query::stack::QueryStackFrame; | ||
| use crate::query::{QueryCache, QueryInfo, QueryJob}; | ||
| use crate::query::{QueryCache, QueryJob}; | ||
| use crate::ty::TyCtxt; | ||
|
|
||
| /// For a particular query, keeps track of "active" keys, i.e. keys whose | ||
|
|
@@ -50,11 +50,13 @@ pub enum ActiveKeyStatus<'tcx> { | |
| Poisoned, | ||
| } | ||
|
|
||
| #[derive(Clone, Debug)] | ||
| #[derive(Debug)] | ||
| pub struct CycleError<'tcx> { | ||
| /// The query and related span that uses the cycle. | ||
| pub usage: Option<(Span, QueryStackFrame<'tcx>)>, | ||
| pub cycle: Vec<QueryInfo<'tcx>>, | ||
| pub usage: Option<Spanned<QueryStackFrame<'tcx>>>, | ||
|
|
||
| /// The span here corresponds to the reason for which this query was required. | ||
| pub cycle: Vec<Spanned<QueryStackFrame<'tcx>>>, | ||
|
Comment on lines
+56
to
+59
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using Now we have a bunch of odd code that has to repeatedly do |
||
| } | ||
|
|
||
| #[derive(Debug)] | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.