mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-04 23:15:28 +00:00
Use source callsite in check_argument_types suggestion This makes the "remove extra arguement" suggestion valid when the function argument is a macro. Additionally, this may fix #96225, but the only way I can reproduce that issue is using the playground, so we will need to wait until after this is merged to ensure it's fixed.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.