pub fn check_unsafe_propagation(
function: &Function,
safety_context: &SafetyContext,
known_safe_functions: &HashSet<String>,
) -> Vec<String>Expand description
Check for unsafe propagation in safe functions
In safe code, the following require explicit @unsafe annotation:
- Calling functions not marked as @safe
- Using types/structs not marked as @safe
- Any operation on unsafe types