about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/std_example.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-03-23 16:53:47 +0000
committerbors <bors@rust-lang.org>2022-03-23 16:53:47 +0000
commit547369d3d881a9eb1de0d3e368f9a59aa7c648b0 (patch)
tree5b9982f526330a2bd9fa6d513db1f1f568f76773 /compiler/rustc_codegen_gcc/example/std_example.rs
parent92804455704cc59d6d8272faf72f442c6125d395 (diff)
parent3729b17b7e960a95d0887dc0fff28b25a1393385 (diff)
downloadrust-547369d3d881a9eb1de0d3e368f9a59aa7c648b0.tar.gz
rust-547369d3d881a9eb1de0d3e368f9a59aa7c648b0.zip
Auto merge of #95220 - rust-lang:notriddle/ast-validation-semicolon, r=Dylan-DPC
diagnostics: do not suggest `fn foo({ <body> }`

Instead of suggesting that the body always replace the last character on the line, presuming it must be a semicolon, the parser should instead check what the last character is, and append the body if it is anything else.

Fixes #83104
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions