Skip to content

Commit b455e43

Browse files
committed
Clarify when None is returned in cast_immediate function.
1 parent 832ccdc commit b455e43

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_codegen_ssa/src/mir/rvalue.rs

+2
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,8 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
282282

283283
/// Cast one of the immediates from an [`OperandValue::Immediate`]
284284
/// or an [`OperandValue::Pair`] to an immediate of the target type.
285+
///
286+
/// Returns `None` if the cast is not possible.
285287
fn cast_immediate(
286288
&self,
287289
bx: &mut Bx,

0 commit comments

Comments
 (0)