Rollup merge of #129626 - compiler-errors:explicit-named, r=fmease
Remove `ParamMode::ExplicitNamed` This was introduced as a hack to improve a diagnostics suggestion in #61679. It was subsequently broken, but also it was an incomplete hack that I don't believe we need to support, so let's just remove it.
This commit is contained in:
@@ -482,8 +482,6 @@ pub fn lower_to_hir(tcx: TyCtxt<'_>, (): ()) -> hir::Crate<'_> {
|
||||
enum ParamMode {
|
||||
/// Any path in a type context.
|
||||
Explicit,
|
||||
/// Path in a type definition, where the anonymous lifetime `'_` is not allowed.
|
||||
ExplicitNamed,
|
||||
/// The `module::Type` in `module::Type::method` in an expression.
|
||||
Optional,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user