Uh oh!
There was an error while loading. Please reload this page.
Remove many unnecessary manual link resolves from library - #77832
Conversation
rust-highfive
commented
Oct 11, 2020
(rust_highfive has picked a reviewer for you, use r? to override) |
If anyone's interested, I used this kind of hacky Python script (gist): importrefrompathlibimportPathimportsyspat=re.compile(r'\[`?(.*)<.*>(::([A-Za-z0-9_]+))?(\(\))?`?\]: \1(::\3)?')
forpathinPath(sys.argv[1]).rglob('*.rs'):
print(path)
inf=open(path, 'r')
lines=inf.readlines()
inf.close()
outf=open(path, 'w')
prev_line_empty=Falseprev_prev_line_empty=Falseforlineinlines:
ifnotpat.search(line):
ifnot (prev_line_emptyandprev_prev_line_emptyandline.strip('/ \n') ==''):
outf.write(line)
prev_prev_line_empty=prev_line_emptyprev_line_empty=line.strip('/ \n') ==''else:
print('match!')
prev_prev_line_empty=prev_line_emptyprev_line_empty=True# empty because was not written to fileoutf.close()There were a few spots where it was over-eager in removing blank lines, but they were easy to fix manually. |
jyn514
commented
Oct 11, 2020
r? @jyn514 |
jyn514
commented
Oct 11, 2020
This is blocked until the next beta bump, I think, we intentionally test the standard library is documented with --stage 0 so library contributors don't have to build the compiler: #75368 (comment) |
camelid
commented
Oct 11, 2020
Oops, forgot :) Oh well, at least the PR will be ready then. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
4e12af1 to
ea3da77Comparecamelid
commented
Nov 22, 2020
Rebased. I think this is ready now! |
Uh oh!
There was an error while loading. Please reload this page.
Accept '!' in intra-doc links This will allow linking to things like `Result<T, !>`. *See <https://github.com/rust-lang/rust/pull/77832#discussion_r528409079>.* r? `@jyn514`
jyn514
commented
Nov 29, 2020
@camelid I think this is ready to go once you rebase (which should fix the linkchecker error). |
camelid
commented
Nov 29, 2020
Don't we have to wait for the next beta bump though? |
jyn514
commented
Nov 29, 2020
@camelid I think I might have been wrong about that - since the links fail silently, they won't actually cause |
camelid
commented
Nov 29, 2020
@jyn514 Actually they don't fail silently (at least not in CI): |
jyn514
commented
Nov 29, 2020
camelid
commented
Nov 29, 2020
@jyn514 I just told CI to re-run, so we'll see what happens :) |
camelid
commented
Nov 29, 2020
CI still failed with the same linkchecker errors. |
camelid
commented
Nov 29, 2020
Probably this should just wait until the next beta bump – it's not urgent, although it is annoying to have to wait another 5 weeks :/ |
camelid
commented
Dec 26, 2020
Only a few more days and then we can finally merge this! 😂 |
camelid
commented
Dec 31, 2020
Okay, the beta bump happened! Re-running CI... |
camelid
commented
Dec 31, 2020
Hmm, I don't see the button to re-run the workflow. Maybe because it's too old. @jyn514 do you want to |
jyn514
commented
Dec 31, 2020
@camelid can you rebase and push manually to make sure the links actually work? |
Now that rust-lang#76934 has merged, we can remove a lot of these! E.g, this is no longer necessary: [`Vec<T>`]: Vec
ea3da77 to
0506789Comparecamelid
commented
Dec 31, 2020
@jyn514 CI passed. Should be ready to go! |
jyn514
commented
Dec 31, 2020
@bors r+ rollup Thanks for sticking with this! I know waiting for the release trains is a pain. |
bors
commented
Dec 31, 2020
📌 Commit 0506789 has been approved by |
bors
commented
Jan 2, 2021
bors
commented
Jan 2, 2021
☀️ Test successful - checks-actions |
Now that #76934 has merged, we can remove a lot of these! E.g, this is
no longer necessary:
cc @jyn514