Stream: t-lang

Topic: Call expression semantic clarification


Charles Lew (Jan 12 2020 at 12:42, on Zulip):

Hello, in https://doc.rust-lang.org/nightly/reference/expressions/call-expr.html there is this description:

Charles Lew (Jan 12 2020 at 12:42, on Zulip):

(for f(...)) An automatic borrow will be taken if needed. Rust will also automatically dereference f as required.

Charles Lew (Jan 12 2020 at 12:43, on Zulip):

this brings up the question of priority of automatic borrowing and automatic dereference.

Charles Lew (Jan 12 2020 at 12:45, on Zulip):

I wonder if this has been decided before? @centril

Charles Lew (Jan 12 2020 at 12:46, on Zulip):

There is a bug that is related: https://github.com/rust-lang/rust/issues/42736 but i guess it's more important to understand what's desired here and update the reference accordingly first.

Last update: Jan 28 2020 at 01:55UTC