-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Description
This test, when added to rename.rs, does not pass:
#[test]
fn test_rename_bind_pat() {
test_rename(
r#"
fn main() {
enum CustomOption<T> {
None,
Some(T),
}
let test_variable = CustomOption::Some(22);
match test_variable {
CustomOption::Some(foo<|>) if foo == 11 => {}
_ => (),
}
}"#,
"new_name",
r#"
fn main() {
enum CustomOption<T> {
None,
Some(T),
}
let test_variable = CustomOption::Some(22);
match test_variable {
CustomOption::Some(new_name<|>) if new_name == 11 => {}
_ => (),
}
}"#,
);
}Instead, after the rename, we get the CustomOption::Some(new_name<|>) if foo == 11 => {} string.
Metadata
Metadata
Assignees
Labels
No labels