diff options
| author | bors <bors@rust-lang.org> | 2019-03-15 13:58:03 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-03-15 13:58:03 +0000 |
| commit | ad8a3eb039ca3dc1ff5a3d5757afc5e5330c1bce (patch) | |
| tree | 9d51335b0eff0734c9913a3ec245e235f974fa85 /src/libsyntax | |
| parent | 16e7e05e95a6a5a1e0dba54ae722274bd7d725f7 (diff) | |
| parent | dbf19c3975a014861535b775b2fb7cd71e6c5042 (diff) | |
| download | rust-ad8a3eb039ca3dc1ff5a3d5757afc5e5330c1bce.tar.gz rust-ad8a3eb039ca3dc1ff5a3d5757afc5e5330c1bce.zip | |
Auto merge of #58140 - eddyb:advent-of-print, r=nikomatsakis
Refactor ppaux out of existence. A long-time coming, this PR reorganizes and rewrites the pretty-printing architecture of rustc, specifically the parts that involve the typesystem (which used to be in `rustc::util::ppaux`). *Note: these commits used to be in #57967 before being split off.* The new API (i.e. the `Printer` and `PrettyPrint` traits) is in `rustc::ty::print`. Design points, roughly: * using associated types in `Printer` to allow building e.g. an AST, not just printing as a side-effect * several overloading points for implementers of `PrettyPrinter`, e.g. how `<...>` is printed * for `fmt::Display` impls, the value to print is lifted to the `ty::tls` `tcx`, and everything after that stays within the `ty::print` API, which requires `'tcx` to match between values and the printer's `tcx`, without going through `fmt::Display` again Most of the behavior is unchanged, except for a few details, which should be clear from the test changes. r? @nikomatsakis Fixes https://github.com/rust-lang/rust/issues/55464
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index 279e2089f5d..b2982629fe6 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -1042,7 +1042,7 @@ pub const BUILTIN_ATTRIBUTES: &[(&str, AttributeType, AttributeTemplate, Attribu "rustc_attrs", "internal rustc attributes will never be stable", cfg_fn!(rustc_attrs))), - ("rustc_item_path", Whitelisted, template!(Word), Gated(Stability::Unstable, + ("rustc_def_path", Whitelisted, template!(Word), Gated(Stability::Unstable, "rustc_attrs", "internal rustc attributes will never be stable", cfg_fn!(rustc_attrs))), |
