-
Notifications
You must be signed in to change notification settings - Fork 189
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
Remove erroneous reference to the base Symbol
when mapping Rust types
#1439
Remove erroneous reference to the base Symbol
when mapping Rust types
#1439
Conversation
`.addReference(this)` adds a reference to the `Symbol` on which `.mapRustType` was called. This is correct only when `f` is a function that _wraps_ its input `RustType`; for example, when `f` wraps it in a `Box` or constructs a `Vec`. However, the code is incorrect for an arbitrary `f`; for example, when `f` _swaps_ the type.
A new generated diff is ready to view.
A new doc preview is ready to view. Rust Wrk benchmark report:Duration: 90 sec, Connections: 32, Threads: 2
|
do you think this should just use |
That would also be incorrect for an arbitrary It's very unlikely that eliminating |
…se-_symbol_-when-mapping-rust-types
A new generated diff is ready to view.
A new doc preview is ready to view. |
…se-_symbol_-when-mapping-rust-types
A new generated diff is ready to view.
A new doc preview is ready to view. |
.addReference(this)
adds a reference to theSymbol
on which.mapRustType
was called. This is correct only whenf
is a functionthat wraps its input
RustType
; for example, whenf
wraps it in aBox
or constructs aVec
. However, the code is incorrect for anarbitrary
f
; for example, whenf
swaps the type.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.