-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Stabilize todo macro #61879
Stabilize todo macro #61879
Conversation
r? @dtolnay |
@rfcbot fcp merge Like Stjepan, I've been using |
Team member @withoutboats has proposed to merge this. The next step is review by the rest of the tagged team members: Concerns:
Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
@rfcbot concern plan-for-unimplemented Is there a plan for what to do with |
@alexcrichton Some thoughts on that by @withoutboats: #56348 (comment) The short answer is that we keep |
I don't think its worthwhile to deprecate unimplemented. Many people already use just |
Ok, thanks for the clarification! I'm not a huge fan of having multiple ways to do things like this, but this is basically just a convenience and conversions also are a matter of taste with libstd, so it seems reasonable enough to me. @rfcbot resolve plan-for-unimplemented |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
I think it makes sense that the two macros could have slightly different meanings, in that For example, if in a textbook some detail of an algorithm does not matter for the current consideration, an |
Similar to @alexcrichton I'm not a fan of multiple ways to do something simple like this. Is there really a need for this over something like I feel like having both of these makes it harder for people to track all instances of these macros for not much gain in expressiveness as they now have to know that there's two possibilities, not just one. |
Well, I like prototyping Rust code by defining functions without implementing their bodies, leaving Yes, this can be solved by external crates but I'm not going to add a dependency just for a single shorter macro. And yes, it might be solved by text editor's help but that isn't a solution everywhere (think Rust Playground). So the bottom line is that I'm a human and having the |
Duplication like this makes people learning the library go through the next process
Is this ok? I don't know, probably not a big deal, but I can't say I like it too much. |
On a related note, we really need lints with arguments enabling targeted deprecation (like |
⌛ Testing commit 711f673 with merge b514517937b4ae6e9c9cecf5a791b3788589ff30... |
@bors retry rolled up. |
⌛ Testing commit 711f673 with merge c04eac9f5397e3e81b2645fe06f1c6d80b544303... |
…oats Stabilize todo macro The `todo!` macro is just another name for `unimplemented!`. Tracking issue: rust-lang#59277 This PR needs a FCP to merge. r? @withoutboats
@bors retry rolled up. |
⌛ Testing commit 711f673 with merge 83c354a1446702165e566173a8ace58c44d73be6... |
…oats Stabilize todo macro The `todo!` macro is just another name for `unimplemented!`. Tracking issue: rust-lang#59277 This PR needs a FCP to merge. r? @withoutboats
@bors retry rolled up |
⌛ Testing commit 711f673 with merge 8d67d343c62f4c83506dc81fd34e8107fac0b049... |
…oats Stabilize todo macro The `todo!` macro is just another name for `unimplemented!`. Tracking issue: rust-lang#59277 This PR needs a FCP to merge. r? @withoutboats
@bors retry, rolled up again! |
@bors retry |
Rollup of 11 pull requests Successful merges: - #61879 (Stabilize todo macro) - #64675 (Deprecate `#![plugin]` & `#[plugin_registrar]`) - #64690 (proc_macro API: Expose `macro_rules` hygiene) - #64706 (add regression test for #60218) - #64741 (Prevent rustdoc feature doctests) - #64842 (Disallow Self in type param defaults of ADTs) - #65004 (Replace mentions of IRC with Discord) - #65018 (Set RUST_BACKTRACE=0 in tests that include a backtrace in stderr) - #65055 (Add long error explanation for E0556) - #65056 (Make visit projection iterative) - #65057 (typo: fix typo in E0392) Failed merges: r? @ghost
In any future stabilization PR, please remember to make it close the corresponding tracking issue. Thanks! |
The
todo!
macro is just another name forunimplemented!
.Tracking issue: #59277
This PR needs a FCP to merge.
r? @withoutboats