about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-02-26 16:06:03 +0100
committerGitHub <noreply@github.com>2024-02-26 16:06:03 +0100
commitc18226de7d57e5b2754e87551ccaf8f3bb3f4efb (patch)
tree76cd62ff0e804afd8e4319db0fe56a5cc2e20c0c /tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs
parent8c337451c16fcd27dfae39848091c0e41bf41c57 (diff)
parent90af751966bc170a96860aea6186f1cc7f08217a (diff)
downloadrust-c18226de7d57e5b2754e87551ccaf8f3bb3f4efb.tar.gz
rust-c18226de7d57e5b2754e87551ccaf8f3bb3f4efb.zip
Rollup merge of #121615 - nnethercote:fix-121517, r=oli-obk
Move `emit_stashed_diagnostic` call in rustfmt.

This call was added to `parse_crate_mod` in #121487, to fix a case where a stashed diagnostic wasn't emitted. But there is another path where a stashed diagnostic might fail to be emitted if there's a parse error, if the `build` call in `parse_crate_inner` fails before `parse_crate_mod` is reached.

So this commit moves the `emit_stashed_diagnostic` call outwards, from `parse_crate_mod` to `format_project`, just after the `Parser::parse_crate` call. This should be far out enough to catch any parsing errors.

Fixes #121517.

r? `@oli-obk`
cc `@ytmimi`
Diffstat (limited to 'tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs')
0 files changed, 0 insertions, 0 deletions