resolve clippy errors
Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
parent
a61bf3093e
commit
81d7d7aabd
10 changed files with 24 additions and 26 deletions
|
@ -291,7 +291,9 @@ pub fn intern_const_alloc_for_constprop<
|
|||
return Ok(());
|
||||
}
|
||||
// Move allocation to `tcx`.
|
||||
for _ in intern_shallow(ecx, alloc_id, Mutability::Not).map_err(|()| err_ub!(DeadLocal))? {
|
||||
if let Some(_) =
|
||||
(intern_shallow(ecx, alloc_id, Mutability::Not).map_err(|()| err_ub!(DeadLocal))?).next()
|
||||
{
|
||||
// We are not doing recursive interning, so we don't currently support provenance.
|
||||
// (If this assertion ever triggers, we should just implement a
|
||||
// proper recursive interning loop -- or just call `intern_const_alloc_recursive`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue