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

Constify Result #67685

Merged
merged 1 commit into from
Dec 31, 2019
Merged

Constify Result #67685

merged 1 commit into from
Dec 31, 2019

Conversation

lukaslueg
Copy link
Contributor

r? @oli-obk

This is just the Result-part of #67494 which I'll resubmit once #66254 has landed.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 28, 2019
@oli-obk
Copy link
Contributor

oli-obk commented Dec 29, 2019

So... while this is very const eval related, it's also T-libs. I'm not sure how to take these PRs. @rust-lang/libs are you ok with me r+ing PRs that make functions const if and only if the constness is unstable?

Some of these even use features that prevent the const fn from being made stable without also adding an allow_internal_unstable attribute, which @Centril and I would be very happy to be pinged on if allow_internal_unstable is added anywhere. But without stabilizing the constness, making a function const fn has no stability concerns at all.

@dtolnay
Copy link
Member

dtolnay commented Dec 29, 2019

@oli-obk, yes I think you should feel free to r+ PRs that add unstable constness to the standard library.

@oli-obk
Copy link
Contributor

oli-obk commented Dec 29, 2019

ok cool, thx

@bors r+

@bors
Copy link
Contributor

bors commented Dec 29, 2019

📌 Commit ccaad2e5bce79a87178d5b8ba442bc666f99cc65 has been approved by oli-obk

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 29, 2019
@oli-obk
Copy link
Contributor

oli-obk commented Dec 29, 2019

huh? Why did you force push?

@oli-obk
Copy link
Contributor

oli-obk commented Dec 29, 2019

also ccing #67520 here so the issue knows about this PR

@lukaslueg
Copy link
Contributor Author

lukaslueg commented Dec 29, 2019 via email

@oli-obk
Copy link
Contributor

oli-obk commented Dec 30, 2019

@bors r+

@bors
Copy link
Contributor

bors commented Dec 30, 2019

📌 Commit a145b80 has been approved by oli-obk

Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Dec 31, 2019
Constify Result

r? @oli-obk

This is just the `Result`-part of rust-lang#67494 which I'll resubmit once rust-lang#66254 has landed.
@Dylan-DPC-zz
Copy link

Failed in rollup.

@bors r-

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Dec 31, 2019
@lukaslueg
Copy link
Contributor Author

rebased

@Dylan-DPC-zz
Copy link

@bors r=oli-obk

@bors
Copy link
Contributor

bors commented Dec 31, 2019

📌 Commit 954c432 has been approved by oli-obk

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Dec 31, 2019
Centril added a commit to Centril/rust that referenced this pull request Dec 31, 2019
Constify Result

r? @oli-obk

This is just the `Result`-part of rust-lang#67494 which I'll resubmit once rust-lang#66254 has landed.
bors added a commit that referenced this pull request Dec 31, 2019
Rollup of 6 pull requests

Successful merges:

 - #67574 (Extract `rustc_ast_lowering` crate from `rustc`)
 - #67685 (Constify Result)
 - #67702 (Add symbol normalization for proc_macro_server.)
 - #67730 (Cleanup pattern type checking, fix diagnostics bugs (+ improvements))
 - #67744 (parser: reduce diversity in error handling mechanisms)
 - #67748 (Use function attribute "frame-pointer" instead of "no-frame-pointer-elim")

Failed merges:

r? @ghost
@bors bors merged commit 954c432 into rust-lang:master Dec 31, 2019
@lukaslueg lukaslueg deleted the const_result branch December 31, 2019 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants