rust/src
Nicholas Nethercote ce71137b96 Explicitly call emit_stashed_diagnostics.
Commit 72b172b in #121206 changed things so that
`emit_stashed_diagnostics` is only called from `run_compiler`. But
rustfmt doesn't use `run_compiler`, so it needs to call
`emit_stashed_diagnostics` itself to avoid an abort in
`DiagCtxtInner::drop` when stashed diagnostics occur.

Fixes #121450.
2024-02-23 16:09:51 +11:00
..
attr Merge commit '81fe905ca83cffe84322f27ca43950b617861ff7' into rustfmt-sync 2023-10-22 20:21:44 -05:00
bin Merge commit '81fe905ca83cffe84322f27ca43950b617861ff7' into rustfmt-sync 2023-10-22 20:21:44 -05:00
cargo-fmt Merge commit '81fe905ca83cffe84322f27ca43950b617861ff7' into rustfmt-sync 2023-10-22 20:21:44 -05:00
config remove redundant imports 2023-12-10 10:56:22 +08:00
emitter remove redundant imports 2023-12-10 10:56:22 +08:00
format-diff Merge commit '81fe905ca83cffe84322f27ca43950b617861ff7' into rustfmt-sync 2023-10-22 20:21:44 -05:00
formatting Merge commit 'efa8f5521d3813cc897ba29ea0ef98c7aef66bb6' into rustfmt-subtree 2021-10-20 00:11:59 -05:00
git-rustfmt Merge commit '81fe905ca83cffe84322f27ca43950b617861ff7' into rustfmt-sync 2023-10-22 20:21:44 -05:00
modules Rename ast::Lit as ast::MetaItemLit. 2022-11-28 15:18:49 +11:00
parse Explicitly call emit_stashed_diagnostics. 2024-02-23 16:09:51 +11:00
test Explicitly call emit_stashed_diagnostics. 2024-02-23 16:09:51 +11:00
attr.rs Merge commit '81fe905ca83cffe84322f27ca43950b617861ff7' into rustfmt-sync 2023-10-22 20:21:44 -05:00
chains.rs Merge commit '81fe905ca83cffe84322f27ca43950b617861ff7' into rustfmt-sync 2023-10-22 20:21:44 -05:00
closures.rs Plumb awaitness of for loops 2023-12-19 12:26:20 -08:00
comment.rs remove redundant imports 2023-12-10 10:56:22 +08:00
coverage.rs Implement closing-block procedure without relying on missed_span module (#3691) 2019-07-17 23:07:12 +09:00
emitter.rs Merge commit '81fe905ca83cffe84322f27ca43950b617861ff7' into rustfmt-sync 2023-10-22 20:21:44 -05:00
expr.rs Rename unused_tuple_struct_fields in rustfmt 2024-01-02 15:34:37 -05:00
format_report_formatter.rs Merge commit '7b73b60faca71d01d900e49831fcb84553e93019' into sync-rustfmt 2022-06-12 22:03:05 -05:00
formatting.rs Merge commit '81fe905ca83cffe84322f27ca43950b617861ff7' into rustfmt-sync 2023-10-22 20:21:44 -05:00
ignore_path.rs remove redundant imports 2023-12-10 10:56:22 +08:00
imports.rs remove redundant imports 2023-12-10 10:56:22 +08:00
items.rs Delegation implementation: step 1 2024-01-12 14:11:16 +03:00
lib.rs Merge commit '81fe905ca83cffe84322f27ca43950b617861ff7' into rustfmt-sync 2023-10-22 20:21:44 -05:00
lists.rs Merge commit '81fe905ca83cffe84322f27ca43950b617861ff7' into rustfmt-sync 2023-10-22 20:21:44 -05:00
macros.rs Add spacing information to delimiters. 2023-12-11 09:36:40 +11:00
matches.rs Plumb awaitness of for loops 2023-12-19 12:26:20 -08:00
missed_spans.rs Merge commit 'efa8f5521d3813cc897ba29ea0ef98c7aef66bb6' into rustfmt-subtree 2021-10-20 00:11:59 -05:00
modules.rs Use ThinVec in a few more AST types. 2023-02-21 11:51:56 +11:00
overflow.rs Plumb awaitness of for loops 2023-12-19 12:26:20 -08:00
pairs.rs Rework ast::BinOpKind::to_string and ast::UnOp::to_string. 2023-11-28 09:42:07 +11:00
patterns.rs Add PatKind::Err 2024-01-17 03:14:16 +01:00
release_channel.rs Move macro to separate module 2019-05-17 16:13:46 +02:00
reorder.rs remove redundant imports 2023-12-10 10:56:22 +08:00
rewrite.rs Merge commit 'c4416f20dcaec5d93077f72470e83e150fb923b1' into sync-rustfmt 2022-06-22 22:14:32 -05:00
rustfmt_diff.rs Merge commit '81fe905ca83cffe84322f27ca43950b617861ff7' into rustfmt-sync 2023-10-22 20:21:44 -05:00
shape.rs Merge commit 'c4416f20dcaec5d93077f72470e83e150fb923b1' into sync-rustfmt 2022-06-22 22:14:32 -05:00
skip.rs Merge commit '81fe905ca83cffe84322f27ca43950b617861ff7' into rustfmt-sync 2023-10-22 20:21:44 -05:00
source_file.rs Merge commit '81fe905ca83cffe84322f27ca43950b617861ff7' into rustfmt-sync 2023-10-22 20:21:44 -05:00
source_map.rs refactor: backport syntux mod 2020-03-26 21:25:34 -05:00
spanned.rs Parse a pattern with no arm 2023-12-03 12:25:46 +01:00
stmt.rs Merge commit '81fe905ca83cffe84322f27ca43950b617861ff7' into rustfmt-sync 2023-10-22 20:21:44 -05:00
string.rs Merge commit '81fe905ca83cffe84322f27ca43950b617861ff7' into rustfmt-sync 2023-10-22 20:21:44 -05:00
syntux.rs refactor: backport syntux mod 2020-03-26 21:25:34 -05:00
types.rs Add an ErrorGuaranteed to ast::TyKind::Err. 2024-02-15 09:35:11 +11:00
utils.rs Plumb awaitness of for loops 2023-12-19 12:26:20 -08:00
vertical.rs Merge commit '5ff7b632a95bac6955611d85040859128902c580' into sync-rustfmt-subtree 2022-03-29 23:17:30 -05:00
visitor.rs Delegation implementation: step 1 2024-01-12 14:11:16 +03:00