mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-23 02:27:39 +03:00
4cce8bcdc8
rename unexpected_try_recover function While reading the code, the doc comment and the name of the function `unexpected_try_recover` confused me. The doc said it tries to recover if it is a closing delimiter but I see no recovering code and the function always return an error. So I change the name of the function to `unexpected_err` and change the return value to `Diag<'a>`. I also update the doc comment.