minor: reduce visibility
This commit is contained in:
parent
0413d51317
commit
1b1e3de988
@ -13,7 +13,6 @@ use crate::{db::HirDatabase, InferenceResult, Interner, TyExt, TyKind};
|
|||||||
pub fn missing_unsafe(db: &dyn HirDatabase, def: DefWithBodyId) -> Vec<ExprId> {
|
pub fn missing_unsafe(db: &dyn HirDatabase, def: DefWithBodyId) -> Vec<ExprId> {
|
||||||
let infer = db.infer(def);
|
let infer = db.infer(def);
|
||||||
|
|
||||||
// let unsafe_expressions = ;
|
|
||||||
let is_unsafe = match def {
|
let is_unsafe = match def {
|
||||||
DefWithBodyId::FunctionId(it) => db.function_data(it).is_unsafe(),
|
DefWithBodyId::FunctionId(it) => db.function_data(it).is_unsafe(),
|
||||||
DefWithBodyId::StaticId(_) | DefWithBodyId::ConstId(_) => false,
|
DefWithBodyId::StaticId(_) | DefWithBodyId::ConstId(_) => false,
|
||||||
@ -29,12 +28,12 @@ pub fn missing_unsafe(db: &dyn HirDatabase, def: DefWithBodyId) -> Vec<ExprId> {
|
|||||||
.collect()
|
.collect()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) struct UnsafeExpr {
|
struct UnsafeExpr {
|
||||||
pub(crate) expr: ExprId,
|
pub(crate) expr: ExprId,
|
||||||
pub(crate) inside_unsafe_block: bool,
|
pub(crate) inside_unsafe_block: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn unsafe_expressions(
|
fn unsafe_expressions(
|
||||||
db: &dyn HirDatabase,
|
db: &dyn HirDatabase,
|
||||||
infer: &InferenceResult,
|
infer: &InferenceResult,
|
||||||
def: DefWithBodyId,
|
def: DefWithBodyId,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user