Various changes to logging of borrowck-related code
This commit is contained in:
parent
7c142a6137
commit
8033c3c27d
13 changed files with 41 additions and 84 deletions
|
@ -504,7 +504,7 @@ pub enum FixupError<'tcx> {
|
|||
}
|
||||
|
||||
/// See the `region_obligations` field for more information.
|
||||
#[derive(Clone)]
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct RegionObligation<'tcx> {
|
||||
pub sub_region: ty::Region<'tcx>,
|
||||
pub sup_type: Ty<'tcx>,
|
||||
|
@ -2027,16 +2027,6 @@ impl RegionVariableOrigin {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'tcx> fmt::Debug for RegionObligation<'tcx> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
write!(
|
||||
f,
|
||||
"RegionObligation(sub_region={:?}, sup_type={:?})",
|
||||
self.sub_region, self.sup_type
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
/// Replaces substs that reference param or infer variables with suitable
|
||||
/// placeholders. This function is meant to remove these param and infer
|
||||
/// substs when they're not actually needed to evaluate a constant.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue