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

Tracking Issue for NOOP_METHOD_CALL lint #83099

Open
2 of 4 tasks
Aaron1011 opened this issue Mar 13, 2021 · 2 comments
Open
2 of 4 tasks

Tracking Issue for NOOP_METHOD_CALL lint #83099

Aaron1011 opened this issue Mar 13, 2021 · 2 comments
Labels
A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC S-tracking-impl-incomplete Status: The implementation is incomplete. T-lang Relevant to the language team, which will review and decide on the PR/issue.

Comments

@Aaron1011
Copy link
Member

Aaron1011 commented Mar 13, 2021

This is a tracking issue for the NOOP_METHOD_CALL lint (rust-lang/lang-team#67)

About tracking issues

Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.

Steps

Known issues:

Unresolved Questions

  • Should we lint when a method is called via UFCS? This could be interpreted as the user explicitly choosing to call a no-op method.
  • Should we allow external crates to mark their own methods as being 'noop-ops', so that this lint can fire on third-party methods?

Implementation history

@Aaron1011 Aaron1011 added A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. T-lang Relevant to the language team, which will review and decide on the PR/issue. C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC labels Mar 13, 2021
@joshtriplett joshtriplett added the S-tracking-impl-incomplete Status: The implementation is incomplete. label Jul 20, 2022
@safinaskar
Copy link
Contributor

It seems the lint intersects with suspicious_double_ref_op ( https://doc.rust-lang.org/beta/nightly-rustc/rustc_lint/noop_method_call/static.SUSPICIOUS_DOUBLE_REF_OP.html )

@safinaskar
Copy link
Contributor

Also, it seems NOOP_METHOD_CALL is now warn-by-default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC S-tracking-impl-incomplete Status: The implementation is incomplete. T-lang Relevant to the language team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants