diff options
| author | bors <bors@rust-lang.org> | 2024-02-13 12:06:25 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-02-13 12:06:25 +0000 |
| commit | 3c4d642d8b7cb69cea3a863724408e8578c0200a (patch) | |
| tree | 289fd842b0994b4247f064bfec5b865015671c84 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | e944a273ee62c933cfba9b3bb85e6c124a85e37b (diff) | |
| parent | 2c761048d4eb0cae8cf125278b1678b5270ce24f (diff) | |
| download | rust-3c4d642d8b7cb69cea3a863724408e8578c0200a.tar.gz rust-3c4d642d8b7cb69cea3a863724408e8578c0200a.zip | |
Auto merge of #16117 - mustakimali:mo-order, r=Veykril
feat: completion list suggests constructor like & builder methods first When typing `MyType::` the completion items' order could be re-ordered based on how likely we want to select those: * Constructors: `new` like functions to be able to create the type, * Constructors that take args: Any other function that creates `Self`, * Builder Methods: any builder methods available, * Regular methods & associated functions (no change there)  In this photo, the order is: * `new` constructor is first * `new_builder` second is a builder method * `aaaanew` is a constructor that takes arguments, is third and is irrespective of its alphabetical order among names. --- Another Example using actix `HttpServer` shows preferring constructor without `self` arg first (the `new` method)   I've dropped my previous idea of highlighting these functions in the rustdoc (https://github.com/rust-lang/rust/pull/107926)
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
