Skip to content

add type name to tydesc + minor repr improvement - #8947

Closed
thestinger wants to merge 2 commits into
rust-lang:masterfrom
thestinger:name
Closed

add type name to tydesc + minor repr improvement#8947
thestinger wants to merge 2 commits into
rust-lang:masterfrom
thestinger:name

Conversation

@thestinger

Copy link
Copy Markdown
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.
@borsbors 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` (?)
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
8947: Correctly resolve crate name in use paths when import shadows it r=Veykril a=Veykril
Fixesrust-lang#7763
bors r+
Co-authored-by: Lukas Tobias Wirth <lukastw97@gmail.com>
Sign up for freeto 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.

2 participants

@thestinger@bors