// The `krate` here is only used for mapping BodyIds to Bodies.
// Don't use it for anything else or you'll run the risk of
// leaking data out of the tracking system.
The `krate` here is only used for mapping BodyIds to Bodies.
Don't use it for anything else or you'll run the risk of
leaking data out of the tracking system.
The ` krate ` here is only used for mapping BodyIds to Bodies . Don ' t use it for anything else or you ' ll run the risk of leaking data out of the tracking system .
pub fn new(sess: &'a Session,
               krate: &'a hir::Crate,
               definitions: &'a Definitions,
               cstore: &'a dyn CrateStore)
               -> Self {
        let hash_spans_initial = !sess.opts.debugging_opts.incremental_ignore_spans;
        StableHashingContext {
            sess,
            body_resolver: BodyResolver(krate),
            definitions,
            cstore,
            caching_source_map: None,
            raw_source_map: sess.source_map(),
            hash_spans: hash_spans_initial,
            hash_bodies: true,
            node_id_hashing_mode: NodeIdHashingMode::HashDefPath,
            alloc_id_recursion_tracker: Default::default(),
        }
    }
pub fn new ( sess : & ' a Session , krate : & ' a hir :: Crate , definitions : & ' a Definitions , cstore : & ' a dyn CrateStore ) -> Self { let hash_spans_initial = ! sess . opts . debugging_opts . incremental_ignore_spans ; StableHashingContext { sess , body_resolver : BodyResolver ( krate ) , definitions , cstore , caching_source_map : None , raw_source_map : sess . source_map ( ) , hash_spans : hash_spans_initial , hash_bodies : true , node_id_hashing_mode : NodeIdHashingMode :: HashDefPath , alloc_id_recursion_tracker : Default :: default ( ) , } }
The `krate` here is only used for mapping BodyIds to Bodies.
The ` krate ` here is only used for mapping BodyIds to Bodies .
sess
&'a Session
krate
&'a hir::Crate
definitions
&'a Definitions
cstore
&'a dyn CrateStore