diff options
| author | Jubilee <workingjubilee@gmail.com> | 2024-09-11 15:53:22 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-11 15:53:22 -0700 |
| commit | a31a8fe0cf714e7222908ef0808e4ed93149c83c (patch) | |
| tree | e17c42a75c3417719325053abca83851a21c9a2e /compiler/rustc_const_eval/src | |
| parent | c4488c49dee640a79eee3535a80edca0ba0bc926 (diff) | |
| parent | 0b20ffcb63b00acbbe70ae6f59a746bcde4c8b96 (diff) | |
| download | rust-a31a8fe0cf714e7222908ef0808e4ed93149c83c.tar.gz rust-a31a8fe0cf714e7222908ef0808e4ed93149c83c.zip | |
Rollup merge of #130114 - eduardosm:needless-returns, r=compiler-errors
Remove needless returns detected by clippy in the compiler
Diffstat (limited to 'compiler/rustc_const_eval/src')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/call.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/call.rs b/compiler/rustc_const_eval/src/interpret/call.rs index 568a9a3a637..419d412b063 100644 --- a/compiler/rustc_const_eval/src/interpret/call.rs +++ b/compiler/rustc_const_eval/src/interpret/call.rs @@ -235,13 +235,13 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> { if self.layout_compat(caller_abi.layout, callee_abi.layout)? { // Ensure that our checks imply actual ABI compatibility for this concrete call. assert!(caller_abi.eq_abi(callee_abi)); - return Ok(true); + Ok(true) } else { trace!( "check_argument_compat: incompatible ABIs:\ncaller: {:?}\ncallee: {:?}", caller_abi, callee_abi ); - return Ok(false); + Ok(false) } } |
