about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-09-02 11:33:44 +0000
committerbors <bors@rust-lang.org>2024-09-02 11:33:44 +0000
commit86c6382a5384acfeac5574ec2527137ad4d5f2e2 (patch)
tree9c0381a26e479fe561a5b571ee4ea249bd13c161 /compiler/rustc_llvm/llvm-wrapper/Linker.cpp
parent7a0fc465518f8d3f4ed3c8185c504605e5f52252 (diff)
parent92b8b5676682fe8cc50b4145a6bd25075454d283 (diff)
downloadrust-86c6382a5384acfeac5574ec2527137ad4d5f2e2.tar.gz
rust-86c6382a5384acfeac5574ec2527137ad4d5f2e2.zip
Auto merge of #18016 - IvarWithoutBones:wrap-return-ty-local-result, r=Veykril
fix: use Result type aliases in "Wrap return type in Result" assist

This commit makes the "Wrap return type in Result" assist prefer type aliases of standard library type when the are in scope, use at least one generic parameter, and have the name `Result`.

The last restriction was made in an attempt to avoid false assumptions about which type the user is referring to, but that might be overly strict. We could also do something like this, in order of priority:
* Use the alias named "Result".
* Use any alias if only a single one is in scope, otherwise:
* Use the standard library type.

This is easy to add if others feel differently that is appropriate, just let me know.

Fixes #17796
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions