Skip to content

Commit 7085ff2

Browse files
committed
remove some ancient debug output, looks unused?
1 parent aff5f47 commit 7085ff2

File tree

4 files changed

+0
-18
lines changed

4 files changed

+0
-18
lines changed

compiler/rustc_hir_analysis/src/check/check.rs

-1
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,6 @@ fn check_static_linkage(tcx: TyCtxt<'_>, def_id: LocalDefId) {
505505
}
506506

507507
pub(crate) fn check_item_type(tcx: TyCtxt<'_>, def_id: LocalDefId) {
508-
let _indenter = indenter();
509508
match tcx.def_kind(def_id) {
510509
DefKind::Static { .. } => {
511510
tcx.ensure().typeck(def_id);

compiler/rustc_hir_analysis/src/check/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ use rustc_trait_selection::traits::ObligationCtxt;
103103

104104
use crate::errors;
105105
use crate::require_c_abi_if_c_variadic;
106-
use crate::util::common::indenter;
107106

108107
use self::compare_impl_item::collect_return_position_impl_trait_in_trait_tys;
109108
use self::region::region_scope_tree;

compiler/rustc_hir_analysis/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ use rustc_middle::middle;
103103
use rustc_middle::mir::interpret::GlobalId;
104104
use rustc_middle::query::Providers;
105105
use rustc_middle::ty::{self, Ty, TyCtxt};
106-
use rustc_middle::util;
107106
use rustc_session::parse::feature_err;
108107
use rustc_span::{symbol::sym, Span};
109108
use rustc_target::spec::abi::Abi;

compiler/rustc_middle/src/util/common.rs

-15
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,6 @@ pub fn to_readable_str(mut val: usize) -> String {
2121
groups.join("_")
2222
}
2323

24-
pub struct Indenter {
25-
_cannot_construct_outside_of_this_module: (),
26-
}
27-
28-
impl Drop for Indenter {
29-
fn drop(&mut self) {
30-
debug!("<<");
31-
}
32-
}
33-
34-
pub fn indenter() -> Indenter {
35-
debug!(">>");
36-
Indenter { _cannot_construct_outside_of_this_module: () }
37-
}
38-
3924
// const wrapper for `if let Some((_, tail)) = name.rsplit_once(':') { tail } else { name }`
4025
pub const fn c_name(name: &'static str) -> &'static str {
4126
// FIXME Simplify the implementation once more `str` methods get const-stable.

0 commit comments

Comments
 (0)