Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
ae760e6
Address unused tuple struct fields in rustfmt
shepmaster Nov 29, 2023
4a1b418
Rename `unused_tuple_struct_fields` in rustfmt
shepmaster Nov 30, 2023
840824f
Rename `EmitterWriter` as `HumanEmitter`.
nnethercote Jan 4, 2024
250d7e7
Rollup merge of #119601 - nnethercote:Emitter-cleanups, r=oli-obk
compiler-errors Jan 5, 2024
141b31a
Make `DiagnosticBuilder::emit` consuming.
nnethercote Jan 3, 2024
192c4a0
Change how `force-warn` lint diagnostics are recorded.
nnethercote Jan 9, 2024
381ef81
Stop using `DiagnosticBuilder::buffer` in the parser.
nnethercote Jan 11, 2024
6078b96
Delegation implementation: step 1
Bryanskiy Nov 26, 2023
255d2cf
Add `PatKind::Err`
ShE3py Jan 17, 2024
b92320c
Check that a token can begin a nonterminal kind before parsing it as …
compiler-errors Jan 22, 2024
f8847ff
Do not eagerly recover malformed AST in rustfmt
compiler-errors Jan 22, 2024
a095808
Actually, just use nonterminal_may_begin_with
compiler-errors Jan 22, 2024
18f51f7
Make `Emitter::emit_diagnostic` consuming.
nnethercote Feb 2, 2024
88c5838
Lower anonymous structs or unions to HIR
frank-king Jan 4, 2024
16250ea
Add rustfmt test from #117942
frank-king Jan 6, 2024
bed3883
Format async bounds in rustfmt
compiler-errors Feb 13, 2024
e504c64
Rollup merge of #121035 - compiler-errors:rustfmt-asyncness, r=calebc…
GuillaumeGomez Feb 14, 2024
6674be9
Add an `ErrorGuaranteed` to `ast::TyKind::Err`.
nnethercote Feb 14, 2024
aba5f54
errors: only eagerly translate subdiagnostics
davidtwco Feb 14, 2024
2639101
Allow newly added non_local_definitions in rustfmt
Urgau Jan 27, 2024
163c3eb
Rollup merge of #121085 - davidtwco:always-eager-diagnostics, r=nneth…
matthiaskrgr Feb 17, 2024
ce71137
Explicitly call `emit_stashed_diagnostics`.
nnethercote Feb 23, 2024
8c33745
Auto merge of #120393 - Urgau:rfc3373-non-local-defs, r=WaffleLapkin
bors Feb 25, 2024
7d82dd0
Add `ast::ExprKind::Dummy`
ShE3py Feb 25, 2024
1bbfb76
Add `ErrorGuaranteed` to `ast::ExprKind::Err`
ShE3py Feb 25, 2024
90af751
Move `emit_stashed_diagnostic` call in rustfmt.
nnethercote Feb 25, 2024
50987bb
Auto merge of #120586 - ShE3py:exprkind-err, r=fmease
bors Feb 26, 2024
c18226d
Rollup merge of #121615 - nnethercote:fix-121517, r=oli-obk
matthiaskrgr Feb 26, 2024
f9dba39
Auto merge of #121636 - matthiaskrgr:rollup-1tt2o5n, r=matthiaskrgr
bors Feb 26, 2024
d84567c
Rename `Diagnostic` as `DiagInner`.
nnethercote Feb 22, 2024
4026fd7
Rename `DiagnosticBuilder` as `Diag`.
nnethercote Feb 22, 2024
45aad17
Reinstate `emit_stashed_diagnostics` in `DiagCtxtInner::drop`.
nnethercote Feb 28, 2024
0811e8f
Rename `DiagCtxt::with_emitter` as `DiagCtxt::new`.
nnethercote Feb 29, 2024
9c85ae8
Inline and remove `HumanEmitter::stderr`.
nnethercote Feb 29, 2024
6f2722b
Rollup merge of #121783 - nnethercote:emitter-cleanups, r=oli-obk
GuillaumeGomez Feb 29, 2024
fc64cbd
AST: Refactor type alias where clauses
fmease Feb 19, 2024
050610e
Rollup merge of #121326 - fmease:detect-empty-leading-where-clauses-o…
matthiaskrgr Feb 29, 2024
0b56261
Tweak `parse_asm_args`.
nnethercote Dec 20, 2023
78c99eb
Rename all `ParseSess` variables/fields/lifetimes as `psess`.
nnethercote Mar 4, 2024
fe9ceab
Rename `DiagnosticMessage` as `DiagMessage`.
nnethercote Feb 29, 2024
124808b
errors: share `SilentEmitter` between rustc and rustfmt
davidtwco Feb 19, 2024
677c1d8
Rewrite the `untranslatable_diagnostic` lint.
nnethercote Feb 20, 2024
f3892a0
Add MatchKind member to the Match expr for pretty printing & fmt
RossSmyth Feb 17, 2024
1709dd5
Add basic rustfmt implementation & test
RossSmyth Feb 17, 2024
5f8d353
Rollup merge of #121382 - nnethercote:rework-untranslatable_diagnosti…
matthiaskrgr Mar 6, 2024
fe0415e
Rename `ast::StmtKind::Local` into `ast::StmtKind::Let`
GuillaumeGomez Mar 14, 2024
911f6a4
conditionally ignore fatal diagnostic in the SilentEmitter
ytmimi Mar 19, 2024
8f62a2d
step cfgs
Mark-Simulacrum Mar 19, 2024
f670f3b
Implement macro-based deref!() syntax for deref patterns
compiler-errors Mar 20, 2024
0aa66d1
Rollup merge of #121619 - RossSmyth:pfix_match, r=petrochenkov
matthiaskrgr Mar 22, 2024
5e141e0
Rollup merge of #122737 - ytmimi:conditionally_ignore_fatal_diagnosti…
matthiaskrgr Mar 24, 2024
645b94c
Implement `mut ref`/`mut ref mut`
Jules-Bertholet Mar 24, 2024
31a4eae
Add rustfmt test for mut ref mut
Jules-Bertholet Mar 27, 2024
1ed0da9
Merge remote-tracking branch 'upstream/master' into subtree-push-nigh…
ytmimi Apr 8, 2024
6e4105f
fix dead code and redundant import warnings
ytmimi Apr 8, 2024
9ede626
bump rust toolchain to nightly-2024-04-08
ytmimi Apr 8, 2024
732855d
Bumped bytecount `0.6.4` -> `0.6.8`
ytmimi Apr 20, 2024
919fb28
remove archived `error-chain` crate from integration tests
ytmimi Apr 20, 2024
35ad744
don't apply formatting to builtin type ascription syntax
ytmimi May 6, 2024
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
Prev Previous commit
Next Next commit
Allow newly added non_local_definitions in rustfmt
  • Loading branch information
Urgau committed Feb 17, 2024
commit 263910118cb0f2d890a74c62a8e51dda47e13cbc
1 change: 1 addition & 0 deletions src/source_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ where
}
}

#[cfg_attr(not(bootstrap), allow(non_local_definitions))]
impl From<&FileName> for rustc_span::FileName {
fn from(filename: &FileName) -> rustc_span::FileName {
match filename {
Expand Down