mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 15:33:25 +03:00
Add coverage mark for block local impls
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
//! about the code that Chalk needs.
|
||||
use std::sync::Arc;
|
||||
|
||||
use cov_mark::hit;
|
||||
use log::debug;
|
||||
|
||||
use chalk_ir::{cast::Cast, fold::shift::Shift, CanonicalVarKinds};
|
||||
@@ -106,7 +107,9 @@ fn binder_kind(
|
||||
};
|
||||
|
||||
fn local_impls(db: &dyn HirDatabase, module: ModuleId) -> Option<Arc<TraitImpls>> {
|
||||
db.trait_impls_in_block(module.containing_block()?)
|
||||
let block = module.containing_block()?;
|
||||
hit!(block_local_impls);
|
||||
db.trait_impls_in_block(block)
|
||||
}
|
||||
|
||||
// Note: Since we're using impls_for_trait, only impls where the trait
|
||||
|
||||
Reference in New Issue
Block a user