Skip to content

Add docs.rs/rustc redirect. #1498

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

Merged
merged 2 commits into from
Sep 20, 2021
Merged

Add docs.rs/rustc redirect. #1498

merged 2 commits into from
Sep 20, 2021

Conversation

m-ou-se
Copy link
Member

@m-ou-se m-ou-se commented Sep 17, 2021

This adds a redirect from docs.rs/rustc to the nightly rustc docs.

rustc is a reserved crate name and will not appear on crates.io: https://github.com/rust-lang/crates.io/blob/master/migrations/20170305095748_create_reserved_crate_names/up.sql

Unlike the redirects for std, core, etc., this uses nightly rather than stable, because all development on rustc is happening on nightly. (And also https://doc.rust-lang.org/stable/nightly-rustc/ looks a bit confusing. :P)

`rustc` is a reserved crate name and will not appear on crates.io,
so we can use it for this instead.
@jyn514
Copy link
Member

jyn514 commented Sep 17, 2021

This would fix #79.

Can you also add rustdoc at the same time? It's also reserved: https://github.com/rust-lang/crates.io/blob/b070d14df6696d4eb868bc8d26c0c1fd6257f97c/migrations/20170305095748_create_reserved_crate_names/up.sql#L11

Ideally this would add all the tools that are hosted (clippy and rustfmt too), but they don't seem to be reserved; in fact there are crates already published for both: https://docs.rs/crate/rustfmt/0.10.0, https://docs.rs/crate/clippy/0.0.302.

@jyn514 jyn514 merged commit 733757f into rust-lang:master Sep 20, 2021
@m-ou-se m-ou-se deleted the rustc-redirect branch September 20, 2021 18:12
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.

2 participants