about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/errors.rs
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2025-03-27 13:11:20 -0400
committerGitHub <noreply@github.com>2025-03-27 13:11:20 -0400
commitd517a4f0ae6db710670a1651db80678b003fb840 (patch)
treebff5c11f5d964d3a556bbdb9e649407d0745db64 /compiler/rustc_pattern_analysis/src/errors.rs
parented752193ccb5cf19ee92f6b81dde08f989c34a7f (diff)
parent4648650d899ba01a6ed30e7ada3795b5c56465eb (diff)
downloadrust-d517a4f0ae6db710670a1651db80678b003fb840.tar.gz
rust-d517a4f0ae6db710670a1651db80678b003fb840.zip
Rollup merge of #139014 - xizheyin:issue-138931, r=oli-obk
Improve suggest construct with literal syntax instead of calling

Closing #138931

When constructing a structure through a format similar to calling a constructor, we can use verbose suggestions to hint at using literal syntax for clearer advice. The case of multiple fields is also considered here, provided that the field has the same number of arguments as CallExpr.

r? compiler
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/errors.rs')
0 files changed, 0 insertions, 0 deletions