We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rust-analyzer version: rust-analyzer version: 0.4.1237-standalone (61504c8 2022-10-08)
rustc version: rustc 1.64.0 (a55dd71d5 2022-09-19)
Start with:
pub fn tester() { let x = "hello"; let y = "world"; println!("{x} {}", y); }
Run “Extract into function” on the println!. This produces:
println!
pub fn tester() { let x = "hello"; let y = "world"; fun_name(y); } fn fun_name(y: &str) { println!("{x} {}", y); }
Note that x does not become a parameter to the function, even though it must.
x
The text was updated successfully, but these errors were encountered:
format_args_capture hasn't been supported yet afaict. See #11260.
format_args_capture
Sorry, something went wrong.
No branches or pull requests
rust-analyzer version: rust-analyzer version: 0.4.1237-standalone (61504c8 2022-10-08)
rustc version: rustc 1.64.0 (a55dd71d5 2022-09-19)
Start with:
Run “Extract into function” on the
println!
. This produces:Note that
x
does not become a parameter to the function, even though it must.The text was updated successfully, but these errors were encountered: