Skip to content

Commit 5a6a133

Browse files
committed
Remove *_inlined variants
1 parent 517725c commit 5a6a133

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

src/librustc/dep_graph/dep_node.rs

+3-11
Original file line numberDiff line numberDiff line change
@@ -174,18 +174,14 @@ macro_rules! define_dep_nodes {
174174
}
175175

176176
#[inline(always)]
177-
pub fn is_input_inlined(&self) -> bool {
177+
pub fn is_input(&self) -> bool {
178178
match *self {
179179
$(
180180
DepKind :: $variant => { contains_input_attr!($($attr),*) }
181181
)*
182182
}
183183
}
184184

185-
pub fn is_input(&self) -> bool {
186-
self.is_input_inlined()
187-
}
188-
189185
#[inline(always)]
190186
pub fn is_eval_always(&self) -> bool {
191187
match *self {
@@ -197,7 +193,7 @@ macro_rules! define_dep_nodes {
197193

198194
#[allow(unreachable_code)]
199195
#[inline(always)]
200-
pub fn has_params_inlined(&self) -> bool {
196+
pub fn has_params(&self) -> bool {
201197
match *self {
202198
$(
203199
DepKind :: $variant => {
@@ -218,10 +214,6 @@ macro_rules! define_dep_nodes {
218214
)*
219215
}
220216
}
221-
222-
pub fn has_params(&self) -> bool {
223-
self.has_params_inlined()
224-
}
225217
}
226218

227219
pub enum DepConstructor<$tcx> {
@@ -326,7 +318,7 @@ macro_rules! define_dep_nodes {
326318
/// does not require any parameters.
327319
#[inline(always)]
328320
pub fn new_no_params(kind: DepKind) -> DepNode {
329-
debug_assert!(!kind.has_params_inlined());
321+
debug_assert!(!kind.has_params());
330322
DepNode {
331323
kind,
332324
hash: Fingerprint::ZERO,

src/librustc/ty/query/plumbing.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
424424
return Ok(result);
425425
}
426426

427-
if !dep_node.kind.is_input_inlined() {
427+
if !dep_node.kind.is_input() {
428428
if let Some(dep_node_index) = self.try_mark_green_and_read(&dep_node) {
429429
profq_msg!(self, ProfileQueriesMsg::CacheHit);
430430
self.sess.profiler(|p| p.record_query_hit(Q::CATEGORY));
@@ -600,7 +600,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
600600

601601
// Ensuring an "input" or anonymous query makes no sense
602602
assert!(!dep_node.kind.is_anon());
603-
assert!(!dep_node.kind.is_input_inlined());
603+
assert!(!dep_node.kind.is_input());
604604
if self.try_mark_green_and_read(&dep_node).is_none() {
605605
// A None return from `try_mark_green_and_read` means that this is either
606606
// a new dep node or that the dep node has already been marked red.

0 commit comments

Comments
 (0)