Skip to content

docs: Trying to access the source code ([src] link) of str::rc::Rc yields a "Not Found" page #16979

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

Closed
japaric opened this issue Sep 3, 2014 · 1 comment

Comments

@japaric
Copy link
Member

japaric commented Sep 3, 2014

STR

  • Head to the docs of std::rc::Rc [1]
  • Click the [src] link [2]
  • Yields a "Not Found" page [3]
  • Head to the docs of alloc::rc::Rc [4]
  • Click the [src] link [5] - this one works

Here are the full text links:

[1] http://doc.rust-lang.org/std/rc/struct.Rc.html
[2] http://doc.rust-lang.org/alloc/rc/struct.Rc.html?gotosrc=1835
[3] http://doc.rust-lang.org/alloc/rc/undefined
[4] http://doc.rust-lang.org/alloc/rc/struct.Rc.html
[5] http://doc.rust-lang.org/src/alloc/home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/liballoc/rc.rs.html#174-180

@japaric
Copy link
Member Author

japaric commented Sep 4, 2014

Duplicate of #15309. Closing.

@japaric japaric closed this as completed Sep 4, 2014
lnicola pushed a commit to lnicola/rust that referenced this issue Apr 7, 2024
pattern analysis: Use contiguous indices for enum variants

The main blocker to using the in-tree version of the `pattern_analysis` crate is that rustc requires enum indices to be contiguous because it uses `IndexVec`/`BitSet` for performance. Currently we swap these out for `FxHashMap`/`FxHashSet` when the `rustc` feature is off, but we can't do that if we use the in-tree crate.

This PR solves the problem by using contiguous indices on the r-a side too.
lnicola pushed a commit to lnicola/rust that referenced this issue Apr 20, 2024
pattern analysis: Use contiguous indices for enum variants

The main blocker to using the in-tree version of the `pattern_analysis` crate is that rustc requires enum indices to be contiguous because it uses `IndexVec`/`BitSet` for performance. Currently we swap these out for `FxHashMap`/`FxHashSet` when the `rustc` feature is off, but we can't do that if we use the in-tree crate.

This PR solves the problem by using contiguous indices on the r-a side too.
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

No branches or pull requests

1 participant