mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
map_fn_sig_item doesn't need a mutable reference
This commit is contained in:
@@ -458,7 +458,7 @@ pub(crate) fn union(mut self, other: &SerializedSearchIndex) -> SerializedSearch
|
||||
other.descs[other_entryid].clone(),
|
||||
other.function_data[other_entryid].clone().map(|mut func| {
|
||||
fn map_fn_sig_item(
|
||||
map_other_pathid_to_self_pathid: &mut Vec<usize>,
|
||||
map_other_pathid_to_self_pathid: &Vec<usize>,
|
||||
ty: &mut RenderType,
|
||||
) {
|
||||
match ty.id {
|
||||
@@ -501,14 +501,14 @@ fn map_fn_sig_item(
|
||||
}
|
||||
}
|
||||
for input in &mut func.inputs {
|
||||
map_fn_sig_item(&mut map_other_pathid_to_self_pathid, input);
|
||||
map_fn_sig_item(&map_other_pathid_to_self_pathid, input);
|
||||
}
|
||||
for output in &mut func.output {
|
||||
map_fn_sig_item(&mut map_other_pathid_to_self_pathid, output);
|
||||
map_fn_sig_item(&map_other_pathid_to_self_pathid, output);
|
||||
}
|
||||
for clause in &mut func.where_clause {
|
||||
for entry in clause {
|
||||
map_fn_sig_item(&mut map_other_pathid_to_self_pathid, entry);
|
||||
map_fn_sig_item(&map_other_pathid_to_self_pathid, entry);
|
||||
}
|
||||
}
|
||||
func
|
||||
|
||||
Reference in New Issue
Block a user