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

Allow registering MIR-passes through compiler plugins #31425

Merged
merged 3 commits into from Feb 9, 2016

Conversation

Projects
None yet
6 participants
@oli-obk
Copy link
Contributor

oli-obk commented Feb 5, 2016

depends on #31324

r? @nagisa

@rust-highfive

This comment has been minimized.

Copy link
Collaborator

rust-highfive commented Feb 5, 2016

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nagisa (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@nagisa

This comment has been minimized.

Copy link
Contributor

nagisa commented Feb 5, 2016

This looks okay to me.

EDIT: r=me once the dependency lands/is r+d.

@bors

This comment has been minimized.

Copy link
Contributor

bors commented Feb 6, 2016

☔️ The latest upstream changes (presumably #31307) made this pull request unmergeable. Please resolve the merge conflicts.

@nagisa

This comment has been minimized.

Copy link
Contributor

nagisa commented Feb 9, 2016

Rebase?

@oli-obk oli-obk force-pushed the oli-obk:mir-pass-plugin branch from 239a313 to 4b06718 Feb 9, 2016

@oli-obk

This comment has been minimized.

Copy link
Contributor Author

oli-obk commented Feb 9, 2016

done

@nagisa

This comment has been minimized.

Copy link
Contributor

nagisa commented Feb 9, 2016

@bors

This comment has been minimized.

Copy link
Contributor

bors commented Feb 9, 2016

⌛️ Testing commit 4b06718 with merge 3ea4605...

bors added a commit that referenced this pull request Feb 9, 2016

@bors

This comment has been minimized.

Copy link
Contributor

bors commented Feb 9, 2016

💔 Test failed - auto-linux-64-opt

@oli-obk

This comment has been minimized.

Copy link
Contributor Author

oli-obk commented Feb 9, 2016

no clue where that error came from:

error: error pattern ' build without -C codegen-units for more exact errors' not found!
status: exit code: 101
command: x86_64-unknown-linux-gnu/stage2/bin/rustc /buildslave/rust-buildbot/slave/auto-linux-64-opt/build/src/test/compile-fail/asm-src-loc-codegen-units.rs -L x86_64-unknown-linux-gnu/test/compile-fail/ --target=x86_64-unknown-linux-gnu -L x86_64-unknown-linux-gnu/test/compile-fail/asm-src-loc-codegen-units.stage2-x86_64-unknown-linux-gnu.compile-fail.libaux -C prefer-dynamic -o x86_64-unknown-linux-gnu/test/compile-fail/asm-src-loc-codegen-units.stage2-x86_64-unknown-linux-gnu --cfg rtopt -C rpath -O -L x86_64-unknown-linux-gnu/rt -C codegen-units=2
stdout:
------------------------------------------

------------------------------------------
stderr:
------------------------------------------
thread 'error: codegen-1<inline asm>:1:2: error: invalid instruction mnemonic 'nowayisthisavalidinstruction'
        nowayisthisavalidinstruction
        ^
' panicked at 'Box<Any>', 
../src/libsyntax/errors/mod.rs:note607: 
build without -C codegen-units for more exact errorsnote: Run with `RUST_BACKTRACE=1` for a backtrace.

error: aborting due to previous error
error: aborting due to worker thread panic

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

thread '[compile-fail] compile-fail/asm-src-loc-codegen-units.rs' panicked at 'explicit panic', /buildslave/rust-buildbot/slave/auto-linux-64-opt/build/src/compiletest/runtest.rs:1527
note: Run with `RUST_BACKTRACE=1` for a backtrace.


failures:
    [compile-fail] compile-fail/asm-src-loc-codegen-units.rs
@nagisa

This comment has been minimized.

Copy link
Contributor

nagisa commented Feb 9, 2016

@bors retry

Seems spurious to me: the error message is 2 different error messages interleaved which makes the actual error we’re looking for invalid.

@arielb1

This comment has been minimized.

Copy link
Contributor

arielb1 commented Feb 9, 2016

@bors retry

@bors

This comment has been minimized.

Copy link
Contributor

bors commented Feb 9, 2016

⌛️ Testing commit 4b06718 with merge 096dbf8...

bors added a commit that referenced this pull request Feb 9, 2016

@bors bors merged commit 4b06718 into rust-lang:master Feb 9, 2016

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@nrc

This comment has been minimized.

Copy link
Member

nrc commented Feb 10, 2016

What is the motivation for this? It would be nice if changes like this could get some discussion - an internals thread, or even an issue being opened beforehand. I feel we have been burnt by llvm plugin passes and don't want to repeat that experience. At the very least this facility should be documented.

@oli-obk oli-obk deleted the oli-obk:mir-pass-plugin branch Feb 10, 2016

@oli-obk

This comment has been minimized.

Copy link
Contributor Author

oli-obk commented Feb 10, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.