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

add type name to tydesc + minor repr improvement #8947

Closed
wants to merge 2 commits into from
Closed

add type name to tydesc + minor repr improvement #8947

wants to merge 2 commits into from

Conversation

thestinger
Copy link
Contributor

Storing the type name in the tydesc aims to avoid the need to pass a type name in almost every single visitor method.

It would likely be much saner for repr to simply be passed the TyDesc corresponding to the function or just the type name, but this is good enough for now.

bors added a commit that referenced this pull request Sep 3, 2013
Storing the type name in the `tydesc` aims to avoid the need to pass a type name in almost every single visitor method.

It would likely be much saner for `repr` to simply be passed the `TyDesc` corresponding to the function or just the type name, but this is good enough for now.
@bors bors closed this Sep 3, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jun 16, 2022
…ednet

Add lint output to lint list

changelog: Add the ability to show the lint output in the lint list

This just adds the logic to produce the output, it hasn't been added to any lints yet. It did help find some mistakes in some docs though 😄.

### Screenshots

<details>
<summary>A single code block</summary>

![single-code-block](https://user-images.githubusercontent.com/69764315/172013766-145b22b1-1d91-4fb8-9cd0-b967a52d6330.png)
</details>

<details>
<summary>A single code block with a "Use instead" section</summary>

![with-usage](https://user-images.githubusercontent.com/69764315/172013792-d2dd6c9c-defa-41e0-8c27-8e8e311adb63.png)
</details>

<details>
<summary>Multiple code blocks</summary>

![multi-code-block](https://user-images.githubusercontent.com/69764315/172013808-5328f59b-e7c5-4914-a396-253822a6d350.png)
</details>

This is the last task in rust-lang#7172 🎉.
r? `@xFrednet` (?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants