Skip to content

Commit 1ba9ebd

Browse files
authored
Unrolled build for #142747
Rollup merge of #142747 - nnethercote:json-conversion-cleanups, r=aDotInTheVoid rustdoc_json: conversion cleanups A bunch of clean-to-types conversion cleanups I found while working on perf-related stuff in rustdoc_json. r? ```@aDotInTheVoid```
2 parents 9972ebf + 2878e1c commit 1ba9ebd

File tree

2 files changed

+169
-189
lines changed

2 files changed

+169
-189
lines changed

src/librustdoc/clean/types.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2432,20 +2432,6 @@ pub(crate) enum ConstantKind {
24322432
Infer,
24332433
}
24342434

2435-
impl Constant {
2436-
pub(crate) fn expr(&self, tcx: TyCtxt<'_>) -> String {
2437-
self.kind.expr(tcx)
2438-
}
2439-
2440-
pub(crate) fn value(&self, tcx: TyCtxt<'_>) -> Option<String> {
2441-
self.kind.value(tcx)
2442-
}
2443-
2444-
pub(crate) fn is_literal(&self, tcx: TyCtxt<'_>) -> bool {
2445-
self.kind.is_literal(tcx)
2446-
}
2447-
}
2448-
24492435
impl ConstantKind {
24502436
pub(crate) fn expr(&self, tcx: TyCtxt<'_>) -> String {
24512437
match *self {

0 commit comments

Comments
 (0)