Uh oh!
There was an error while loading. Please reload this page.
Remove is_spotlight field from Trait - #80914
Conversation
d20dfd5 to
19d6700CompareUh oh!
There was an error while loading. Please reload this page.
7254d97 to
2ef594dComparejyn514
commented
Jan 12, 2021
@camelid would you like to review? |
camelid
commented
Jan 12, 2021
@jyn514 Thanks for giving me the opportunity to review! :) I'll give it a look, but it's probably still a good idea for you to take a look as well since I'm still learning the intricacies of rustdoc. |
camelid
commented
Jan 12, 2021
(Marking as blocked on #80883.) |
camelid
left a comment
There was a problem hiding this comment.
Is this field being removed because it's only used in one place and we don't want to pile stuff onto clean::Trait?
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
bors
commented
Jan 21, 2021
☔ The latest upstream changes (presumably #81240) made this pull request unmergeable. Please resolve the merge conflicts. |
…n514 Remove CACHE_KEY global We realized in rust-lang#80914 that the cache handling (through a global) needed to be updated to make it much easier to handle. r? `@jyn514`
2ef594d to
e86f706CompareGuillaumeGomez
commented
Jan 28, 2021
Rebased! Only the last commit is from this PR, the others still come from #80883. cc @CraftSpider@ollie27 |
This comment has been minimized.
This comment has been minimized.
CraftSpider
left a comment
There was a problem hiding this comment.
Looks good. As far as I can tell this should behave the same, just with spotlight calculated at use instead of early. Only question is: How is spotlight_decl called, will this end up duplicating the spotlight lookup? Not too terrible if it does, but want to make sure I understand.
TraitTraitGuillaumeGomez
commented
Jan 28, 2021
That's actually a pretty good point. It forces us to run this check every time a function returns a "spotlighted" item. That's not great. |
* Improve documentation * Add a test to ensure that spotlighted traits from dependencies are taken into account as expected
1593598 to
33aaeadCompareGuillaumeGomez
commented
Feb 23, 2021
I updated the description but I'll keep the mention to the other PR. ;) |
GuillaumeGomez
commented
Feb 23, 2021
@bors: r=jyn514 |
bors
commented
Feb 23, 2021
📌 Commit 33aaead has been approved by |
bors
commented
Feb 24, 2021
⌛ Testing commit 33aaead with merge f46c0e49c6121d2ea31376c25c1ac1b7b91d0c91... |
bors
commented
Feb 24, 2021
💥 Test timed out |
GuillaumeGomez
commented
Feb 24, 2021
@bors: retry |
bors
commented
Feb 24, 2021
bors
commented
Feb 24, 2021
☀️ Test successful - checks-actions |
I didn't make these renames in rust-lang#80965 because I didn't want the PR to conflict with rust-lang#80914.
…ht, r=GuillaumeGomez rustdoc: Rename internal uses of `spotlight` I didn't make these renames in rust-lang#80965 because I didn't want the PR to conflict with rust-lang#80914.
Small PR, only the last commit is relevant here. The rest is coming from #80883 because I need the
TyCtxtstored insideCache.The point is to make ItemKind looks as close as possible to the compiler type so that it makes the switch simpler (which is why I make all these "small" PRs).
r? @jyn514