Skip to content

Rename std::util::ignore to std::util::drop - #10783

Merged
bors merged 1 commit into
rust-lang:masterfrom
sfackler:drop
Dec 4, 2013
Merged

Rename std::util::ignore to std::util::drop#10783
bors merged 1 commit into
rust-lang:masterfrom
sfackler:drop

Conversation

@sfackler

@sfackler sfackler commented Dec 3, 2013

Copy link
Copy Markdown
Member

It's a more fitting name for the most common use case of this function.

@alexcrichton

Copy link
Copy Markdown
Member

I think that we want to remove std::util, and there was talk of moving this function to the prelude directly.

I don't think we ever had an official consensus, but now may be as good a time as any. Do others have opinions on moving this function to the prelude? (I would be in favor).

@liigo

liigo commented Dec 3, 2013

Copy link
Copy Markdown
Contributor

+1

@pcwalton

pcwalton commented Dec 3, 2013

Copy link
Copy Markdown
Contributor

+1 on everything suggested by @alexcrichton

It's a more fitting name for the most common use case of this function.
bors added a commit that referenced this pull request Dec 4, 2013
It's a more fitting name for the most common use case of this function.
@bors bors closed this Dec 4, 2013
@bors
bors merged commit a243360 into rust-lang:master Dec 4, 2013
@sfackler
sfackler deleted the drop branch December 23, 2013 03:52
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
10785: ide: show const value in hover r=jhgg a=jhgg

fixes rust-lang#10783

I think my original attempt was incorrect, because it looks like `HirDisplay` is used in more places than just the hover.  

So, I've attempted it again in 312eafe, this time specifically just rendering the value in `hover::render`

pictoral:

![image](https://user-images.githubusercontent.com/5489149/142163890-b6aa2ab4-7bd0-4dd3-b35d-5eaa83fffb7f.png)


Co-authored-by: Jake Heinz <jh@discordapp.com>
Co-authored-by: Jake <jh@discordapp.com>
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.

5 participants