CodeQL library for Rust
codeql/rust-all 0.1.13 (changelog, source)
Search

Member predicate Impl::Variable::getPat

Gets the pattern that declares this variable, if any.

Normally, the pattern is unique, except when introduced in an or pattern:

match either {
   Either::Left(x) | Either::Right(x) => println!(x),
}
IdentPat getPat()