rust/compiler/rustc_ast_pretty/src
Matthias Krüger 6ae0414122
Rollup merge of #100350 - jhpratt:stringify-vis, r=cjgillot
Stringify non-shorthand visibility correctly

This makes `stringify!(pub(in crate))` evaluate to `pub(in crate)` rather than `pub(crate)`, matching the behavior before the `crate` shorthand was removed. Further, this changes `stringify!(pub(in super))` to evaluate to `pub(in super)` rather than the current `pub(super)`. If the latter is not desired (it is _technically_ breaking), it can be undone.

Fixes #99981

`@rustbot` label +C-bug +regression-from-stable-to-beta +T-compiler
2022-08-11 22:53:06 +02:00
..
pp Pretty print ItemKind::Use in rustfmt style 2022-02-07 21:51:05 -08:00
pprust Rollup merge of #100350 - jhpratt:stringify-vis, r=cjgillot 2022-08-11 22:53:06 +02:00
helpers.rs Delete duplicated helpers from HIR printer 2021-12-05 12:45:51 -08:00
lib.rs Remove crate visibility usage in compiler 2022-05-20 20:04:54 -04:00
pp.rs fix most compiler/ doctests 2022-05-02 17:40:30 -07:00