Remove unnecessary method

This commit is contained in:
Dylan MacKenzie 2019-09-17 16:25:33 -07:00
parent eec93ca08c
commit 3a5442a891

View file

@ -170,16 +170,6 @@ trait Qualif {
// Be conservative about the returned value of a const fn. // Be conservative about the returned value of a const fn.
Self::in_any_value_of_ty(cx, return_ty).unwrap_or(false) Self::in_any_value_of_ty(cx, return_ty).unwrap_or(false)
} }
fn in_value(cx: &ConstCx<'_, 'tcx>, source: ValueSource<'_, 'tcx>) -> bool {
match source {
ValueSource::Rvalue(rvalue) => Self::in_rvalue(cx, rvalue),
ValueSource::DropAndReplace(source) => Self::in_operand(cx, source),
ValueSource::Call { callee, args, return_ty } => {
Self::in_call(cx, callee, args, return_ty)
}
}
}
} }
/// Constant containing interior mutability (`UnsafeCell<T>`). /// Constant containing interior mutability (`UnsafeCell<T>`).