Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
2b3bceb
Add `{ast,hir,thir}::PatKind::Missing` variants.
nnethercote Mar 26, 2025
ce70a79
Impl `Copy` for `Token` and `TokenKind`.
nnethercote May 15, 2024
409c7b8
Tighten up assignment operator representations.
nnethercote Dec 19, 2024
2ab6be8
Rollup merge of #139035 - nnethercote:PatKind-Missing, r=oli-obk
Zalathar Apr 7, 2025
e80a221
Auto merge of #124141 - nnethercote:rm-Nonterminal-and-TokenKind-Inte…
bors Apr 14, 2025
1abbb92
Remove `token::{Open,Close}Delim`.
nnethercote Apr 16, 2025
31d40e5
Add or-patterns to pattern types
oli-obk Feb 27, 2025
ce64001
Also allow bool literals as first item of let chain
calebcartwright Apr 29, 2025
266da42
Do not remove super keyword from super-let
compiler-errors May 12, 2025
6210ac1
attempt to have rustfmt use the new logic
folkertdev Apr 29, 2025
2f3a0a5
rename to get rid of the 'raw' concept
folkertdev May 17, 2025
79a9897
Reduce `P<T>` to a typedef of `Box<T>`.
nnethercote May 26, 2025
4718757
move asm parsing code into `rustc_parse`
folkertdev May 5, 2025
2d7453d
Reorder `ast::ItemKind::{Struct,Enum,Union}` fields.
nnethercote May 27, 2025
99adefc
Rollup merge of #141675 - nnethercote:ItemKind-field-order, r=fee1-dead
jhpratt May 29, 2025
5098c6c
Rollup merge of #141603 - nnethercote:reduce-P, r=fee1-dead
GuillaumeGomez Jun 6, 2025
d37c63f
Implement pinned borrows, part of `pin_ergonomics`
frank-king Jan 19, 2025
928d1dc
Extract Translator struct
camsteffen Jun 19, 2025
e9d0738
Rename SilentEmitter -> FatalOnlyEmitter
camsteffen Jun 17, 2025
ced2bb0
Extract SilentEmitter
camsteffen Jun 19, 2025
f81941c
Remove an unnecessary check in rustfmt.
nnethercote May 27, 2025
8cf8b25
Auto merge of #142794 - tgross35:rollup-iae7okj, r=tgross35
bors Jun 20, 2025
fd6ceeb
Rollup merge of #135731 - frank-king:feature/pin-borrow, r=eholk,trav…
workingjubilee Jun 25, 2025
9debb8f
Change const trait bound syntax from ~const to [const]
oli-obk Mar 11, 2025
a69cccb
Rollup merge of #139858 - oli-obk:new-const-traits-syntax, r=fee1-dead
matthiaskrgr Jun 27, 2025
a22fa5b
Remove let_chains feature
camsteffen Jun 29, 2025
a5c21f9
Remove support for dyn*
compiler-errors Jun 26, 2025
55252ea
Merge from rustc
Jul 2, 2025
48e17a2
Auto merge of #143214 - camsteffen:remove-let-chains-feature, r=est31
bors Jul 2, 2025
97b6e88
Replace kw_span by full span.
cjgillot Jul 2, 2024
9e99aae
Merge from rustc
RalfJung Jul 3, 2025
c5916cf
rustfmt: migrate BareFn -> FnPtr
workingjubilee Jul 6, 2025
a1cfe86
parse `const trait Trait`
fee1-dead Jul 13, 2025
340e590
Print thread ID in panic message if thread name is unknown
tgross35 Sep 11, 2023
4501819
remove `P`
fee1-dead Aug 9, 2025
c9ee26f
Extract ast TraitImplHeader
camsteffen Jul 22, 2025
b63507d
Prevent impossible combinations in `ast::ModKind`.
nnethercote Aug 19, 2025
366a08f
test(rustfmt): Verify frontmatter is preserved
epage Aug 8, 2025
671c0c9
Remove `dirs-sys-0.4.1` dependency.
nnethercote Aug 21, 2025
91124ee
Rollup merge of #145729 - nnethercote:dup-packages, r=calebcartwright
samueltardieu Aug 23, 2025
2890913
add span to struct pattern rest (..)
Erk- Aug 23, 2025
2281382
Rollup merge of #145766 - epage:rustfmt, r=calebcartwright
Zalathar Aug 26, 2025
086aa84
fix a constness ordering bug in rustfmt
npmccallum Sep 1, 2025
7ef4409
Rollup merge of #145783 - Erk-:et-cetera-span, r=compiler-errors
GuillaumeGomez Sep 2, 2025
0911650
Rollup merge of #146089 - npmccallum:rustfmt, r=fmease
GuillaumeGomez Sep 2, 2025
288b931
Strip frontmatter in fewer places
fmease Sep 8, 2025
f300380
resolve: Do not finalize shadowed bindings
petrochenkov Aug 1, 2025
672dec9
Merge remote-tracking branch 'upstream/master' into rustup
jieyouxu Oct 8, 2025
08586bb
chore: bump rustfmt toolchain to nightly-2025-10-07
jieyouxu Oct 8, 2025
af9a7c8
fix: non-trivial merge conflicts and broken test headers
jieyouxu Oct 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 81 additions & 19 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ cargo_metadata = "0.18"
clap = { version = "4.4.2", features = ["derive"] }
clap-cargo = "0.12.0"
diff = "0.1"
dirs = "5.0"
dirs = "6.0"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remark: re. Cargo.lock changes... Ah this is why, we bumped dirs on the r-l/r side...

getopts = "0.2"
ignore = "0.4"
itertools = "0.12"
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2025-04-02"
channel = "nightly-2025-10-07"
components = ["llvm-tools", "rustc-dev"]
6 changes: 3 additions & 3 deletions src/chains.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
use std::borrow::Cow;
use std::cmp::min;

use rustc_ast::{ast, ptr};
use rustc_ast::ast;
use rustc_span::{BytePos, Span, symbol};
use tracing::debug;

Expand Down Expand Up @@ -190,7 +190,7 @@ enum ChainItemKind {
MethodCall(
ast::PathSegment,
Vec<ast::GenericArg>,
ThinVec<ptr::P<ast::Expr>>,
ThinVec<Box<ast::Expr>>,
),
StructField(symbol::Ident),
TupleField(symbol::Ident, bool),
Expand Down Expand Up @@ -351,7 +351,7 @@ impl ChainItem {
fn rewrite_method_call(
method_name: symbol::Ident,
types: &[ast::GenericArg],
args: &[ptr::P<ast::Expr>],
args: &[Box<ast::Expr>],
span: Span,
context: &RewriteContext<'_>,
shape: Shape,
Expand Down
4 changes: 2 additions & 2 deletions src/closures.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use rustc_ast::{Label, ast, ptr};
use rustc_ast::{Label, ast};
use rustc_span::Span;
use thin_vec::thin_vec;
use tracing::debug;
Expand Down Expand Up @@ -169,7 +169,7 @@ fn rewrite_closure_with_block(
let block = ast::Block {
stmts: thin_vec![ast::Stmt {
id: ast::NodeId::root(),
kind: ast::StmtKind::Expr(ptr::P(body.clone())),
kind: ast::StmtKind::Expr(Box::new(body.clone())),
span: body.span,
}],
id: ast::NodeId::root(),
Expand Down
1 change: 0 additions & 1 deletion src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,6 @@ mod test {
#[allow(dead_code)]
mod mock {
use super::super::*;
use crate::config_option_with_style_edition_default;
use rustfmt_config_proc_macro::config_type;

#[config_type]
Expand Down
10 changes: 6 additions & 4 deletions src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::cmp::min;

use itertools::Itertools;
use rustc_ast::token::{Delimiter, Lit, LitKind};
use rustc_ast::{ForLoopKind, MatchKind, ast, ptr, token};
use rustc_ast::{ForLoopKind, MatchKind, ast, token};
use rustc_span::{BytePos, Span};
use tracing::debug;

Expand Down Expand Up @@ -1461,7 +1461,7 @@ fn choose_separator_tactic(context: &RewriteContext<'_>, span: Span) -> Option<S
pub(crate) fn rewrite_call(
context: &RewriteContext<'_>,
callee: &str,
args: &[ptr::P<ast::Expr>],
args: &[Box<ast::Expr>],
span: Span,
shape: Shape,
) -> RewriteResult {
Expand Down Expand Up @@ -1724,7 +1724,7 @@ fn struct_lit_can_be_aligned(fields: &[ast::ExprField], has_base: bool) -> bool
fn rewrite_struct_lit<'a>(
context: &RewriteContext<'_>,
path: &ast::Path,
qself: &Option<ptr::P<ast::QSelf>>,
qself: &Option<Box<ast::QSelf>>,
fields: &'a [ast::ExprField],
struct_rest: &ast::StructRest,
attrs: &[ast::Attribute],
Expand Down Expand Up @@ -2127,7 +2127,7 @@ fn rewrite_assignment(
context: &RewriteContext<'_>,
lhs: &ast::Expr,
rhs: &ast::Expr,
op: Option<&ast::BinOp>,
op: Option<&ast::AssignOp>,
shape: Shape,
) -> RewriteResult {
let operator_str = match op {
Expand Down Expand Up @@ -2357,8 +2357,10 @@ fn rewrite_expr_addrof(
) -> RewriteResult {
let operator_str = match (mutability, borrow_kind) {
(ast::Mutability::Not, ast::BorrowKind::Ref) => "&",
(ast::Mutability::Not, ast::BorrowKind::Pin) => "&pin const ",
(ast::Mutability::Not, ast::BorrowKind::Raw) => "&raw const ",
(ast::Mutability::Mut, ast::BorrowKind::Ref) => "&mut ",
(ast::Mutability::Mut, ast::BorrowKind::Pin) => "&pin mut ",
(ast::Mutability::Mut, ast::BorrowKind::Raw) => "&raw mut ",
};
rewrite_unary_prefix(context, operator_str, expr, shape)
Expand Down
2 changes: 1 addition & 1 deletion src/imports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ impl UseSegment {
modsep: bool,
) -> Option<UseSegment> {
let name = rewrite_ident(context, path_seg.ident);
if name.is_empty() || name == "{{root}}" {
if name.is_empty() {
return None;
}
let kind = match name {
Expand Down
Loading
Loading