Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upDont run ast borrowck on mir mode #52083
Conversation
rust-highfive
assigned
nikomatsakis
Jul 5, 2018
rust-highfive
added
the
S-waiting-on-review
label
Jul 5, 2018
This comment has been minimized.
This comment has been minimized.
|
@bors try |
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Jul 5, 2018
nikomatsakis
requested changes
Jul 5, 2018
|
Looks great. One nit. |
| @@ -89,6 +90,8 @@ pub struct AnalysisData<'a, 'tcx: 'a> { | |||
| fn borrowck<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, owner_def_id: DefId) | |||
| -> Lrc<BorrowCheckResult> | |||
| { | |||
| assert!(tcx.borrowck_mode() != BorrowckMode::Mir); | |||
This comment has been minimized.
This comment has been minimized.
nikomatsakis
Jul 5, 2018
Contributor
Nit: I would do
assert!(match tcx.borrowck_mode() {
BorrowckMode::Mir => false,
BorrowckMode::Ast => true,
// etc
});i.e., spell out all the cases. That way, when we change the enum (as we plan to soon) we can be sure it is all correct.
spastorino
force-pushed the
spastorino:dont-run-ast-borrowck-on-mir-mode
branch
from
48765de
to
79fb702
Jul 5, 2018
This comment was marked as outdated.
This comment was marked as outdated.
|
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
kennytm
added
the
S-waiting-on-perf
label
Jul 5, 2018
Mark-Simulacrum
added
S-waiting-on-author
and removed
S-waiting-on-perf
labels
Jul 5, 2018
This comment has been minimized.
This comment has been minimized.
|
Try build failed; this needs a fix before perf can go forward. |
This comment has been minimized.
This comment has been minimized.
|
Wait, no, I misinterpreted the log. Ignore previous message. |
Mark-Simulacrum
added
S-waiting-on-perf
and removed
S-waiting-on-author
labels
Jul 5, 2018
spastorino
force-pushed the
spastorino:dont-run-ast-borrowck-on-mir-mode
branch
from
79fb702
to
25266c1
Jul 5, 2018
This comment was marked as resolved.
This comment was marked as resolved.
|
Trying out the new bot: @rust-timer build b27d9cf |
This comment was marked as resolved.
This comment was marked as resolved.
rust-timer
commented
Jul 5, 2018
|
Insufficient permissions to issue commands to rust-timer. |
This comment was marked as resolved.
This comment was marked as resolved.
|
@rust-timer build b27d9cf |
This comment was marked as resolved.
This comment was marked as resolved.
rust-timer
commented
Jul 5, 2018
|
Insufficient permissions to issue commands to rust-timer. |
This comment was marked as resolved.
This comment was marked as resolved.
|
@rust-timer build b27d9cf |
This comment was marked as resolved.
This comment was marked as resolved.
rust-timer
commented
Jul 5, 2018
|
Please provide the full 40 character commit hash. |
This comment was marked as resolved.
This comment was marked as resolved.
|
@rust-timer build b27d9cf |
This comment was marked as resolved.
This comment was marked as resolved.
rust-timer
commented
Jul 5, 2018
|
Bors try commit b27d9cf unexpectedly has 2 parents. |
This comment has been minimized.
This comment has been minimized.
|
@rust-timer build b27d9cf |
This comment has been minimized.
This comment has been minimized.
rust-timer
commented
Jul 5, 2018
|
Success: Queued b27d9cf with parent 94eb176, comparison URL. |
This comment has been minimized.
This comment has been minimized.
|
@bors r+ |
This comment has been minimized.
This comment has been minimized.
|
|
bors
added
S-waiting-on-bors
and removed
S-waiting-on-review
labels
Jul 5, 2018
kennytm
removed
the
S-waiting-on-perf
label
Jul 6, 2018
nikomatsakis
referenced this pull request
Jul 6, 2018
Closed
Want `-Z borrowck=migrate` to test planning migration to non-lexical lifetimes #46908
Mark-Simulacrum
added a commit
to Mark-Simulacrum/rust
that referenced
this pull request
Jul 7, 2018
bors
added a commit
that referenced
this pull request
Jul 7, 2018
bors
merged commit 25266c1
into
rust-lang:master
Jul 7, 2018
1 check passed
This comment has been minimized.
This comment has been minimized.
|
This was a decent win for performance, speeding up several NLL benchmarks, the best by 9%: We now have apples-to-apples comparisons between the old and new borrow checkers, and the NLL dashboard shows that the new borrow checker is substantially slower. "Check" builds of most benchmarks are at least 10% slower, and two (tuple-stress and html5ever) are still as much as 20x slower; html5ever also has very high memory usage. (#52028) |
spastorino commentedJul 5, 2018
r? @nikomatsakis