We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5775b3 commit 949c580Copy full SHA for 949c580
crates/assists/src/handlers/remove_unused_param.rs
@@ -128,4 +128,37 @@ fn main() { foo(9, 2) }
128
"#,
129
);
130
}
131
+
132
+ #[test]
133
+ fn remove_across_files() {
134
+ check_assist(
135
+ remove_unused_param,
136
+ r#"
137
+//- /main.rs
138
+fn foo(x: i32, <|>y: i32) { x; }
139
140
+mod foo;
141
142
+//- /foo.rs
143
+use super::foo;
144
145
+fn bar() {
146
+ let _ = foo(1, 2);
147
+}
148
+"#,
149
150
151
+fn foo(x: i32) { x; }
152
153
154
155
156
157
158
159
+ let _ = foo(1);
160
161
162
+ )
163
+ }
164
0 commit comments