We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eec93ca commit 3a5442aCopy full SHA for 3a5442a
src/librustc_mir/transform/check_consts/qualifs.rs
@@ -170,16 +170,6 @@ trait Qualif {
170
// Be conservative about the returned value of a const fn.
171
Self::in_any_value_of_ty(cx, return_ty).unwrap_or(false)
172
}
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
183
184
185
/// Constant containing interior mutability (`UnsafeCell<T>`).
0 commit comments