move comment

This commit is contained in:
Isak 2024-06-27 13:38:30 -04:00
parent cc7d3d3e1d
commit eb98dd7bde
No known key found for this signature in database

View file

@ -1366,9 +1366,9 @@ fn parse_defs_end<'a>(
);
}
Either::Second(value_def) => {
// If we got a ValueDef::Body, check if a type annotation preceded it.
// If so, we may need to combine them into an AnnotatedBody.
let joined_def = match value_def {
// If we got a ValueDef::Body, check if a type annotation preceded it.
// If so, we may need to combine them into an AnnotatedBody.
ValueDef::Body(loc_pattern, loc_def_expr) => {
let region =
Region::span_across(&loc_pattern.region, &loc_def_expr.region);