See yewstack/yew#2754 for rationale. Tokio also uses the same approach with tokio_unstable feature
This will allow downstream users, who use cfg for nightly features, to enable nightly features of proc-macro-error2) by using build.rs to set the flag). It's currently impossible to do this: yewstack/yew#3752