Upgrade to Rust 1.86 and bump MSRV to 1.84 (#17171)

<!--
Thank you for contributing to Ruff! To help us out with reviewing,
please consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?
-->

## Summary

I decided to disable the new
[`needless_continue`](https://rust-lang.github.io/rust-clippy/master/index.html#needless_continue)
rule because I often found the explicit `continue` more readable over an
empty block or having to invert the condition of an other branch.


## Test Plan

`cargo test`

---------

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Micha Reiser 2025-04-03 17:59:44 +02:00 committed by GitHub
parent fedd982fd5
commit 8a4158c5f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
135 changed files with 285 additions and 255 deletions

View file

@ -891,7 +891,7 @@ impl<'src> Parser<'src> {
elt.range(),
);
}
};
}
ast::ExprSubscript {
value: Box::new(value),
@ -1462,7 +1462,7 @@ impl<'src> Parser<'src> {
UnsupportedSyntaxErrorKind::Pep701FString(FStringKind::NestedQuote),
TextRange::at(expr.range.start() + quote_position, quote_len),
);
};
}
}
self.check_fstring_comments(range);
@ -2114,7 +2114,7 @@ impl<'src> Parser<'src> {
self.expect(TokenKind::For);
} else {
self.bump(TokenKind::For);
};
}
let mut target =
self.parse_expression_list(ExpressionContext::starred_conditional().with_in_excluded());

View file

@ -1,5 +1,5 @@
use compact_str::CompactString;
use std::fmt::Display;
use std::fmt::{Display, Write};
use rustc_hash::{FxBuildHasher, FxHashSet};
@ -1028,7 +1028,7 @@ impl<'src> Parser<'src> {
..
}) = &**slice
{
buffer.push_str(&format!("{integer}"));
let _ = write!(buffer, "{integer}");
} else {
parser.add_error(
ParseErrorType::OtherError(