diff options
Diffstat (limited to 'compiler/rustc_mir_dataflow/src/framework/fmt.rs')
| -rw-r--r-- | compiler/rustc_mir_dataflow/src/framework/fmt.rs | 15 | 
1 files changed, 14 insertions, 1 deletions
| diff --git a/compiler/rustc_mir_dataflow/src/framework/fmt.rs b/compiler/rustc_mir_dataflow/src/framework/fmt.rs index 1d1553bbbd9..99735673f4d 100644 --- a/compiler/rustc_mir_dataflow/src/framework/fmt.rs +++ b/compiler/rustc_mir_dataflow/src/framework/fmt.rs @@ -1,7 +1,7 @@ //! Custom formatting traits used when outputting Graphviz diagrams with the results of a dataflow //! analysis. -use rustc_index::bit_set::{BitSet, HybridBitSet}; +use rustc_index::bit_set::{BitSet, ChunkedBitSet, HybridBitSet}; use rustc_index::vec::Idx; use std::fmt; @@ -133,6 +133,19 @@ where } } +impl<T, C> DebugWithContext<C> for ChunkedBitSet<T> +where + T: Idx + DebugWithContext<C>, +{ + fn fmt_with(&self, _ctxt: &C, _f: &mut fmt::Formatter<'_>) -> fmt::Result { + unimplemented!("implement when/if needed"); + } + + fn fmt_diff_with(&self, _old: &Self, _ctxt: &C, _f: &mut fmt::Formatter<'_>) -> fmt::Result { + unimplemented!("implement when/if needed"); + } +} + impl<T, C> DebugWithContext<C> for &'_ T where T: DebugWithContext<C>, | 
