Skip to content

Commit 9bafe9f

Browse files
committed
chore: fix a few spans without .entered()
1 parent d07f024 commit 9bafe9f

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

crates/hir-ty/src/diagnostics/unsafe_check.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use crate::{
1313
};
1414

1515
pub fn missing_unsafe(db: &dyn HirDatabase, def: DefWithBodyId) -> Vec<ExprId> {
16-
let _p = tracing::span!(tracing::Level::INFO, "missing_unsafe",);
16+
let _p = tracing::span!(tracing::Level::INFO, "missing_unsafe").entered();
1717

1818
let mut res = Vec::new();
1919
let is_unsafe = match def {

crates/hir/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,8 @@ impl Module {
548548
acc: &mut Vec<AnyDiagnostic>,
549549
style_lints: bool,
550550
) {
551-
let _p = tracing::span!(tracing::Level::INFO, "Module::diagnostics", name = ?self.name(db));
551+
let _p = tracing::span!(tracing::Level::INFO, "Module::diagnostics", name = ?self.name(db))
552+
.entered();
552553
let def_map = self.id.def_map(db.upcast());
553554
for diag in def_map.diagnostics() {
554555
if diag.in_module != self.id.local_id {

0 commit comments

Comments
 (0)