1
Fork 0

Rollup merge of #94011 - est31:let_else, r=lcnr

Even more let_else adoptions

Continuation of #89933, #91018, #91481, #93046, #93590.
This commit is contained in:
Matthias Krüger 2022-02-17 23:00:59 +01:00 committed by GitHub
commit 637d8b89e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 50 additions and 104 deletions

View file

@ -158,9 +158,7 @@ impl<'a> StringReader<'a> {
Some(match token {
rustc_lexer::TokenKind::LineComment { doc_style } => {
// Skip non-doc comments
let doc_style = if let Some(doc_style) = doc_style {
doc_style
} else {
let Some(doc_style) = doc_style else {
self.lint_unicode_text_flow(start);
return None;
};
@ -185,9 +183,7 @@ impl<'a> StringReader<'a> {
}
// Skip non-doc comments
let doc_style = if let Some(doc_style) = doc_style {
doc_style
} else {
let Some(doc_style) = doc_style else {
self.lint_unicode_text_flow(start);
return None;
};

View file

@ -4,6 +4,7 @@
#![feature(crate_visibility_modifier)]
#![feature(if_let_guard)]
#![feature(box_patterns)]
#![feature(let_else)]
#![recursion_limit = "256"]
#[macro_use]