Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`concat!` prevents `format_args!` from capturing variables from the surrounding scope. Implementing `println!` using a nested `format_args` removes this limitation allowing us to do the following: ```rust let x = 3; println!("{x}"); ``` Similar to `std::println!`. Also the change [does not impact performance][1]. [1]: rust-lang/rust#106824 Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
- Loading branch information