Skip to main content

Module dedup_hash

Module dedup_hash 

Source

Re-exportsΒ§

use std::hash::Hash; πŸ”’
use std::hash::Hash; πŸ”’
use rustc_data_structures::stable_hash::StableHasher; πŸ”’
use rustc_serialize::Encoder; πŸ”’
use rustc_span::def_id::CrateNum; πŸ”’
use rustc_span::def_id::DefId; πŸ”’
use rustc_span::def_id::DefIndex; πŸ”’
use rustc_span::ByteSymbol; πŸ”’
use rustc_span::ExpnId; πŸ”’
use rustc_span::Span; πŸ”’
use rustc_span::SpanEncoder; πŸ”’
use rustc_span::Symbol; πŸ”’
use rustc_span::SyntaxContext; πŸ”’

MacrosΒ§

encoder_methods πŸ”’

StructsΒ§

DedupHashEncoder πŸ”’
Hasher used to determine if two diagnostics are the same and should be deduplicated. Used by DiagCtxtInner::emitted_diagnostics. It’s a stable hash with one special behaviour: parents of spans within the diagnostics are ignored so that incremental and non-incremental compilation get the same behaviour.