-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
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
Stringification of pub(in crate) visibility removes in
#99981
Comments
Similar effect can already be observed on stable too macro_rules! stringify_vis {
($v:vis) => { stringify!($v) }
}
fn main() {
println!("{}", stringify_vis!(pub(in self)));
} prints |
I would expect to see this issue in 2020, but not now when we are collecting tokens in (almost) all cases instead of converting them from AST. |
in
in
bisection points to 9e2f655 searched nightlies: from nightly-2022-01-01 to nightly-2022-08-03 bisected with cargo-bisect-rustc v0.6.3Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc --start=2022-01-01 --script=./script.sh The commit is a rollup so I think it's in #97254 cc @jhpratt ? |
Without even looking at the rest of the rollup, it's definitely my PR. Short of storing whether |
This will slip into 1.63. |
I'll work on this this evening to get it resolved quickly, even if it is too late to patch the beta. I don't think it'll be too difficult. |
PR is up: #100350. This also fixes |
Code
I tried this code:
I expected to see this happen: it to print
pub(in crate)
.Instead, this happened: it prints
pub(crate)
.Version it worked on
It most recently worked on: 1.62.1
Version with regression
rustc --version --verbose
:Backtrace
Backtrace
@rustbot modify labels: +regression-from-stable-to-beta -regression-untriaged
The text was updated successfully, but these errors were encountered: