Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[For ruby_3_2] Fix unused_mut Rust warnings #8435

Merged
merged 1 commit into from Sep 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions yjit/src/asm/mod.rs
Expand Up @@ -624,12 +624,12 @@ impl CodeBlock {
freed_pages.append(&mut virtual_pages);

if let Some(&first_page) = freed_pages.first() {
let mut cb = CodegenGlobals::get_inline_cb();
let cb = CodegenGlobals::get_inline_cb();
cb.write_pos = cb.get_page_pos(first_page);
cb.dropped_bytes = false;
cb.clear_comments();

let mut ocb = CodegenGlobals::get_outlined_cb().unwrap();
let ocb = CodegenGlobals::get_outlined_cb().unwrap();
ocb.write_pos = ocb.get_page_pos(first_page);
ocb.dropped_bytes = false;
ocb.clear_comments();
Expand Down
2 changes: 1 addition & 1 deletion yjit/src/core.rs
Expand Up @@ -1484,7 +1484,7 @@ fn gen_block_series_body(

// gen_direct_jump() can request a block to be placed immediately after by
// leaving a single target that has a `None` address.
let mut last_target = match &mut last_branch.targets {
let last_target = match &mut last_branch.targets {
[Some(last_target), None] if last_target.address.is_none() => last_target,
_ => break
};
Expand Down