diff options
| author | Michael Goulet <michael@errs.io> | 2024-08-26 15:03:30 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-09-20 22:18:57 -0400 |
| commit | 51b51bb570e076d981e12a8e221ed3a74b3025c6 (patch) | |
| tree | 06305f9799cc1656ab6edc9bfab4362d4e32e82c /compiler/rustc_ast_lowering/src/lib.rs | |
| parent | 19881b5a5a17b4fbc91529f867ca4e577af6438a (diff) | |
| download | rust-51b51bb570e076d981e12a8e221ed3a74b3025c6.tar.gz rust-51b51bb570e076d981e12a8e221ed3a74b3025c6.zip | |
Implement RTN in resolve_bound_vars and HIR ty lowering
Diffstat (limited to 'compiler/rustc_ast_lowering/src/lib.rs')
| -rw-r--r-- | compiler/rustc_ast_lowering/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_ast_lowering/src/lib.rs b/compiler/rustc_ast_lowering/src/lib.rs index d59197b396a..5266eb0e91f 100644 --- a/compiler/rustc_ast_lowering/src/lib.rs +++ b/compiler/rustc_ast_lowering/src/lib.rs @@ -487,11 +487,12 @@ enum ParamMode { #[derive(Copy, Clone, Debug)] enum AllowReturnTypeNotation { + /// Only in types, since RTN is denied later during HIR lowering. Yes, + /// All other positions (path expr, method, use tree). No, } -#[derive(Copy, Clone, Debug)] enum GenericArgsMode { ParenSugar, ReturnTypeNotation, @@ -1239,7 +1240,6 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> { qself, path, param_mode, - // We deny these after the fact in HIR->middle type lowering. AllowReturnTypeNotation::Yes, itctx, None, |
