about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/json.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-04-19 09:15:20 +0000
committerbors <bors@rust-lang.org>2024-04-19 09:15:20 +0000
commit77ce2950065e83e25479a429280b0c0eea805b12 (patch)
tree4619db3c1f0282093e84b3394d908533e032c76c /compiler/rustc_errors/src/json.rs
parenteea61bd4d134c110d799a3653413c6b65b5c26e3 (diff)
parent1aba0002df5af8af7ac955a84535f76309707f14 (diff)
downloadrust-77ce2950065e83e25479a429280b0c0eea805b12.tar.gz
rust-77ce2950065e83e25479a429280b0c0eea805b12.zip
Auto merge of #17094 - Lindronics:convert-from-to-tryfrom, r=Veykril
feat: Add convert From to TryFrom assist

Adds a new code assist to convert a `From` impl into a `TryFrom` impl.

This is useful in situations where it turns out after or halfway through writing a `From` implementation that the conversion is actually fallible.

## Example

https://github.com/rust-lang/rust-analyzer/assets/26360861/872ec7c4-c9ff-451c-9453-4baaaad47326
Diffstat (limited to 'compiler/rustc_errors/src/json.rs')
0 files changed, 0 insertions, 0 deletions