Skip to content

Commit a8301cf

Browse files
authored
Merge pull request rust-lang#171 from pietroalbini/small-fixes
Random fixes
2 parents dd8a20e + ca20d0d commit a8301cf

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

bibliography.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,7 @@ Language](http://www.cs.indiana.edu/~eholk/papers/hips2013.pdf). Early GPU work
6565
* [Reenix: Implementing a Unix-Like Operating System in
6666
Rust](http://scialex.github.io/reenix.pdf). Undergrad paper by Alex
6767
Light.
68-
* [Evaluation of performance and productivity metrics of potential
69-
programming languages in the HPC environment]
70-
(http://octarineparrot.com/assets/mrfloya-thesis-ba.pdf).
68+
* [Evaluation of performance and productivity metrics of potential programming languages in the HPC environment](http://octarineparrot.com/assets/mrfloya-thesis-ba.pdf).
7169
Bachelor's thesis by Florian Wilkens. Compares C, Go and Rust.
7270
* [Nom, a byte oriented, streaming, zero copy, parser combinators library
7371
in Rust](http://spw15.langsec.org/papers/couprie-nom.pdf). By

feature-guide.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,7 @@ In order to implement a new unstable feature, you need to do the following steps
114114
115115
The current version is not actually important – the important version is when you are *stabilizing* a feature.
116116
4. Prevent usage of the new feature unless the feature gate is set.
117-
You can check it in most places in the compiler using the expression
118-
```
119-
tcx.sess.features().borrow().$feature_name
120-
```
117+
You can check it in most places in the compiler using the expression `tcx.features().$feature_name` (or `sess.features_untracked().borrow().$feature_name` if the tcx is unavailable)
121118
122119
If the feature gate is not set, you should either maintain the pre-feature behavior or raise an error, depending on what makes sense.
123120
5. Add a test to ensure the feature cannot be used without a feature gate, by creating `feature-gate-$feature_name.rs` and `feature-gate-$feature_name.stderr` fiels under the `src/test/ui/feature-gates` directory.

0 commit comments

Comments
 (0)