Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
51b51b51d7931da85280382a81c4dd80c73ca754
rust/tests/ui/parser/issues/issue-60075.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
155 B
Rust
Raw Normal View History

Fix fn front matter parsing ICE from invalid code. This commit fixes an "unreachable code" ICE that results from parsing invalid code where the compiler is expecting the next trait item declaration in the middle of the previous trait item due to extra closing braces.
2019-04-20 11:31:38 +01:00
fn main() {}
trait T {
fn qux() -> Option<usize> {
let _ = if true {
Exit when there are unmatched delims to avoid noisy diagnostics
2023-02-28 07:55:19 +00:00
}); //~ ERROR mismatched closing delimiter
Fix fn front matter parsing ICE from invalid code. This commit fixes an "unreachable code" ICE that results from parsing invalid code where the compiler is expecting the next trait item declaration in the middle of the previous trait item due to extra closing braces.
2019-04-20 11:31:38 +01:00
Some(4)
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 3894ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API