1
Fork 0

add error_occured field to ConstQualifs, fix #76064

This commit is contained in:
Vishnunarayan K I 2020-11-06 20:46:38 +05:30
parent 7f5a42b073
commit 8bce9af78c
6 changed files with 30 additions and 6 deletions

View file

@ -233,14 +233,15 @@ pub struct BorrowCheckResult<'tcx> {
/// The result of the `mir_const_qualif` query.
///
/// Each field corresponds to an implementer of the `Qualif` trait in
/// `librustc_mir/transform/check_consts/qualifs.rs`. See that file for more information on each
/// Each field (except `error_occured`) corresponds to an implementer of the `Qualif` trait in
/// `rustc_mir/src/transform/check_consts/qualifs.rs`. See that file for more information on each
/// `Qualif`.
#[derive(Clone, Copy, Debug, Default, TyEncodable, TyDecodable, HashStable)]
pub struct ConstQualifs {
pub has_mut_interior: bool,
pub needs_drop: bool,
pub custom_eq: bool,
pub error_occured: bool,
}
/// After we borrow check a closure, we are left with various