diff options
| author | bors <bors@rust-lang.org> | 2024-06-26 07:22:41 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-06-26 07:22:41 +0000 |
| commit | 773180257062f55ea1d8b5736d97b57c30a8b677 (patch) | |
| tree | 66a375558e3c1bf9a8d157df3214a1f24a29b27e /compiler/rustc_parse/src | |
| parent | a299aa5df79dd8e5a1405b97ddd7b367b61eecc6 (diff) | |
| parent | b2720867f1f2ae1a481e991e39a9725cacdce48d (diff) | |
| download | rust-773180257062f55ea1d8b5736d97b57c30a8b677.tar.gz rust-773180257062f55ea1d8b5736d97b57c30a8b677.zip | |
Auto merge of #126979 - matthiaskrgr:rollup-fdqledz, r=matthiaskrgr
Rollup of 10 pull requests Successful merges: - #126724 (Fix a span in `parse_ty_bare_fn`.) - #126812 (Rename `tcx` to `cx` in new solver generic code) - #126879 (fix Drop items getting leaked in Filter::next_chunk) - #126925 (Change E0369 to give note informations for foreign items.) - #126938 (miri: make sure we can find link_section statics even for the local crate) - #126954 (resolve: Tweak some naming around import ambiguities) - #126964 (Migrate `lto-empty`, `invalid-so` and `issue-20626` `run-make` tests to rmake.rs) - #126968 (Don't ICE during RPITIT refinement checking for resolution errors after normalization) - #126971 (Bump black, ruff and platformdirs) - #126973 (Fix bad replacement for unsafe extern block suggestion) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_parse/src')
| -rw-r--r-- | compiler/rustc_parse/src/parser/ty.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/ty.rs b/compiler/rustc_parse/src/parser/ty.rs index fcd623b477f..d2043c353fe 100644 --- a/compiler/rustc_parse/src/parser/ty.rs +++ b/compiler/rustc_parse/src/parser/ty.rs @@ -608,7 +608,7 @@ impl<'a> Parser<'a> { self.dcx().emit_err(FnPointerCannotBeAsync { span: whole_span, qualifier: span }); } // FIXME(gen_blocks): emit a similar error for `gen fn()` - let decl_span = span_start.to(self.token.span); + let decl_span = span_start.to(self.prev_token.span); Ok(TyKind::BareFn(P(BareFnTy { ext, safety, generic_params: params, decl, decl_span }))) } |
