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

[LLVM 4.0] OptimizationDiagnostic FFI forward compatibility #37982

Merged
merged 1 commit into from
Nov 25, 2016

Conversation

hanna-kruppe
Copy link
Contributor

@hanna-kruppe hanna-kruppe commented Nov 24, 2016

  • getMsg() changed to return std::string by-value. Fix: copy the data to a rust String during unpacking.
  • getPassName() changed to return StringRef

cc #37609

- getMsg() changed to return std::string by-value. Fix: copy the data to a rust String during unpacking.
- getPassName() changed to return StringRef
@rust-highfive
Copy link
Contributor

r? @pnkfelix

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

@hanna-kruppe hanna-kruppe changed the title Support LLVM 4.0 in OptimizationDiagnostic FFI [LLVM 4.0] OptimizationDiagnostic FFI forward compatibility Nov 24, 2016
@hanna-kruppe
Copy link
Contributor Author

There don't seem to be any tests for rustc -C remark, so I tested manually on a hello world file. It seems to work but please be extra careful during review.

@alexcrichton
Copy link
Member

@bors: r+

Thanks!

This seems like the API we'd chuck at any time if it's never used...

@bors
Copy link
Collaborator

bors commented Nov 24, 2016

📌 Commit 7304001 has been approved by alexcrichton

@bors
Copy link
Collaborator

bors commented Nov 25, 2016

⌛ Testing commit 7304001 with merge ebc0373...

bors added a commit that referenced this pull request Nov 25, 2016
[LLVM 4.0] OptimizationDiagnostic FFI forward compatibility

- getMsg() changed to return std::string by-value. Fix: copy the data to a rust String during unpacking.
- getPassName() changed to return StringRef

cc #37609
@bors bors merged commit 7304001 into rust-lang:master Nov 25, 2016
@shepmaster shepmaster mentioned this pull request Dec 1, 2016
23 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants