Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 0a4d948

Browse files
committed
Remove unused ProfileCategory.
1 parent 500ddc5 commit 0a4d948

File tree

4 files changed

+0
-16
lines changed

4 files changed

+0
-16
lines changed

compiler/rustc_data_structures/src/profiling.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -111,17 +111,6 @@ cfg_if! {
111111

112112
type Profiler = measureme::Profiler<SerializationSink>;
113113

114-
#[derive(Clone, Copy, Debug, PartialEq, Eq, Ord, PartialOrd)]
115-
pub enum ProfileCategory {
116-
Parsing,
117-
Expansion,
118-
TypeChecking,
119-
BorrowChecking,
120-
Codegen,
121-
Linking,
122-
Other,
123-
}
124-
125114
bitflags::bitflags! {
126115
struct EventFilter: u32 {
127116
const GENERIC_ACTIVITIES = 1 << 0;

compiler/rustc_middle/src/ty/query/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ use crate::ty::util::AlwaysRequiresDrop;
3434
use crate::ty::{self, AdtSizedConstraint, CrateInherentImpls, ParamEnvAnd, Ty, TyCtxt};
3535
use rustc_data_structures::fingerprint::Fingerprint;
3636
use rustc_data_structures::fx::{FxHashMap, FxHashSet, FxIndexMap};
37-
use rustc_data_structures::profiling::ProfileCategory::*;
3837
use rustc_data_structures::stable_hasher::StableVec;
3938
use rustc_data_structures::svh::Svh;
4039
use rustc_data_structures::sync::Lrc;

compiler/rustc_middle/src/ty/query/plumbing.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,6 @@ macro_rules! define_queries_inner {
268268
rustc_data_structures::stable_hasher::StableHasher,
269269
ich::StableHashingContext
270270
};
271-
use rustc_data_structures::profiling::ProfileCategory;
272271

273272
define_queries_struct! {
274273
tcx: $tcx,
@@ -362,7 +361,6 @@ macro_rules! define_queries_inner {
362361
as QueryStorage
363362
>::Stored;
364363
const NAME: &'static str = stringify!($name);
365-
const CATEGORY: ProfileCategory = $category;
366364
}
367365

368366
impl<$tcx> QueryAccessors<TyCtxt<$tcx>> for queries::$name<$tcx> {

compiler/rustc_query_system/src/query/config.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ use crate::dep_graph::SerializedDepNodeIndex;
55
use crate::query::caches::QueryCache;
66
use crate::query::plumbing::CycleError;
77
use crate::query::{QueryContext, QueryState};
8-
use rustc_data_structures::profiling::ProfileCategory;
98

109
use rustc_data_structures::fingerprint::Fingerprint;
1110
use std::borrow::Cow;
@@ -14,7 +13,6 @@ use std::hash::Hash;
1413

1514
pub trait QueryConfig {
1615
const NAME: &'static str;
17-
const CATEGORY: ProfileCategory;
1816

1917
type Key: Eq + Hash + Clone + Debug;
2018
type Value;

0 commit comments

Comments
 (0)