Skip to content

Commit e03697d

Browse files
authored
Merge pull request #2748 from rust-lang/tshepang/sembr
sembr
2 parents 95c1d0e + e47d48e commit e03697d

11 files changed

Lines changed: 855 additions & 767 deletions

File tree

ci/sembr/src/main.rs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ static REGEX_IGNORE_END: LazyLock<Regex> =
2424
static REGEX_IGNORE_LINK_TARGETS: LazyLock<Regex> =
2525
LazyLock::new(|| Regex::new(r"^\[.+\]: ").unwrap());
2626
static REGEX_SPLIT: LazyLock<Regex> =
27-
LazyLock::new(|| Regex::new(r"([^\.\d\-\*]\.|[^r]\?|!)\s").unwrap());
27+
LazyLock::new(|| Regex::new(r"([^\.\d\-\*]\.|[^r\~]\?|!)\s").unwrap());
2828
// list elements, numbered (1.) or not (- and *)
2929
static REGEX_LIST_ENTRY: LazyLock<Regex> =
3030
LazyLock::new(|| Regex::new(r"^\s*(\d\.|\-|\*|\d\))\s+").unwrap());
@@ -83,6 +83,8 @@ fn ignore(line: &str, in_code_block: bool) -> bool {
8383
|| line.contains(" etc.")
8484
|| line.contains("i.e.")
8585
|| line.contains("et. al")
86+
|| line.contains("<!--")
87+
|| line.contains("-->")
8688
|| line.contains('|')
8789
|| line.trim_start().starts_with('>')
8890
|| line.starts_with('#')
@@ -204,6 +206,7 @@ git log main.. compiler
204206
o? whatever
205207
r? @reviewer
206208
r? @reviewer
209+
~? diagnostic
207210
";
208211
let expected = "
209212
# some. heading
@@ -236,6 +239,7 @@ o?
236239
whatever
237240
r? @reviewer
238241
r? @reviewer
242+
~? diagnostic
239243
";
240244
assert_eq!(expected, comply(original));
241245
}
@@ -263,6 +267,11 @@ leave the
263267
text alone
264268
```
265269
270+
<!-- ignore
271+
html comment opening
272+
--> ignore
273+
html comment closing
274+
266275
handle the
267276
indented well
268277
@@ -289,6 +298,11 @@ leave the
289298
text alone
290299
```
291300
301+
<!-- ignore
302+
html comment opening
303+
--> ignore
304+
html comment closing
305+
292306
handle the indented well
293307
294308
[a target]: https://example.com

src/building/suggested.md

Lines changed: 113 additions & 101 deletions
Large diffs are not rendered by default.

src/compiler-team.md

Lines changed: 29 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
> NOTE:
44
> There exists much detail about the team [on Forge], making most of the following obsolete.
55
6-
rustc is maintained by the [Rust compiler team][team]. The people who belong to
6+
rustc is maintained by the [Rust compiler team][team].
7+
The people who belong to
78
this team collectively work to track regressions and implement new features.
89
Members of the Rust compiler team are people who have made significant
910
contributions to rustc and its design.
@@ -34,35 +35,32 @@ who are reviewers of each part.
3435
## Rust compiler meeting
3536

3637
The compiler team has a weekly meeting where we do triage and try to
37-
generally stay on top of new bugs, regressions, and discuss important
38-
things in general.
39-
They are held on [Zulip][zulip-meetings]. It works roughly as follows:
38+
generally stay on top of new bugs, regressions, and discuss important things in general.
39+
They are held on [Zulip][zulip-meetings].
40+
It works roughly as follows:
4041

4142
- **Announcements, MCPs/FCPs, and WG-check-ins:** We share some
42-
announcements with the rest of the team about important things we want
43-
everyone to be aware of. We also share the status of MCPs and FCPs and we
44-
use the opportunity to have a couple of WGs giving us an update about
45-
their work.
43+
announcements with the rest of the team about important things we want everyone to be aware of.
44+
We also share the status of MCPs and FCPs and we
45+
use the opportunity to have a couple of WGs giving us an update about their work.
4646
- **Check for beta and stable nominations:** These are nominations of things to
4747
backport to beta and stable respectively.
48-
We then look for new cases where the compiler broke previously working
49-
code in the wild. Regressions are important issues to fix, so it's
48+
We then look for new cases where the compiler broke previously working code in the wild.
49+
Regressions are important issues to fix, so it's
5050
likely that they are tagged as P-critical or P-high; the major
5151
exception would be bug fixes (though even there we often [aim to give
5252
warnings first][procedure]).
5353
- **Review P-critical and P-high bugs:** P-critical and P-high bugs are
54-
those that are sufficiently important for us to actively track
55-
progress. P-critical and P-high bugs should ideally always have an
56-
assignee.
54+
those that are sufficiently important for us to actively track progress.
55+
P-critical and P-high bugs should ideally always have an assignee.
5756
- **Check `S-waiting-on-t-compiler` and `I-compiler-nominated` issues:** These are issues where
5857
feedback from the team is desired.
5958
- **Look over the performance triage report:** We check for PRs that made the
6059
performance worse and try to decide if it's worth reverting the performance regression or if
6160
the regression can be addressed in a future PR.
6261

6362
The meeting currently takes place on Thursdays at 10am Boston time
64-
(UTC-4 typically, but daylight savings time sometimes makes things
65-
complicated).
63+
(UTC-4 typically, but daylight savings time sometimes makes things complicated).
6664

6765
[procedure]: ./bug-fix-procedure.md
6866
[zulip-t-compiler]: https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler
@@ -72,17 +70,16 @@ complicated).
7270
## Team membership
7371

7472
Membership in the Rust team is typically offered when someone has been
75-
making significant contributions to the compiler for some
76-
time. Membership is both a recognition but also an obligation:
73+
making significant contributions to the compiler for some time.
74+
Membership is both a recognition but also an obligation:
7775
compiler team members are generally expected to help with upkeep as
7876
well as doing reviews and other work.
7977

8078
If you are interested in becoming a compiler team member, the first
81-
thing to do is to start fixing some bugs, or get involved in a working
82-
group. One good way to find bugs is to look for
79+
thing to do is to start fixing some bugs, or get involved in a working group.
80+
One good way to find bugs is to look for
8381
[open issues tagged with E-easy](https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Aissue+label%3AE-easy)
84-
or
85-
[E-mentor](https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Aissue+label%3AE-mentor).
82+
or [E-mentor](https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Aissue+label%3AE-mentor).
8683

8784
You can also dig through the graveyard of PRs that were
8885
[closed due to inactivity](https://github.com/rust-lang/rust/pulls?q=is%3Apr+label%3AS-inactive),
@@ -92,18 +89,17 @@ for which the original author didn't have time.
9289

9390
### r+ rights
9491

95-
Once you have made a number of individual PRs to rustc, we will often
96-
offer r+ privileges. This means that you have the right to instruct
97-
"bors" (the robot that manages which PRs get landed into rustc) to
98-
merge a PR
92+
Once you have made a number of individual PRs to rustc, we will often offer r+ privileges.
93+
This means that you have the right to instruct
94+
"bors" (the robot that manages which PRs get landed into rustc) to merge a PR
9995
([here are some instructions for how to talk to bors][bors-guide]).
10096

10197
[bors-guide]: https://bors.rust-lang.org/
10298

10399
The guidelines for reviewers are as follows:
104100

105-
- You are always welcome to review any PR, regardless of who it is
106-
assigned to. However, do not r+ PRs unless:
101+
- You are always welcome to review any PR, regardless of who it is assigned to.
102+
However, do not r+ PRs unless:
107103
- You are confident in that part of the code.
108104
- You are confident that nobody else wants to review it first.
109105
- For example, sometimes people will express a desire to review a
@@ -119,18 +115,16 @@ The guidelines for reviewers are as follows:
119115

120116
Once you have r+ rights, you can also be added to the [reviewer rotation].
121117
[triagebot] is the bot that [automatically assigns] incoming PRs to reviewers.
122-
If you are added, you will be randomly selected to review
123-
PRs. If you find you are assigned a PR that you don't feel comfortable
118+
If you are added, you will be randomly selected to review PRs.
119+
If you find you are assigned a PR that you don't feel comfortable
124120
reviewing, you can also leave a comment like `r? @so-and-so` to assign
125121
to someone else — if you don't know who to request, just write `r?
126-
@nikomatsakis for reassignment` and @nikomatsakis will pick someone
127-
for you.
122+
@nikomatsakis for reassignment` and @nikomatsakis will pick someone for you.
128123

129124
[reviewer rotation]: https://github.com/rust-lang/rust/blob/36285c5de8915ecc00d91ae0baa79a87ed5858d5/triagebot.toml#L528-L577
130125
[triagebot]: https://github.com/rust-lang/triagebot/
131126
[automatically assigns]: https://forge.rust-lang.org/triagebot/pr-assignment.html
132127

133-
Getting on the reviewer rotation is much appreciated as it lowers the
134-
review burden for all of us! However, if you don't have time to give
135-
people timely feedback on their PRs, it may be better that you don't
136-
get on the list.
128+
Getting on the reviewer rotation is much appreciated as it lowers the review burden for all of us!
129+
However, if you don't have time to give
130+
people timely feedback on their PRs, it may be better that you don't get on the list.

0 commit comments

Comments
 (0)