Stream: git-cranelift

Topic: cranelift / PR #1389 wasm: Add support for passive data a...


view this post on Zulip GitHub (Feb 13 2020 at 08:01):

fitzgen requested eqrion for a review on PR #1389.

view this post on Zulip GitHub (Feb 13 2020 at 08:01):

fitzgen opened PR #1389 from passive-elems-and-passive-data to master:

<!-- Please ensure all communication adheres to the code of conduct. -->

view this post on Zulip GitHub (Feb 14 2020 at 18:54):

eqrion submitted PR Review.

view this post on Zulip GitHub (Feb 14 2020 at 18:54):

eqrion created PR Review Comment:

What's idiomatic rust for unused function arguments? In dummy.rs I see unused function arguments prefixed with _, and here we're adding a _ use inside of the function def. I'm fine with either, but would prefer it to be consistent.

view this post on Zulip GitHub (Feb 14 2020 at 18:58):

eqrion submitted PR Review.

view this post on Zulip GitHub (Feb 14 2020 at 19:04):

bjorn3 submitted PR Review.

view this post on Zulip GitHub (Feb 14 2020 at 19:04):

bjorn3 created PR Review Comment:

Prefixing the argument with _ is the most common. (I haven't every seen it this way :) )

view this post on Zulip GitHub (Feb 15 2020 at 22:52):

fitzgen submitted PR Review.

view this post on Zulip GitHub (Feb 15 2020 at 22:52):

fitzgen created PR Review Comment:

It is true that one would usually use _prefix, but because it is in a trait method's default implementation, that underscore would become part of the variable names in the auto-generated rustdocs. The separate underscore is to avoid underscore-prefixed variable names in the rustdocs.

view this post on Zulip GitHub (Feb 15 2020 at 22:53):

fitzgen merged PR #1389.


Last updated: Nov 22 2024 at 17:03 UTC