Skip to content

[LLVM 4.0] OptimizationDiagnostic FFI forward compatibility#37982

Merged
bors merged 1 commit into
rust-lang:masterfrom
hanna-kruppe:llvm-diagnostic-fwdcompat
Nov 25, 2016
Merged

[LLVM 4.0] OptimizationDiagnostic FFI forward compatibility#37982
bors merged 1 commit into
rust-lang:masterfrom
hanna-kruppe:llvm-diagnostic-fwdcompat

Conversation

@hanna-kruppe

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

Copy link
Copy Markdown
Contributor
  • 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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

@bors: r+

Thanks!

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

@bors

bors commented Nov 24, 2016

Copy link
Copy Markdown
Collaborator

📌 Commit 7304001 has been approved by alexcrichton

@bors

bors commented Nov 25, 2016

Copy link
Copy Markdown
Collaborator

⌛ 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
@hanna-kruppe hanna-kruppe deleted the llvm-diagnostic-fwdcompat branch February 2, 2026 22:15
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