]> git.lizzy.rs Git - rust.git/commit
Helper method for whether type has structural equality
authorDylan MacKenzie <ecstaticmorse@gmail.com>
Wed, 13 May 2020 20:40:22 +0000 (13:40 -0700)
committerDylan MacKenzie <ecstaticmorse@gmail.com>
Fri, 12 Jun 2020 15:50:17 +0000 (08:50 -0700)
commitbd4bd59ad7946f0717f1babb38a971b608fe4f3b
tree66b47f3b9e00b9c767164e102be67ee4f2153d38
parent50c0192c64241d723066add22c53d472e2b9cba9
Helper method for whether type has structural equality

This helper method works for all types, falling back to a query for
`TyKind::Adt`s to determine whether the implement the
`{Partial,}StructuralEq` traits.
src/librustc_middle/query/mod.rs
src/librustc_middle/ty/util.rs
src/librustc_mir/transform/check_consts/qualifs.rs
src/librustc_mir_build/hair/pattern/const_to_pat.rs
src/librustc_trait_selection/traits/mod.rs
src/librustc_trait_selection/traits/structural_match.rs