Skip to main content

describe_question_at

Function describe_question_at 

Source
pub fn describe_question_at(
    text: &str,
    offset: usize,
    expr_types: &[(Span, TyId)],
    tys: &Types,
) -> Option<String>
Expand description

#2839: hover on the ? of an Option value. An Option is only liftable by ? inside a handler returning HttpResult (ADR 0177), so an Option operand means None answers 404 NotFound: the hover says so, and points at let … else for any other status. A ? on a Result is not described.