You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: redundant_pattern_matching_poll.rs
    path of file: ./repos/rust-clippy/tests/ui
    
    the code of the file until where you have to start completion: #![warn(clippy::all)]
#![warn(clippy::redundant_pattern_matching)]
#![allow(
    unused_must_use,
    clippy::needless_bool,
    clippy::needless_if,
    clippy::match_like_matches_macro,
    clippy::equatable_if_let,
    clippy:
    
fn main() {
    if let Pending = Pending::<()> {}

    if let Ready(_) = Ready(42) {}

    if let Ready(_) = Ready(42) {
        foo();
    } else {
        bar();
    }

    // Issue 6459
    if matches!(Ready(42), Ready(_)) {}

    // Issue 6459
    if matches!(Pending::<()>, Pending) {}

    while let Ready(_) = Ready(42) {}

    while let Pending = Ready(42) {}

    while let Pending = Pending::<()> {}

    if Pending::<i32>.is_pending() {}

    if Ready(42).is_ready() {}

    match Ready(42) {
        Ready(_) => true,
        Pending => false,
    };

    match Pending::<()> {
        Ready(_) => false,
        Pending => true,
    };

    let _ = match Pending::<()> {
        Ready(_) => false,
        Pending => true,
    };

    let poll = Ready(false);
    let _ = if let Ready(_) = poll { true } else { false };

    poll_const();

    let _ = if let Ready(_) = gen_poll() {
        1
    } else if let Pending = gen_poll() {
        2
    } else {
        3
    };
}