Remove Named & DiscardLabeled, now unused

And unify everything into either 'Discard' or 'NamedLabeled'
This commit is contained in:
KtorZ
2022-12-22 09:30:58 +01:00
parent 18acd0e65f
commit 8ab05509b1
7 changed files with 37 additions and 36 deletions

View File

@@ -905,7 +905,8 @@ fn anonymous_function() {
location: Span::new((), 39..67),
is_capture: false,
arguments: vec![ast::Arg {
arg_name: ast::ArgName::Named {
arg_name: ast::ArgName::NamedLabeled {
label: "a".to_string(),
name: "a".to_string(),
location: Span::new((), 43..44),
},
@@ -1068,7 +1069,8 @@ fn call() {
location: Span::new((), 61..82),
is_capture: true,
arguments: vec![ast::Arg {
arg_name: ast::ArgName::Named {
arg_name: ast::ArgName::NamedLabeled {
label: "_capture__0".to_string(),
name: "_capture__0".to_string(),
location: Span::new((), 0..0),
},
@@ -1093,7 +1095,8 @@ fn call() {
location: Span::new((), 65..81),
is_capture: false,
arguments: vec![ast::Arg {
arg_name: ast::ArgName::Named {
arg_name: ast::ArgName::NamedLabeled {
label: "y".to_string(),
name: "y".to_string(),
location: Span::new((), 69..70),
},