Skip to content

Commit cd957ba

Browse files
committed
Rust: Add models for functions used inside format! macro
1 parent 0d19fb6 commit cd957ba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rust/ql/lib/codeql/rust/frameworks/stdlib/lang-core.model.yml

+4
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ extensions:
1313
- ["lang:core", "<crate::result::Result>::unwrap_or", "Argument[0]", "ReturnValue", "value", "manual"]
1414
# String
1515
- ["lang:alloc", "<crate::string::String>::as_str", "Argument[self]", "ReturnValue", "taint", "manual"]
16+
# Hint
17+
- ["lang:core", "crate::hint::must_use", "Argument[0]", "ReturnValue", "value", "manual"]
18+
# Fmt
19+
- ["lang:alloc", "crate::fmt::format", "Argument[0]", "ReturnValue", "taint", "manual"]

0 commit comments

Comments
 (0)