about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-10-10 12:58:12 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-10-13 06:20:11 +1100
commite3d8bbbfe29ab73afe1d258d6f69c2d6840a30ff (patch)
tree217220eb44af8904d0ef05518d7f354f4e60d249 /compiler/rustc_interface/src
parentd5e7c5f3cc9919bf1ad0b61568d74c65639d4e4e (diff)
downloadrust-e3d8bbbfe29ab73afe1d258d6f69c2d6840a30ff.tar.gz
rust-e3d8bbbfe29ab73afe1d258d6f69c2d6840a30ff.zip
Simplify support traits.
First, both `AstPrinterSupport` and `HirPrinterSupport` have a `sess`
method. This commit introduces a `Sess` trait and makes the support
traits be subtraits of `Sess`, to avoid some duplication.

Second, both support traits have a `pp_ann` method that isn't needed if
we enable `trait_upcasting`. This commit removes those methods.

(Both of these traits will be removed in a subsequent commit, as will
the `trait_upcasting` use.)
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions