-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Rust: Add missing .Reference in various models
#21147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -47,11 +47,11 @@ extensions: | |
| - ["<core::alloc::layout::Layout>::pad_to_align", "Argument[self].Reference", "ReturnValue", "taint", "manual"] | ||
| - ["<core::alloc::layout::Layout>::size", "Argument[self].Reference", "ReturnValue", "taint", "manual"] | ||
| # String | ||
| - ["<alloc::string::String>::as_str", "Argument[self]", "ReturnValue", "value", "manual"] | ||
| - ["<alloc::string::String>::as_bytes", "Argument[self]", "ReturnValue", "value", "manual"] | ||
| - ["<alloc::string::String>::as_str", "Argument[self].Reference", "ReturnValue.Reference", "taint", "manual"] | ||
| - ["<alloc::string::String>::as_bytes", "Argument[self].Reference", "ReturnValue.Reference.Element", "taint", "manual"] | ||
| - ["<_ as alloc::string::ToString>::to_string", "Argument[self].Reference", "ReturnValue", "taint", "manual"] | ||
| # Overwrite generated model | ||
| - ["<alloc::string::String as core::ops::arith::Add>::add", "Argument[self,0]", "ReturnValue", "taint", "manual"] | ||
| - ["<alloc::string::String as core::ops::arith::Add>::add", "Argument[self]", "ReturnValue", "taint", "manual"] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I thought there was some kind of edge case behind the overlapping Alternative possible explanation: the incorrect models were only required for compatibility with other incorrect models elsewhere, which you've already updated. |
||
| - ["<alloc::string::String as core::ops::arith::Add>::add", "Argument[0].Reference", "ReturnValue", "taint", "manual"] | ||
| # Vec | ||
| - ["alloc::vec::from_elem", "Argument[0]", "ReturnValue.Element", "value", "manual"] | ||
|
|
||
Check warning
Code scanning / CodeQL
Dead code Warning