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

comment out FIXMEs to not display them on UI #2186

Merged
merged 2 commits into from
Jan 2, 2025

Conversation

onur-ozkan
Copy link
Member

Prevents FIXMEs from appearing on the UI. Unless I am missing something, displaying these to readers doesn't make much sense. Some of them might make sense to include on the UI, but I am unsure which ones. If you think any should be displayed please mark them specifically.

This is how it currently looks:

image

And this is how it looks after this patch:

image

@BoxyUwU
Copy link
Member

BoxyUwU commented Jan 1, 2025

In some cases the FIXME's are themselves information, some extra bit of nuance that the page doesn't cover that the reader should probably know exists even if we haven't actually talked about it yet. Or potentially it indicates they should take the page with a bit of salt as its not been updated in a while or is confusing as written

Comment on lines 60 to +65
FIXME: it is likely that this will subtly change again by mostly moving structural
normalization into `NormalizesTo`.
-->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

normalization has changed pretty significantly since this chapter was first written iirc, imo we should have a big note at the top of the page saying that things have likely diverged from what is documented here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, done that.

image

Comment on lines 64 to 67
<!--
[^1]: FIXME: this should ideally only result in a unique candidate given that we require the args to be placeholders and regions are always inference vars
[^2]: FIXME: why do we check whether the expected type is rigid for this.
-->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are footnotes linking to this which should also be removed if we're going to remove this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In that case they should stay as they were. I didn’t realize the links above.

Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
@onur-ozkan
Copy link
Member Author

onur-ozkan commented Jan 1, 2025

In some cases the FIXME's are themselves information, some extra bit of nuance that the page doesn't cover that the reader should probably know exists even if we haven't actually talked about it yet. Or potentially it indicates they should take the page with a bit of salt as its not been updated in a while or is confusing as written

Yeah I agree on that, I left some of them visible but I wasn't entirely sure about others, that's why I wanted for a help in the PR description.

@@ -2,7 +2,9 @@

<!-- toc -->

> **FIXME(jieyouxu)** completely revise this chapter.
<!--
FIXME(jieyouxu) completely revise this chapter.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FTR, this was intentional and I think it's more accurate to display this. But maybe elaborate with:

  • This chapter is quite outdated at various places.
  • The organization is confusing.
  • It's potentially better to have per-directive doc comments then backlink to them for details, instead of having them separately listed here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It even includes a specific username to be resolved from. Why should it appear on the UI? Maybe I don't understand, what value does it bring to that page?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, I opened #2187 to track this instead.

@jieyouxu
Copy link
Member

jieyouxu commented Jan 2, 2025

For dev-guide specifically, it's not stable or user-facing, but more like internal contributor docs. IMO having contributor-facing FIXMEs are actually good because it conveys info about the page (esp. if it indicates the page is outdated or needs to be changed in some way).

@onur-ozkan
Copy link
Member Author

I honestly think that some FIXMEs shouldn't appear in the UI as they don't really make sense at all... Also, those pages often visited by newbies not just for internal use.

@jieyouxu
Copy link
Member

jieyouxu commented Jan 2, 2025

I honestly think that some FIXMEs shouldn't appear in the UI as they don't really make sense at all... Also, those pages often visited by newbies not just for internal use.

Makes sense, we should probably convert those FIXMEs to actual issues in this repo anyway.

Copy link
Member

@jieyouxu jieyouxu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jieyouxu jieyouxu merged commit ad9b06c into rust-lang:master Jan 2, 2025
1 check passed
@jieyouxu jieyouxu added the C-cleanup Category: cleanups label Jan 2, 2025
BoxyUwU pushed a commit to BoxyUwU/rustc-dev-guide that referenced this pull request Jan 4, 2025
Kobzol pushed a commit to Kobzol/rustc-dev-guide that referenced this pull request Jan 4, 2025
Kobzol pushed a commit to Kobzol/rustc-dev-guide that referenced this pull request Jan 5, 2025
Kobzol pushed a commit to Kobzol/rustc-dev-guide that referenced this pull request Jan 5, 2025
Kobzol pushed a commit to Kobzol/rustc-dev-guide that referenced this pull request Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-cleanup Category: cleanups
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants