Skip to content

Commit 3a5442a

Browse files
Remove unnecessary method
1 parent eec93ca commit 3a5442a

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/librustc_mir/transform/check_consts/qualifs.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -170,16 +170,6 @@ trait Qualif {
170170
// Be conservative about the returned value of a const fn.
171171
Self::in_any_value_of_ty(cx, return_ty).unwrap_or(false)
172172
}
173-
174-
fn in_value(cx: &ConstCx<'_, 'tcx>, source: ValueSource<'_, 'tcx>) -> bool {
175-
match source {
176-
ValueSource::Rvalue(rvalue) => Self::in_rvalue(cx, rvalue),
177-
ValueSource::DropAndReplace(source) => Self::in_operand(cx, source),
178-
ValueSource::Call { callee, args, return_ty } => {
179-
Self::in_call(cx, callee, args, return_ty)
180-
}
181-
}
182-
}
183173
}
184174

185175
/// Constant containing interior mutability (`UnsafeCell<T>`).

0 commit comments

Comments
 (0)