Rename ty_def_id so people will stop using it by accident
This commit is contained in:
@@ -33,7 +33,7 @@ pub struct QueryStackFrame {
|
||||
pub def_id: Option<DefId>,
|
||||
pub def_kind: Option<DefKind>,
|
||||
/// A def-id that is extracted from a `Ty` in a query key
|
||||
pub ty_def_id: Option<DefId>,
|
||||
pub def_id_for_ty_in_cycle: Option<DefId>,
|
||||
pub dep_kind: DepKind,
|
||||
/// This hash is used to deterministically pick
|
||||
/// a query to remove cycles in the parallel compiler.
|
||||
@@ -48,10 +48,10 @@ impl QueryStackFrame {
|
||||
def_id: Option<DefId>,
|
||||
def_kind: Option<DefKind>,
|
||||
dep_kind: DepKind,
|
||||
ty_def_id: Option<DefId>,
|
||||
def_id_for_ty_in_cycle: Option<DefId>,
|
||||
hash: impl FnOnce() -> Hash64,
|
||||
) -> Self {
|
||||
Self { description, span, def_id, def_kind, ty_def_id, dep_kind, hash: hash() }
|
||||
Self { description, span, def_id, def_kind, def_id_for_ty_in_cycle, dep_kind, hash: hash() }
|
||||
}
|
||||
|
||||
// FIXME(eddyb) Get more valid `Span`s on queries.
|
||||
|
||||
Reference in New Issue
Block a user