| commit | 180e7ce7003028e9960427c0256623e89c9f1ffd | [log] [tgz] |
|---|---|---|
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | Mon Aug 11 16:19:04 2025 +0200 |
| committer | GitHub <noreply@github.com> | Mon Aug 11 16:19:04 2025 +0200 |
| tree | 54ec4fff5e7fe0fba2393a8d2113710b2996405d | |
| parent | 577166503aee7290e09374da21f4045c455acfd5 [diff] | |
| parent | 1e271d6ed13756db08160daaa327b99b7fe6099e [diff] |
Rollup merge of #144966 - scrabsha:push-rozroqqmurvu, r=jdonszelmann Improve suggestion for "missing function argument" on multiline call `rustc` has a very neat suggestion when the argument count does not match, with a nice placeholder that shows where an argument may be missing. Unfortunately the suggestion is always single-line, even when the function call spans across multiple lines. With this PR, `rustc` tries to guess if the function call is multiline or not, and emits a multiline suggestion when required. r? `@jdonszelmann`
Website | Getting started | Learn | Documentation | Contributing
This is the main source code repository for Rust. It contains the compiler, standard library, and documentation.
Performance: Fast and memory-efficient, suitable for critical services, embedded devices, and easily integrated with other languages.
Reliability: Our rich type system and ownership model ensure memory and thread safety, reducing bugs at compile-time.
Productivity: Comprehensive documentation, a compiler committed to providing great diagnostics, and advanced tooling including package manager and build tool (Cargo), auto-formatter (rustfmt), linter (Clippy) and editor support (rust-analyzer).
Read “Installation” from The Book.
If you really want to install from source (though this is not recommended), see INSTALL.md.
See https://www.rust-lang.org/community for a list of chat platforms and forums.
See CONTRIBUTING.md.
Rust is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0), with portions covered by various BSD-like licenses.
See LICENSE-APACHE, LICENSE-MIT, and COPYRIGHT for details.
The Rust Foundation owns and protects the Rust and Cargo trademarks and logos (the “Rust Trademarks”).
If you want to use these names or brands, please read the Rust language trademark policy.
Third-party logos may be subject to third-party copyrights and trademarks. See Licenses for details.