We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 534f044 commit 6bc79c9Copy full SHA for 6bc79c9
src/librustc/infer/mod.rs
@@ -246,7 +246,7 @@ pub enum ValuePairs<'tcx> {
246
/// encounter an error or subtyping constraint.
247
///
248
/// See the `error_reporting` module for more details.
249
-#[derive(Clone)]
+#[derive(Clone, Debug)]
250
pub struct TypeTrace<'tcx> {
251
cause: ObligationCause<'tcx>,
252
values: ValuePairs<'tcx>,
@@ -1647,12 +1647,6 @@ impl<'tcx> TypeTrace<'tcx> {
1647
}
1648
1649
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
-
1656
impl<'tcx> SubregionOrigin<'tcx> {
1657
pub fn span(&self) -> Span {
1658
match *self {
0 commit comments