Skip to content

Remove FIXME on ExtCtxt::fn_decl() #97478

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
May 29, 2022
Merged

Conversation

JohnTitor
Copy link
Member

ExtCtxt::fn_decl() is used like self.fn_decl(..) or self.cx.fn_decl(..), coverting it to an assoc fn, for example, makes it inconvenience (e.g. self.cx.fn_decl(..) would be longer to represent). Given that, it doesn't seem a "FIXME" thing and unused self is okay, I think.

@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label May 28, 2022
@rust-highfive
Copy link
Contributor

r? @compiler-errors

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 28, 2022
@compiler-errors
Copy link
Member

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented May 28, 2022

📌 Commit 643c508 has been approved by compiler-errors

@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 May 28, 2022
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request May 28, 2022
…-errors

Remove FIXME on `ExtCtxt::fn_decl()`

`ExtCtxt::fn_decl()` is used like `self.fn_decl(..)` or `self.cx.fn_decl(..)`, coverting it to an assoc fn, for example, makes it inconvenience (e.g. `self.cx.fn_decl(..)` would be longer to represent). Given that, it doesn't seem a "FIXME" thing and unused `self` is okay, I think.
bors added a commit to rust-lang-ci/rust that referenced this pull request May 29, 2022
…laumeGomez

Rollup of 5 pull requests

Successful merges:

 - rust-lang#96950 (Add regression test for rust-lang#96395)
 - rust-lang#97028 (Add support for embedding pretty printers via `#[debugger_visualizer]` attribute)
 - rust-lang#97478 (Remove FIXME on `ExtCtxt::fn_decl()`)
 - rust-lang#97479 (Make some tests check-pass)
 - rust-lang#97482 (ptr::invalid is not equivalent to a int2ptr cast)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit a777d50 into rust-lang:master May 29, 2022
@rustbot rustbot added this to the 1.63.0 milestone May 29, 2022
@JohnTitor JohnTitor deleted the fixme-fn-decl branch May 29, 2022 03:04
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants