Skip to content

warnings should provide guidance (e.g. a url or search term) for where one can learn more #181

Open
@pnkfelix

Description

@pnkfelix

Looking at the self-wake warning, I wondered to myself "how would I know, as someone learning about async rust, why this is a symptom of a problem?"

I'm not even sure I can explain it to someone else. My current thinking goes along the lines of "you're supposed to use async code for stuff where you spend your time waiting for something else to happen. If you're waking yourself up, then that's a sign that you aren't waiting on some other resource." -- to which I can imagine the response "okay. why is that bad?"

Anyway, I don't want this issue to turn into a debate about whether self-wake should be a warning or not (I think its fine that it is). But I do think we need a path for someone who wants to learn more to do self-directed investigation, without having to e.g. join to the Discord and ask for someone there to explain it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-warningsArea: warningsS-featureSeverity: feature. This is adding a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions