Closed m-ou-se closed 3 years ago
See https://github.com/rust-lang/rust/issues/88510
use inline_python::{python, Context}; pub fn foo() { let c: Context = python!{ y = 123; x = f"{y}" }; }
In Rust 2021, f"{y}" is parsed as a single (currently invalid!) token. The suggestion suggests f "{y}", with a space.
f"{y}"
f "{y}"
We should detect f "{y}" and remove the space.
This workaround is now in place and published as inline-python 0.7.1 and ct-python 0.5.3.
See https://github.com/rust-lang/rust/issues/88510
In Rust 2021,
f"{y}"
is parsed as a single (currently invalid!) token. The suggestion suggestsf "{y}"
, with a space.We should detect
f "{y}"
and remove the space.