diff options
| author | bors <bors@rust-lang.org> | 2025-05-07 23:03:25 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-05-07 23:03:25 +0000 |
| commit | ae3e8c6191fb2bf9394ea4201adaf7b1ac496120 (patch) | |
| tree | 382cf80145b1f54cbb94e47671ab3cb4f7306108 /compiler/rustc_parse/src/errors.rs | |
| parent | e9f8103f93f8ce2fa2c15c0c6796ec821f8ae15d (diff) | |
| parent | 5e5043d7331f992ad91d199f9f89c4914edad043 (diff) | |
| download | rust-ae3e8c6191fb2bf9394ea4201adaf7b1ac496120.tar.gz rust-ae3e8c6191fb2bf9394ea4201adaf7b1ac496120.zip | |
Auto merge of #140751 - GuillaumeGomez:rollup-eahw4ta, r=GuillaumeGomez
Rollup of 8 pull requests Successful merges: - #140234 (Separate dataflow analysis and results) - #140614 (Correct warning message in restricted visibility) - #140671 (Parser: Recover error from named params while parse_path) - #140700 (Don't crash on error codes passed to `--explain` which exceed our internal limit of 9999 ) - #140706 ([rustdoc] Ensure that temporary doctest folder is correctly removed even if doctests failed) - #140734 (Fix regression from #140393 for espidf / horizon / nuttx / vita) - #140741 (add armv5te-unknown-linux-gnueabi target maintainer) - #140745 (run-make-support: set rustc dylib path for cargo wrapper) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
| -rw-r--r-- | compiler/rustc_parse/src/errors.rs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/compiler/rustc_parse/src/errors.rs b/compiler/rustc_parse/src/errors.rs index 9e5c81d44a5..766baf6f80c 100644 --- a/compiler/rustc_parse/src/errors.rs +++ b/compiler/rustc_parse/src/errors.rs @@ -1647,6 +1647,30 @@ pub(crate) struct ExpectedFnPathFoundFnKeyword { } #[derive(Diagnostic)] +#[diag(parse_path_found_named_params)] +pub(crate) struct FnPathFoundNamedParams { + #[primary_span] + #[suggestion(applicability = "machine-applicable", code = "")] + pub named_param_span: Span, +} + +#[derive(Diagnostic)] +#[diag(parse_path_found_c_variadic_params)] +pub(crate) struct PathFoundCVariadicParams { + #[primary_span] + #[suggestion(applicability = "machine-applicable", code = "")] + pub span: Span, +} + +#[derive(Diagnostic)] +#[diag(parse_path_found_attribute_in_params)] +pub(crate) struct PathFoundAttributeInParams { + #[primary_span] + #[suggestion(applicability = "machine-applicable", code = "")] + pub span: Span, +} + +#[derive(Diagnostic)] #[diag(parse_path_double_colon)] pub(crate) struct PathSingleColon { #[primary_span] |
