Skip to content

Commit 3931fb4

Browse files
committed
tidy up sections
1 parent c01d383 commit 3931fb4

25 files changed

+79
-73
lines changed

src/SUMMARY.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
- [New trait impls](./code-considerations/breaking-changes/new-trait-impls.md)
2424
- [`#[fundamental]` types](./code-considerations/breaking-changes/fundamental.md)
2525
- [Safety and soundness](./code-considerations/safety-and-soundness/summary.md)
26-
- [Generic impls and soundness](./code-considerations/safety-and-soundness/generic-impls-and-soundness.md)
26+
- [Generics and unsafe](./code-considerations/safety-and-soundness/generics-and-unsafe.md)
2727
- [Drop and `#[may_dangle]`](./code-considerations/safety-and-soundness/may-dangle.md)
2828
- [`std::mem` and exclusive references](./code-considerations/safety-and-soundness/mem-and-exclusive-refs.md)
2929
- [Using unstable language features](./code-considerations/using-unstable-lang/summary.md)
@@ -32,6 +32,8 @@
3232
- [Performance](./code-considerations/performance/summary.md)
3333
- [When to `#[inline]`](./code-considerations/performance/inline.md)
3434

35-
---
35+
# Tools and bots
3636

37-
[Appendix A: Glossary](./appendix/glossary.md)
37+
- [`@bors`](./tools-and-bots/bors.md)
38+
- [`@rust-timer`](./tools-and-bots/timer.md)
39+
- [`@craterbot`](./tools-and-bots/crater.md)

src/appendix/glossary.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/code-considerations/breaking-changes/behavior.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Breakage from changing behavior
22

3-
Breaking changes aren't just limited to compilation failures. Behavioral changes to stable functions generally can't be accepted. See [the `home_dir` issue][rust/pull/46799] for an example.
3+
Breaking changes aren't just limited to compilation failures. Behavioral changes to stable functions generally can't be accepted. See [the `home_dir` issue](https://github.com/rust-lang/rust/pull/46799) for an example.
44

55
An exception is when a behavior is specified in an RFC (such as IETF specifications for IP addresses). If a behavioral change fixes non-conformance then it can be considered a bug fix. In these cases, `@rust-lang/libs` should still be pinged for input.
66

src/code-considerations/breaking-changes/fundamental.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
**Status:** Stub
44

5-
Type annotated with the `#[fundamental]` attribute have different coherence rules. See [RFC 1023] for details. That includes:
5+
Type annotated with the `#[fundamental]` attribute have different coherence rules. See [RFC 1023](https://rust-lang.github.io/rfcs/1023-rebalancing-coherence.html) for details. That includes:
66

77
- `&T`
88
- `&mut T`
@@ -28,4 +28,4 @@ where
2828

2929
unless the blanket implementation is being stabilized along with `PublicTrait`. In cases where we really want to do this, a [crater] run can help estimate the scope of the breakage.
3030

31-
[crater]: ./crater.md
31+
[crater]: ../../tools-and-bots/crater.md

src/code-considerations/breaking-changes/new-trait-impls.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ let c = a + &b;
6767

6868
will no longer compile, because we won't attempt to use deref to coerce the `&String` into `&str`.
6969

70-
This kind of breakage can be ok, but a [crater] run should estimate the scope.
71-
72-
[crater]: ./crater.md
70+
This kind of breakage can be ok, but a [crater](../../tools-and-bots/crater.md) run should estimate the scope.
7371

7472
## For reviewers
7573

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Breaking changes
22

3-
Breaking changes should be avoided when possible. [RFC 1105] lays the foundations for what constitutes a breaking change. Breakage may be deemed acceptable or not based on its actual impact, which can be approximated with a [crater] run.
3+
Breaking changes should be avoided when possible. [RFC 1105](https://rust-lang.github.io/rfcs/1105-api-evolution.html) lays the foundations for what constitutes a breaking change. Breakage may be deemed acceptable or not based on its actual impact, which can be approximated with a [crater](../../tools-and-bots/crater.md) run.
44

55
There are strategies for mitigating breakage depending on the impact.
66

@@ -12,9 +12,6 @@ If the impact isn't too high:
1212

1313
- Looping in maintainers of broken crates and submitting PRs to fix them.
1414

15-
[crater]: ./crater.md
16-
[RFC 1105]: https://rust-lang.github.io/rfcs/1105-api-evolution.html
17-
1815
## For reviewers
1916

2017
Look out for changes to documented behavior and new trait impls for existing stable traits.

src/code-considerations/design/public-apis.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
**Status:** Stub
44

5-
Standard library APIs typically follow the [API Guidelines], which were originally spawned from the standard library itself.
6-
7-
[API Guidelines]: https://rust-lang.github.io/api-guidelines/
5+
Standard library APIs typically follow the [API Guidelines](https://rust-lang.github.io/api-guidelines/), which were originally spawned from the standard library itself.
86

97
## For reviewers
108

src/code-considerations/performance/inline.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# When to `#[inline]`
22

3-
Inlining is a trade-off between potential execution speed, compile time and code size. There's some discussion about it in [this PR to the `hashbrown` crate][hashbrown/pull/119]. From the thread:
3+
Inlining is a trade-off between potential execution speed, compile time and code size. There's some discussion about it in [this PR to the `hashbrown` crate](https://github.com/rust-lang/hashbrown/pull/119). From the thread:
44

5-
> `#[inline]` is very different than simply just an inline hint. As I mentioned before, there's no equivalent in C++ for what `#[inline]` does. In debug mode rustc basically ignores `#[inline]`, pretending you didn't even write it. In release mode the compiler will, by default, codegen an `#[inline]` function into every single referencing codegen unit, and then it will also add `inlinehin`t. This means that if you have 16 CGUs and they all reference an item, every single one is getting the entire item's implementation inlined into it.
5+
> `#[inline]` is very different than simply just an inline hint. As I mentioned before, there's no equivalent in C++ for what `#[inline]` does. In debug mode rustc basically ignores `#[inline]`, pretending you didn't even write it. In release mode the compiler will, by default, codegen an `#[inline]` function into every single referencing codegen unit, and then it will also add `inlinehint`. This means that if you have 16 CGUs and they all reference an item, every single one is getting the entire item's implementation inlined into it.
66
77
You can add `#[inline]`:
88

src/code-considerations/performance/summary.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22

33
**Status:** Stub
44

5-
Changes to hot code might impact performance in consumers, for better or for worse. Appropriate benchmarks should give an idea of how performance characteristics change. For changes that affect `rustc` itself, you can also do a [`rust-timer`] run.
5+
Changes to hot code might impact performance in consumers, for better or for worse. Appropriate benchmarks should give an idea of how performance characteristics change. For changes that affect `rustc` itself, you can also do a [`rust-timer`](../../tools-and-bots/timer.md) run.
66

77
## For reviewers
88

99
If a PR is focused on performance then try get some idea of what the impact is. Also consider marking the PR as `rollup=never`.
10-
11-
[`rust-timer`]: https://github.com/rust-lang-nursery/rustc-perf

src/code-considerations/reviewer-checklist.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,28 @@
22

33
**Status:** Stub
44

5-
## Before you review
6-
7-
Check the [getting started](./getting-started.md) guide for an introduction to developing in the standard library.
5+
Check the [getting started](../getting-started.md) guide for an introduction to developing in the standard library.
86

97
If you'd like to reassign the PR, you can:
108

119
```
1210
r? @user
1311
```
1412

13+
## Before you review
14+
1515
- [ ] Are there any `#[stable]` attributes involved?
1616
- [ ] Ping `@rust-lang/libs` for input.
1717

1818
## As you review
1919

20-
Look out for:
20+
Look out for code considerations:
2121

22-
- [ ] [Breaking changes](./code-considerations/breaking-changes/summary.md)
23-
- [ ] [Safety and soundness](./code-considerations/safety-and-soundness/summary.md)
24-
- [ ] [Quality](./code-considerations/quality/summary.md)
25-
- [ ] [Use of unstable language features](./code-considerations/using-unstable-lang/summary.md)
26-
- [ ] [Performance](./code-considerations/performance/summary.md)
22+
- [ ] [Design](./design/summary.md)
23+
- [ ] [Breaking changes](./breaking-changes/summary.md)
24+
- [ ] [Safety and soundness](./safety-and-soundness/summary.md)
25+
- [ ] [Use of unstable language features](./using-unstable-lang/summary.md)
26+
- [ ] [Performance](./performance/summary.md)
2727

2828
## Before you merge
2929

@@ -35,7 +35,7 @@ Look out for:
3535

3636
## When you're ready
3737

38-
For Libs PRs, rolling up is usually fine, in particular if it's only a new unstable addition or if it only touches docs. See the [rollup guidelines] for more details on when to rollup.
38+
For Libs PRs, rolling up is usually fine, in particular if it's only a new unstable addition or if it only touches docs. See the [rollup guidelines](https://forge.rust-lang/org/compiler/reviews.md#rollups) for more details on when to rollup.
3939

4040
To roll up:
4141

@@ -48,5 +48,3 @@ or just:
4848
```
4949
@bors r+
5050
```
51-
52-
[rollup guidelines]: https://forge.rust-lang/org/compiler/reviews.md#rollups

0 commit comments

Comments
 (0)