Make it easier to print debugging with Debug
This commit is contained in:
parent
7b76b94780
commit
388de386f5
1 changed files with 3 additions and 1 deletions
|
@ -175,6 +175,7 @@ struct StateData<'tcx> {
|
||||||
adjusted_ty: Ty<'tcx>,
|
adjusted_ty: Ty<'tcx>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
struct DerefedBorrow {
|
struct DerefedBorrow {
|
||||||
count: usize,
|
count: usize,
|
||||||
msg: &'static str,
|
msg: &'static str,
|
||||||
|
@ -182,6 +183,7 @@ struct DerefedBorrow {
|
||||||
for_field_access: Option<Symbol>,
|
for_field_access: Option<Symbol>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
enum State {
|
enum State {
|
||||||
// Any number of deref method calls.
|
// Any number of deref method calls.
|
||||||
DerefMethod {
|
DerefMethod {
|
||||||
|
@ -744,7 +746,7 @@ fn in_postfix_position<'tcx>(cx: &LateContext<'tcx>, e: &'tcx Expr<'tcx>) -> boo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Copy)]
|
#[derive(Clone, Copy, Debug)]
|
||||||
enum TyCoercionStability {
|
enum TyCoercionStability {
|
||||||
Deref,
|
Deref,
|
||||||
Reborrow,
|
Reborrow,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue