about summary refs log tree commit diff
path: root/src/doc
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-01-13 00:17:22 +0900
committerWho? Me?! <mark-i-m@users.noreply.github.com>2020-01-12 14:31:55 -0600
commitbd659c8bc8637b7f1dcf4a184248df47c884e99e (patch)
tree1544804664eb0d17c7b355ce48b658cb7c6edc9a /src/doc
parent67245a2f3085e4a0d725253ab6e2c0120294a995 (diff)
downloadrust-bd659c8bc8637b7f1dcf4a184248df47c884e99e.tar.gz
rust-bd659c8bc8637b7f1dcf4a184248df47c884e99e.zip
Fix links and paths
Diffstat (limited to 'src/doc')
-rw-r--r--src/doc/rustc-dev-guide/src/appendix/bibliography.md2
-rw-r--r--src/doc/rustc-dev-guide/src/implementing_new_features.md7
-rw-r--r--src/doc/rustc-dev-guide/src/stabilization_guide.md11
3 files changed, 11 insertions, 9 deletions
diff --git a/src/doc/rustc-dev-guide/src/appendix/bibliography.md b/src/doc/rustc-dev-guide/src/appendix/bibliography.md
index 7c27a3ed623..dc06b63f576 100644
--- a/src/doc/rustc-dev-guide/src/appendix/bibliography.md
+++ b/src/doc/rustc-dev-guide/src/appendix/bibliography.md
@@ -28,7 +28,7 @@ Rust, as well as publications about Rust.
 * [A Java fork/join calamity](http://www.coopsoft.com/ar/CalamityArticle.html) - critique of Java's fork/join library, particularly its application of work stealing to non-strict computation
 * [Scheduling techniques for concurrent systems](http://www.stanford.edu/~ouster/cgi-bin/papers/coscheduling.pdf)
 * [Contention aware scheduling](http://www.blagodurov.net/files/a8-blagodurov.pdf)
-* [Balanced work stealing for time-sharing multicores](http://www.cse.ohio-state.edu/hpcs/WWW/HTML/publications/papers/TR-12-1.pdf)
+* [Balanced work stealing for time-sharing multicores](https://web.njit.edu/~dingxn/papers/BWS.pdf)
 * [Three layer cake for shared-memory programming](http://dl.acm.org/citation.cfm?id=1953616&dl=ACM&coll=DL&CFID=524387192&CFTOKEN=44362705)
 * [Non-blocking steal-half work queues](http://www.cs.bgu.ac.il/%7Ehendlerd/papers/p280-hendler.pdf)
 * [Reagents: expressing and composing fine-grained concurrency](https://aturon.github.io/academic/reagents.pdf)
diff --git a/src/doc/rustc-dev-guide/src/implementing_new_features.md b/src/doc/rustc-dev-guide/src/implementing_new_features.md
index 4b2529fff1c..ff9a709e6ff 100644
--- a/src/doc/rustc-dev-guide/src/implementing_new_features.md
+++ b/src/doc/rustc-dev-guide/src/implementing_new_features.md
@@ -125,7 +125,7 @@ a new unstable feature:
 2. Pick a name for the feature gate (for RFCs, use the name
    in the RFC).
 
-3. Add a feature gate declaration to `libsyntax/feature_gate/active.rs`
+3. Add a feature gate declaration to `librustc_feature/active.rs`
    in the active `declare_features` block:
 
    ```rust,ignore
@@ -158,7 +158,8 @@ a new unstable feature:
 
    For features introducing new syntax, pre-expansion gating should be used instead.
    To do so, extend the [`GatedSpans`] struct, add spans to it during parsing,
-   and then finally feature-gate all the spans in [`feature_gate::check::check_crate`].
+   and then finally feature-gate all the spans in
+   [`rustc_ast_passes::feature_gate::check_crate`].
 
 5. Add a test to ensure the feature cannot be used without
    a feature gate, by creating `feature-gate-$feature_name.rs`
@@ -175,7 +176,7 @@ a new unstable feature:
    implemented a feature in Rust!
 
 [`GatedSpans`]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/sess/struct.GatedSpans.html
-[`feature_gate::check::check_crate`]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/feature_gate/check/fn.check_crate.html
+[`rustc_ast_passes::feature_gate::check_crate`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_ast_passes/feature_gate/fn.check_crate.html
 [value the stability of Rust]: https://github.com/rust-lang/rfcs/blob/master/text/1122-language-semver.md
 [stability in code]: #stability-in-code
 [here]: ./stabilization_guide.md
diff --git a/src/doc/rustc-dev-guide/src/stabilization_guide.md b/src/doc/rustc-dev-guide/src/stabilization_guide.md
index 302be41d0a9..73edc3be5b4 100644
--- a/src/doc/rustc-dev-guide/src/stabilization_guide.md
+++ b/src/doc/rustc-dev-guide/src/stabilization_guide.md
@@ -91,7 +91,7 @@ should appear in the documentation.
 ### Updating the feature-gate listing
 
 There is a central listing of feature-gates in
-[`src/libsyntax/feature_gate.rs`]. Search for the `declare_features!`
+[`src/librustc_feature`]. Search for the `declare_features!`
 macro. There should be an entry for the feature you are aiming
 to stabilize, something like (this example is taken from
 [rust-lang/rust#32409]:
@@ -140,7 +140,8 @@ Most importantly, remove the code which flags an error if the
 feature-gate is not present (since the feature is now considered
 stable). If the feature can be detected because it employs some
 new syntax, then a common place for that code to be is in the
-same `feature_gate.rs`. For example, you might see code like this:
+same `src/librustc_ast_passes/feature_gate.rs`.
+For example, you might see code like this:
 
 ```rust,ignore
 gate_feature_post!(&self, pub_restricted, span,
@@ -173,9 +174,9 @@ if self.tcx.sess.features.borrow().pub_restricted && something { /* XXX */ }
 if something { /* XXX */ }
 ```
 
-[rust-lang/rust#32409]:https://github.com/rust-lang/rust/issues/32409
-[`src/libsyntax/feature_gate.rs`]:https://doc.rust-lang.org/nightly/nightly-rustc/syntax/feature_gate/index.html
-[The Reference]: https://github.com/rust-lang-nursery/reference
+[rust-lang/rust#32409]: https://github.com/rust-lang/rust/issues/32409
+[`src/librustc_feature`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_feature/index.html
+[The Reference]: https://github.com/rust-lang/reference
 [The Book]: https://github.com/rust-lang/book
 [Rust by Example]: https://github.com/rust-lang/rust-by-example
 [`Unstable Book`]: https://doc.rust-lang.org/unstable-book/index.html