Skip to content

Move helper function for missing_const_for_fn out of rustc to clippy - #77231

Merged
bors merged 2 commits into
rust-lang:masterfrom
oli-obk:clippy_const_fn
Sep 27, 2020
Merged

Move helper function for missing_const_for_fn out of rustc to clippy#77231
bors merged 2 commits into
rust-lang:masterfrom
oli-obk:clippy_const_fn

Conversation

@oli-obk

Copy link
Copy Markdown
Contributor

cc @rust-lang/clippy @ecstatic-morse#76618

r? @Manishearth

I also removed all support for suggesting a function could be const fn when that would require feature gates to actually work.

This means we'll now have to maintain this ourselves in clippy, but that's how most lints work anyway, so...

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 26, 2020
@Manishearth

Copy link
Copy Markdown
Member

@bors r+

@bors

bors commented Sep 26, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit 5d359db has been approved by Manishearth

@borsbors 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 Sep 26, 2020
This was referenced Sep 26, 2020
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 27, 2020
…as-schievink
Rollup of 10 pull requests
Successful merges:
- rust-lang#76917 (Add missing code examples on HashMap types)
- rust-lang#77107 (Enable const propagation into operands at mir_opt_level=2)
- rust-lang#77129 (Update cargo)
- rust-lang#77167 (Fix FIXME in core::num test: Check sign of zero in min/max tests.)
- rust-lang#77184 (Rust vec bench import specific rand::RngCore)
- rust-lang#77208 (Late link args order)
- rust-lang#77209 (Fix documentation highlighting in ty::BorrowKind)
- rust-lang#77231 (Move helper function for `missing_const_for_fn` out of rustc to clippy)
- rust-lang#77235 (pretty-print-reparse hack: Rename some variables for clarity)
- rust-lang#77243 (Test more attributes in test issue-75930-derive-cfg.rs)
Failed merges:
r? `@ghost`
@bors
bors merged commit aa35c52 into rust-lang:masterSep 27, 2020
@rustbotrustbot added this to the 1.48.0 milestone Sep 27, 2020
@oli-obk
oli-obk deleted the clippy_const_fn branch September 27, 2020 08:04
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: 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.

5 participants

@oli-obk@Manishearth@bors@rust-highfive@rustbot