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

Detect stability attributes on methods #8961

Closed
huonw opened this issue Sep 3, 2013 · 0 comments · Fixed by #10990
Closed

Detect stability attributes on methods #8961

huonw opened this issue Sep 3, 2013 · 0 comments · Fixed by #10990
Labels
A-attributes Area: Attributes (`#[…]`, `#![…]`) A-lint Area: Lints (warnings about flaws in source code) such as unused_mut.

Comments

@huonw
Copy link
Member

huonw commented Sep 3, 2013

struct Foo;
impl Foo {
    #[deprecated]
    fn method(&self) {}
}

fn main() {
    Foo.method();
}

doesn't flag the use of method, since method calls are not in the def_map. As discussed in #8921, this will require passing the method_map from typeck into lint (or something along those lines).

(Part of #6875.)

@bors bors closed this as completed in dc65762 Dec 17, 2013
flip1995 pushed a commit to flip1995/rust that referenced this issue Oct 6, 2022
avoid doc-link-with-quotes in code blocks

This fixes rust-lang#8961 by moving the lint into the docs code, thus being able to re-use the pulldown-cmark parser and simplifying the code.

---

changelog: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-attributes Area: Attributes (`#[…]`, `#![…]`) A-lint Area: Lints (warnings about flaws in source code) such as unused_mut.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant