Skip to content

Commit 6bc79c9

Browse files
committed
use derive(Debug) for TypeTrace
1 parent 534f044 commit 6bc79c9

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/librustc/infer/mod.rs

+1-7
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ pub enum ValuePairs<'tcx> {
246246
/// encounter an error or subtyping constraint.
247247
///
248248
/// See the `error_reporting` module for more details.
249-
#[derive(Clone)]
249+
#[derive(Clone, Debug)]
250250
pub struct TypeTrace<'tcx> {
251251
cause: ObligationCause<'tcx>,
252252
values: ValuePairs<'tcx>,
@@ -1647,12 +1647,6 @@ impl<'tcx> TypeTrace<'tcx> {
16471647
}
16481648
}
16491649

1650-
impl<'tcx> fmt::Debug for TypeTrace<'tcx> {
1651-
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
1652-
write!(f, "TypeTrace({:?})", self.cause)
1653-
}
1654-
}
1655-
16561650
impl<'tcx> SubregionOrigin<'tcx> {
16571651
pub fn span(&self) -> Span {
16581652
match *self {

0 commit comments

Comments
 (0)