Auto merge of #78809 - vn-ki:fix-issue-76064, r=oli-obk
add error_occured field to ConstQualifs, fix #76064 I wasn't sure what `in_return_place` actually did and not sure why it returns `ConstQualifs` while it's sibling functions return `bool`. So I tried to make as minimal changes to the structure as possible. Please point out whether I have to refactor it or not. r? `@oli-obk` cc `@RalfJung`
This commit is contained in:
commit
98d66340d6
29 changed files with 78 additions and 157 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: Option<ErrorReported>,
|
||||
}
|
||||
|
||||
/// After we borrow check a closure, we are left with various
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue