Move DefiningAnchor
This commit is contained in:
parent
4d80b8090c
commit
a2d7ffc635
13 changed files with 34 additions and 27 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue