Content-Length: 331738 | pFad | http://github.com/RustPython/RustPython/pull/5786/files

4E Fix warnings for rust 1.87 by coolreader18 · Pull Request #5786 · RustPython/RustPython · GitHub
Skip to content

Fix warnings for rust 1.87 #5786

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

Merged
merged 1 commit into from
May 16, 2025
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions jit/src/instructions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1165,8 +1165,7 @@ impl<'a, 'b> FunctionCompiler<'a, 'b> {

// ----- Merge: Return the final result.
self.builder.switch_to_block(merge_block);
let final_val = self.builder.block_params(merge_block)[0];
final_val
self.builder.block_params(merge_block)[0]
}

fn compile_ipow(&mut self, a: Value, b: Value) -> Value {
Expand Down
8 changes: 7 additions & 1 deletion jit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ pub enum JitCompileError {
#[error("bad bytecode")]
BadBytecode,
#[error("error while compiling to machine code: {0}")]
CraneliftError(#[from] ModuleError),
CraneliftError(Box<ModuleError>),
}

impl From<ModuleError> for JitCompileError {
fn from(err: ModuleError) -> Self {
Self::CraneliftError(Box::new(err))
}
}

#[derive(Debug, thiserror::Error, Eq, PartialEq)]
Expand Down
2 changes: 1 addition & 1 deletion jit/tests/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ impl StackMachine {

pub fn run(&mut self, code: CodeObject) {
let mut oparg_state = OpArgState::default();
code.instructions.iter().try_for_each(|&word| {
let _ = code.instructions.iter().try_for_each(|&word| {
let (instruction, arg) = oparg_state.get(word);
self.process_instruction(instruction, arg, &code.constants, &code.names)
});
Expand Down
Loading








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/RustPython/RustPython/pull/5786/files

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy