Added cov mark

This commit is contained in:
ivan770 2021-05-17 11:37:24 +02:00
parent a79b54ef73
commit 999217374f
No known key found for this signature in database
GPG Key ID: D8C4BD5AE4D9CC4D
2 changed files with 3 additions and 1 deletions

View File

@ -482,6 +482,7 @@ impl DefCollector<'_> {
if let Some(ModuleDefId::ModuleId(m)) = res.take_types() {
if m == self.def_map.module_id(current_module_id) {
cov_mark::hit!(ignore_macro_use_extern_crate_self);
return;
}

View File

@ -411,7 +411,8 @@ struct Arc;
}
#[test]
fn extern_crate_self() {
fn macro_use_extern_crate_self() {
cov_mark::check!(ignore_macro_use_extern_crate_self);
check(
r#"
//- /main.rs crate:main