-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Do not intern filemap to entry w/ mismatched length. #37449
Conversation
r? @eddyb (rust_highfive has picked a reviewer for you, use r? to override) |
@@ -1193,6 +1207,10 @@ impl<'a, 'tcx> CrateMetadata { | |||
} | |||
|
|||
fn are_equal_modulo_startpos(fm1: &syntax_pos::FileMap, fm2: &syntax_pos::FileMap) -> 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.
(maybe we should move this to a method on FileMap
, the idea being that future modifications to FileMap
, such as adding new fields, would know to update the method accordingly. But that can wait for a future PR; I prefer to keep this one minimal.)
@bors r+ |
📌 Commit 3f639a0 has been approved by |
@bors p=7 This blocks Servo. |
⌛ Testing commit 3f639a0 with merge 9dbc147... |
💔 Test failed - auto-linux-64-opt |
Confirming: I’ve managed to build servo/servo#13813 (which is blocked on this ICE) with a rustc from this PR. |
|
|
@bors: retry |
Do not intern filemap to entry w/ mismatched length. Do not intern filemap to entry w/ mismatched length. Fix #37274 (I think). Beta-nominated; note that only the second commit needs to be cherry picked to beta branch. (The first just adds some debug instrumentation that I wish had been present.)
Seems like a low-risk backport. |
Approving for beta backport: appears to be super low risk. cc @rust-lang/compiler |
Do not intern filemap to entry w/ mismatched length.
Fix #37274 (I think).
Beta-nominated; note that only the second commit needs to be cherry picked to beta branch. (The first just adds some debug instrumentation that I wish had been present.)