add error_occured field to ConstQualifs, fix #76064
This commit is contained in:
parent
7f5a42b073
commit
8bce9af78c
6 changed files with 30 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue