1
Fork 0

Move DefiningAnchor

This commit is contained in:
Michael Goulet 2023-05-09 20:18:22 +00:00
parent 4d80b8090c
commit a2d7ffc635
13 changed files with 34 additions and 27 deletions

View file

@ -1108,3 +1108,14 @@ pub enum CodegenObligationError {
Unimplemented,
FulfillmentError,
}
#[derive(Debug, PartialEq, Eq, Clone, Copy, Hash, TypeFoldable, TypeVisitable)]
pub enum DefiningAnchor {
/// `DefId` of the item.
Bind(LocalDefId),
/// When opaque types are not resolved, we `Bubble` up, meaning
/// return the opaque/hidden type pair from query, for caller of query to handle it.
Bubble,
/// Used to catch type mismatch errors when handling opaque types.
Error,
}