-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Stringification of pub(in crate) visibility removes in
#99981
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
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: