Skip to content

Commit 97cab01

Browse files
JohnTitormark-i-m
authored andcommitted
Fix links and paths
1 parent ba48252 commit 97cab01

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

src/appendix/bibliography.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Rust, as well as publications about Rust.
2828
* [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
2929
* [Scheduling techniques for concurrent systems](http://www.stanford.edu/~ouster/cgi-bin/papers/coscheduling.pdf)
3030
* [Contention aware scheduling](http://www.blagodurov.net/files/a8-blagodurov.pdf)
31-
* [Balanced work stealing for time-sharing multicores](http://www.cse.ohio-state.edu/hpcs/WWW/HTML/publications/papers/TR-12-1.pdf)
31+
* [Balanced work stealing for time-sharing multicores](https://web.njit.edu/~dingxn/papers/BWS.pdf)
3232
* [Three layer cake for shared-memory programming](http://dl.acm.org/citation.cfm?id=1953616&dl=ACM&coll=DL&CFID=524387192&CFTOKEN=44362705)
3333
* [Non-blocking steal-half work queues](http://www.cs.bgu.ac.il/%7Ehendlerd/papers/p280-hendler.pdf)
3434
* [Reagents: expressing and composing fine-grained concurrency](https://aturon.github.io/academic/reagents.pdf)

src/implementing_new_features.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ a new unstable feature:
125125
2. Pick a name for the feature gate (for RFCs, use the name
126126
in the RFC).
127127

128-
3. Add a feature gate declaration to `libsyntax/feature_gate/active.rs`
128+
3. Add a feature gate declaration to `librustc_feature/active.rs`
129129
in the active `declare_features` block:
130130

131131
```rust,ignore
@@ -158,7 +158,8 @@ a new unstable feature:
158158

159159
For features introducing new syntax, pre-expansion gating should be used instead.
160160
To do so, extend the [`GatedSpans`] struct, add spans to it during parsing,
161-
and then finally feature-gate all the spans in [`feature_gate::check::check_crate`].
161+
and then finally feature-gate all the spans in
162+
[`rustc_ast_passes::feature_gate::check_crate`].
162163

163164
5. Add a test to ensure the feature cannot be used without
164165
a feature gate, by creating `feature-gate-$feature_name.rs`
@@ -175,7 +176,7 @@ a new unstable feature:
175176
implemented a feature in Rust!
176177

177178
[`GatedSpans`]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/sess/struct.GatedSpans.html
178-
[`feature_gate::check::check_crate`]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/feature_gate/check/fn.check_crate.html
179+
[`rustc_ast_passes::feature_gate::check_crate`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_ast_passes/feature_gate/fn.check_crate.html
179180
[value the stability of Rust]: https://github.com/rust-lang/rfcs/blob/master/text/1122-language-semver.md
180181
[stability in code]: #stability-in-code
181182
[here]: ./stabilization_guide.md

src/stabilization_guide.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ should appear in the documentation.
9191
### Updating the feature-gate listing
9292

9393
There is a central listing of feature-gates in
94-
[`src/libsyntax/feature_gate.rs`]. Search for the `declare_features!`
94+
[`src/librustc_feature`]. Search for the `declare_features!`
9595
macro. There should be an entry for the feature you are aiming
9696
to stabilize, something like (this example is taken from
9797
[rust-lang/rust#32409]:
@@ -140,7 +140,8 @@ Most importantly, remove the code which flags an error if the
140140
feature-gate is not present (since the feature is now considered
141141
stable). If the feature can be detected because it employs some
142142
new syntax, then a common place for that code to be is in the
143-
same `feature_gate.rs`. For example, you might see code like this:
143+
same `src/librustc_ast_passes/feature_gate.rs`.
144+
For example, you might see code like this:
144145

145146
```rust,ignore
146147
gate_feature_post!(&self, pub_restricted, span,
@@ -173,9 +174,9 @@ if self.tcx.sess.features.borrow().pub_restricted && something { /* XXX */ }
173174
if something { /* XXX */ }
174175
```
175176

176-
[rust-lang/rust#32409]:https://github.com/rust-lang/rust/issues/32409
177-
[`src/libsyntax/feature_gate.rs`]:https://doc.rust-lang.org/nightly/nightly-rustc/syntax/feature_gate/index.html
178-
[The Reference]: https://github.com/rust-lang-nursery/reference
177+
[rust-lang/rust#32409]: https://github.com/rust-lang/rust/issues/32409
178+
[`src/librustc_feature`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_feature/index.html
179+
[The Reference]: https://github.com/rust-lang/reference
179180
[The Book]: https://github.com/rust-lang/book
180181
[Rust by Example]: https://github.com/rust-lang/rust-by-example
181182
[`Unstable Book`]: https://doc.rust-lang.org/unstable-book/index.html

0 commit comments

Comments
 (0)