diff options
| author | bors <bors@rust-lang.org> | 2023-12-26 17:30:42 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-12-26 17:30:42 +0000 |
| commit | a75fed74b62f95d1659ff70bea7895ed5c85bdba (patch) | |
| tree | 08e57fcd63aa95ee4a3f70859bab39cb5d9c1822 /compiler/rustc_ast_lowering/src/errors.rs | |
| parent | e1fadb2c35a6082867a037f012bfdfc5eb686211 (diff) | |
| parent | e16efbd23afe98d1bda104d850e0285591d3a5d8 (diff) | |
| download | rust-a75fed74b62f95d1659ff70bea7895ed5c85bdba.tar.gz rust-a75fed74b62f95d1659ff70bea7895ed5c85bdba.zip | |
Auto merge of #119042 - bvanjoi:fix-118697-2, r=compiler-errors
fallback `default` to `None` during ast-lowering for lifetime binder Fixes #118697 This is another attempt. It has a fallback, setting `default` to `None` and emit an error for non-lifetime binders during ast lowering. r? `@compiler-errors`
Diffstat (limited to 'compiler/rustc_ast_lowering/src/errors.rs')
| -rw-r--r-- | compiler/rustc_ast_lowering/src/errors.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/rustc_ast_lowering/src/errors.rs b/compiler/rustc_ast_lowering/src/errors.rs index 11bb559719b..718a5b03cf2 100644 --- a/compiler/rustc_ast_lowering/src/errors.rs +++ b/compiler/rustc_ast_lowering/src/errors.rs @@ -395,3 +395,10 @@ pub enum BadReturnTypeNotation { span: Span, }, } + +#[derive(Diagnostic)] +#[diag(ast_lowering_default_parameter_in_binder)] +pub(crate) struct UnexpectedDefaultParameterInBinder { + #[primary_span] + pub span: Span, +} |
