Skip to content

Commit 1b1e3de

Browse files
committed
minor: reduce visibility
1 parent 0413d51 commit 1b1e3de

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

crates/hir_ty/src/diagnostics/unsafe_check.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ use crate::{db::HirDatabase, InferenceResult, Interner, TyExt, TyKind};
1313
pub fn missing_unsafe(db: &dyn HirDatabase, def: DefWithBodyId) -> Vec<ExprId> {
1414
let infer = db.infer(def);
1515

16-
// let unsafe_expressions = ;
1716
let is_unsafe = match def {
1817
DefWithBodyId::FunctionId(it) => db.function_data(it).is_unsafe(),
1918
DefWithBodyId::StaticId(_) | DefWithBodyId::ConstId(_) => false,
@@ -29,12 +28,12 @@ pub fn missing_unsafe(db: &dyn HirDatabase, def: DefWithBodyId) -> Vec<ExprId> {
2928
.collect()
3029
}
3130

32-
pub(crate) struct UnsafeExpr {
31+
struct UnsafeExpr {
3332
pub(crate) expr: ExprId,
3433
pub(crate) inside_unsafe_block: bool,
3534
}
3635

37-
pub(crate) fn unsafe_expressions(
36+
fn unsafe_expressions(
3837
db: &dyn HirDatabase,
3938
infer: &InferenceResult,
4039
def: DefWithBodyId,

0 commit comments

Comments
 (0)