Skip to content

Commit d1822b9

Browse files
authored
Triage some date references (rust-lang#1293)
1 parent dc47b51 commit d1822b9

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

src/crates-io.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ reasons:
1212
- The dependency may have transitive dependencies that have one of the above
1313
problems.
1414

15-
As of <!-- date: 2021-07 --> July 2021, there is no official policy for vetting
16-
new dependencies to the compiler. Generally, new dependencies are not added
15+
As of <!-- date: 2022-02 --> February 2022, there is no official policy for vetting
16+
new dependencies to the compiler. Generally, new dependencies are not added
1717
to the compiler unless there is a good reason to do so.
1818

1919
## Permitted dependencies

src/diagnostics/diagnostic-items.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ A new diagnostic item can be added with these two steps:
4444
For the naming conventions of diagnostic items, please refer to
4545
[*Naming Conventions*](#naming-conventions).
4646

47-
2. As of August 2021 <!-- date: 2021-08 --> diagnostic items in code are accessed via symbols in
47+
2. As of <!-- date: 2022-02 --> February 2022, diagnostic items in code are accessed via symbols in
4848
[`rustc_span::symbol::sym`]. To add your newly created diagnostic item simply open the
4949
module file and add the name (In this case `Cat`) at the correct point in the list.
5050

src/diagnostics/lintstore.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ First, we have the lint declarations themselves: this is where the name and defa
1717
other metadata come from. These are normally defined by way of the [`declare_lint!`] macro, which
1818
boils down to a static with type `&rustc_session::lint::Lint`.
1919

20-
As of <!-- date: 2021-07 --> July 2021, we lint against direct declarations
20+
As of <!-- date: 2022-02 --> February 2022, we lint against direct declarations
2121
without the use of the macro today (although this may change in the future, as
2222
the macro is somewhat unwieldy to add new fields to, like all macros).
2323

@@ -56,11 +56,11 @@ internally.
5656

5757
#### Internal lints
5858

59-
These are lints used just by the compiler or plugins like `clippy`. They can be found in
59+
These are lints used just by the compiler or plugins like `clippy`. They can be found in
6060
`rustc_lint::internal`.
6161

62-
An example of such a lint is the check that lint passes are implemented using the
63-
`declare_lint_pass!` macro and not by hand. This is accomplished with the
62+
An example of such a lint is the check that lint passes are implemented using the
63+
`declare_lint_pass!` macro and not by hand. This is accomplished with the
6464
`LINT_PASS_IMPL_WITHOUT_MACRO` lint.
6565

6666
Registration of these lints happens in the [`rustc_lint::register_internals`] function which is
@@ -81,7 +81,7 @@ with internal lints, this happens inside of [`rustc_lint::new_lint_store`].
8181
This is one of the primary use cases remaining for plugins/drivers. Plugins are given access
8282
to the mutable `LintStore` during registration (which happens inside of
8383
[`rustc_interface::register_plugins`]) and they can call any functions they need on
84-
the `LintStore`, just like rustc code.
84+
the `LintStore`, just like rustc code.
8585

8686
Plugins are intended to declare lints with the `plugin` field set to true (e.g., by
8787
way of the [`declare_tool_lint!`] macro), but this is purely for diagnostics and help text;

src/git.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ no changes added to commit (use "git add" and/or "git commit -a")
157157
These changes are not changes to files: they are changes to submodules (more on
158158
this [later](#git-submodules)). To get rid of those, run `git submodule update`
159159
(or run any `x.py` command, which will automatically update the submodules).
160-
Note that there is (as of <!-- date: 2021-07 --> July 2021) a [bug][#77620] if you use
161-
worktrees, submodules, and `x.py` in a commit hook. If you run into an error
160+
Note that there is (as of <!-- date: 2022-02 --> February 2022) a [bug][#77620] if you use
161+
worktrees, submodules, and `x.py` in a commit hook. If you run into an error
162162
like:
163163

164164
```

src/tests/compiletest.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,8 @@ fn main() {
451451

452452
## Revisions
453453

454-
Certain classes of tests support "revisions" (as of <!-- date: 2021-02 --> February 2021,
455-
this includes compile-fail, run-fail, and incremental, though
454+
Certain classes of tests support "revisions" (as of <!-- date: 2022-02 --> February 2022,
455+
this includes UI, assembly, codegen, incremental, and rustdoc UI tests, though
456456
incremental tests are somewhat different).
457457
Revisions allow a single test file to be used for multiple tests.
458458
This is done by adding a special header at the top of the file:

0 commit comments

Comments
 (0)