fix clippy test failures
This commit is contained in:
parent
705d818bd5
commit
5c95a3db2a
6 changed files with 111 additions and 65 deletions
|
@ -798,7 +798,7 @@ pub(crate) fn compare_const_vals<'tcx>(
|
|||
if let ty::Str = ty.kind() && let (
|
||||
Some(a_val @ ConstValue::Slice { .. }),
|
||||
Some(b_val @ ConstValue::Slice { .. }),
|
||||
) = (a.try_val(tcx), b.try_val(tcx))
|
||||
) = (a.try_to_value(tcx), b.try_to_value(tcx))
|
||||
{
|
||||
let a_bytes = get_slice_bytes(&tcx, a_val);
|
||||
let b_bytes = get_slice_bytes(&tcx, b_val);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue