For E0277 suggest adding Result return type for function which using QuesionMark ? in the body.

This commit is contained in:
surechen
2024-06-09 17:20:25 +08:00
parent f3ff2f16c8
commit 0b3fec9388
7 changed files with 218 additions and 0 deletions

View File

@@ -1010,6 +1010,7 @@ pub struct Block<'hir> {
pub hir_id: HirId,
/// Distinguishes between `unsafe { ... }` and `{ ... }`.
pub rules: BlockCheckMode,
/// The span includes the curly braces `{` and `}` around the block.
pub span: Span,
/// If true, then there may exist `break 'a` values that aim to
/// break out of this block early.