-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
don't evaluate constants if borrowck fails #86325
Conversation
This comment has been minimized.
This comment has been minimized.
^^" |
can you make compiler/rustc_data_structures/src/steal.rs:37:21 track_caller and procure a backtrace on the ICE? i think it's promoted related, but i don't get how |
|
Backtrace
|
i blame rust/compiler/rustc_middle/src/query/mod.rs Lines 748 to 751 in 2336406
rust/compiler/rustc_middle/src/query/mod.rs Lines 323 to 334 in 2336406
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
a772f65
to
e4f9d1f
Compare
This comment has been minimized.
This comment has been minimized.
this PR has kind of made these two tests not really test anything 😅 |
Triage: |
iirc we have some infrastructure to debug query problems such as this. Maybe check the -Z flags for anything that sounds very verbose for incremental or queries or red/green? |
☔ The latest upstream changes (presumably #87123) made this pull request unmergeable. Please resolve the merge conflicts. |
@@ -214,6 +214,7 @@ pub struct BorrowCheckResult<'tcx> { | |||
pub concrete_opaque_types: VecMap<OpaqueTypeKey<'tcx>, Ty<'tcx>>, | |||
pub closure_requirements: Option<ClosureRegionRequirements<'tcx>>, | |||
pub used_mut_upvars: SmallVec<[Field; 8]>, | |||
pub errored: bool, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm tempted to suggest making the mir_borrowck
query return Result<BorrowCheckResult, ErrorReported>
- I don't know if that would regress anything, but if there are any errors I wouldn't want to trust the other fields tbh.
triage: @BoxyUwU What's the status of this? |
gonna just close this since i havent done anything with this PR in so long |
fixes the ice in #69487 comment
#83531 still ICEs but with a different error
r? @oli-obk