diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-05-16 07:19:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-16 07:19:41 +0200 |
| commit | e53b9f8fdd7be3357063cc82abe9a12f9014c13f (patch) | |
| tree | bdbd8bf36002dce59088cb2ee0134c2de9186048 /compiler/rustc_codegen_cranelift/example/example.rs | |
| parent | 953905fd9e567679e868c50a734debc872815f81 (diff) | |
| parent | 1267333ef102d854cf0cefef877ba0d9adb07107 (diff) | |
| download | rust-e53b9f8fdd7be3357063cc82abe9a12f9014c13f.tar.gz rust-e53b9f8fdd7be3357063cc82abe9a12f9014c13f.zip | |
Rollup merge of #141003 - clubby789:ternary-improve, r=compiler-errors
Improve ternary operator recovery This - Improves the span of the error to not point at the next token - Where possible, we use the span of the condition to further improve the span of the error to include the cond, and suggest a maybe-incorrect fix Currently this works on free expressions, not let statements; some more refactoring would be needed to pass the span down, which I'm not sure is worth doing. ### Old  ### New 
Diffstat (limited to 'compiler/rustc_codegen_cranelift/example/example.rs')
0 files changed, 0 insertions, 0 deletions
