about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/errors.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-10-06 11:43:07 +0000
committerbors <bors@rust-lang.org>2024-10-06 11:43:07 +0000
commit96d9d8aa7de9396fe22702ff6df33816ae4d01b6 (patch)
tree3e6361197c5c3ad473e23a54991a6da0afdd2160 /compiler/rustc_parse/src/errors.rs
parent68301a6a968326bac8b85b04d5ef7e79cc042a00 (diff)
parentdd09e9c74240fe7537cd55ddffb19b8162756a91 (diff)
downloadrust-96d9d8aa7de9396fe22702ff6df33816ae4d01b6.tar.gz
rust-96d9d8aa7de9396fe22702ff6df33816ae4d01b6.zip
Auto merge of #131320 - matthiaskrgr:rollup-tom15b3, r=matthiaskrgr
Rollup of 5 pull requests

Successful merges:

 - #129392 (Do not consider match/let/ref of place that evaluates to `!` to diverge, disallow coercions from them too)
 - #131279 (update "build/host" symlink comment)
 - #131312 (On function and method calls in patterns, link to the book)
 - #131315 (bootstrap: add `std_features` config)
 - #131316 (Fix typo in primitive_docs.rs)

r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
-rw-r--r--compiler/rustc_parse/src/errors.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_parse/src/errors.rs b/compiler/rustc_parse/src/errors.rs
index 40502158469..dade3912751 100644
--- a/compiler/rustc_parse/src/errors.rs
+++ b/compiler/rustc_parse/src/errors.rs
@@ -2608,6 +2608,7 @@ pub(crate) struct ExpectedCommaAfterPatternField {
 
 #[derive(Diagnostic)]
 #[diag(parse_unexpected_expr_in_pat)]
+#[note]
 pub(crate) struct UnexpectedExpressionInPattern {
     /// The unexpected expr's span.
     #[primary_span]