Skip to content
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

Merged
merged 2 commits into from
Oct 29, 2016

Conversation

pnkfelix
Copy link
Member

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.)

@rust-highfive
Copy link
Collaborator

r? @eddyb

(rust_highfive has picked a reviewer for you, use r? to override)

@pnkfelix pnkfelix added T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. beta-nominated Nominated for backporting to the compiler in the beta channel. labels Oct 28, 2016
@@ -1193,6 +1207,10 @@ impl<'a, 'tcx> CrateMetadata {
}

fn are_equal_modulo_startpos(fm1: &syntax_pos::FileMap, fm2: &syntax_pos::FileMap) -> bool {
Copy link
Member Author

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.)

@eddyb
Copy link
Member

eddyb commented Oct 28, 2016

@bors r+

@bors
Copy link
Contributor

bors commented Oct 28, 2016

📌 Commit 3f639a0 has been approved by eddyb

@eddyb
Copy link
Member

eddyb commented Oct 29, 2016

@bors p=7 This blocks Servo.

@bors
Copy link
Contributor

bors commented Oct 29, 2016

⌛ Testing commit 3f639a0 with merge 9dbc147...

@bors
Copy link
Contributor

bors commented Oct 29, 2016

💔 Test failed - auto-linux-64-opt

@SimonSapin
Copy link
Contributor

Confirming: I’ve managed to build servo/servo#13813 (which is blocked on this ICE) with a rustc from this PR.

@SimonSapin
Copy link
Contributor

failures:

---- [codegen-units] codegen-units/partitioning/local-inlining.rs stdout ----

error: compilation failed!
status: exit code: 101
command: x86_64-unknown-linux-gnu/stage2/bin/rustc /buildslave/rust-buildbot/slave/auto-linux-64-opt/build/src/test/codegen-units/partitioning/local-inlining.rs -L x86_64-unknown-linux-gnu/test/codegen-units/ --target=x86_64-unknown-linux-gnu -L x86_64-unknown-linux-gnu/test/codegen-units/partitioning/local-inlining.stage2-x86_64-unknown-linux-gnu.codegen-units.libaux -C prefer-dynamic -o x86_64-unknown-linux-gnu/test/codegen-units/partitioning/local-inlining.stage2-x86_64-unknown-linux-gnu --cfg rtopt -C rpath -O -L x86_64-unknown-linux-gnu/rt -Zprint-trans-items=lazy -Zincremental=tmp/partitioning-tests/local-inlining
stdout:
------------------------------------------

------------------------------------------
stderr:
------------------------------------------
error: Could not create incremental compilation crate directory `tmp/partitioning-tests/local-inlining/local_inlining-4pp8dn3374zr`: No such file or directory (os error 2)

error: aborting due to previous error


------------------------------------------

thread '[codegen-units] codegen-units/partitioning/local-inlining.rs' panicked at 'explicit panic', /buildslave/rust-buildbot/slave/auto-linux-64-opt/build/src/tools/compiletest/src/runtest.rs:2377
note: Run with `RUST_BACKTRACE=1` for a backtrace.


failures:
    [codegen-units] codegen-units/partitioning/local-inlining.rs

test result: FAILED. 31 passed; 1 failed; 3 ignored; 0 measured

thread 'main' panicked at 'Some tests failed', /buildslave/rust-buildbot/slave/auto-linux-64-opt/build/src/tools/compiletest/src/main.rs:298
/buildslave/rust-buildbot/slave/auto-linux-64-opt/build/mk/tests.mk:771: recipe for target 'tmp/check-stage2-T-x86_64-unknown-linux-gnu-H-x86_64-unknown-linux-gnu-codegen-units.ok' failed
make: *** [tmp/check-stage2-T-x86_64-unknown-linux-gnu-H-x86_64-unknown-linux-gnu-codegen-units.ok] Error 101

@SimonSapin
Copy link
Contributor

SimonSapin commented Oct 29, 2016

make tmp/check-stage2-T-x86_64-unknown-linux-gnu-H-x86_64-unknown-linux-gnu-codegen-units.ok succeeds for me locally, so this might be an intermittent failure.

@alexcrichton
Copy link
Member

@bors: retry

@bors
Copy link
Contributor

bors commented Oct 29, 2016

⌛ Testing commit 3f639a0 with merge 69d364b...

bors added a commit that referenced this pull request Oct 29, 2016
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.)
@bors bors merged commit 3f639a0 into rust-lang:master Oct 29, 2016
@brson
Copy link
Contributor

brson commented Nov 3, 2016

Seems like a low-risk backport.

@brson brson mentioned this pull request Nov 3, 2016
@nikomatsakis nikomatsakis added the beta-accepted Accepted for backporting to the compiler in the beta channel. label Nov 3, 2016
@nikomatsakis
Copy link
Contributor

Approving for beta backport: appears to be super low risk.

cc @rust-lang/compiler

@brson brson removed the beta-nominated Nominated for backporting to the compiler in the beta channel. label Nov 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta-accepted Accepted for backporting to the compiler in the beta channel. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants