rust/src/test
Léo Lanteri Thauvin cc2a1271d4
Rollup merge of #88226 - steffahn:an_rc, r=michaelwoerister
Fix typo “a Rc” → “an Rc” (and a few more)

After stumbling about it in the dev-guide, I’ve devided to eliminate all mentions of “a Rc”, replacing it with “an Rc”. E.g.
```plain
$ rg "(^|[^'])\ba\b[^\w=:]*\bRc"
compiler/rustc_data_structures/src/owning_ref/mod.rs
1149:/// Typedef of a owning reference that uses a `Rc` as the owner.

library/std/src/ffi/os_str.rs
919:    /// Converts a [`OsString`] into a [`Rc`]`<OsStr>` without copying or allocating.

library/std/src/ffi/c_str.rs
961:    /// Converts a [`CString`] into a [`Rc`]`<CStr>` without copying or allocating.

src/doc/rustc-dev-guide/src/query.md
61:are cheaply cloneable; insert a `Rc` if necessary).

src/doc/book/src/ch15-06-reference-cycles.md
72:decreases the reference count of the `a` `Rc<List>` instance from 2 to 1 as

library/alloc/src/rc.rs
1746:    /// Converts a generic type `T` into a `Rc<T>`
```
_(the match in the book is a false positive)_
Since the dev-guide is a submodule, it’s getting a separate PR: rust-lang/rustc-dev-guide#1191

I’ve also gone ahead and done the same search for `RwLock` and hit a few cases in the `OwningRef` adaption. Then, I couldn’t keep the countless cases of “a owning …” or “a owner” unaddressed, which concludes this PR.

`@rustbot` label C-cleanup
2021-08-25 15:48:53 +02:00
..
assembly Re-Annotate the tests with needs-llvm-components 2021-06-24 23:13:08 +03:00
auxiliary
codegen Auto merge of #88128 - cuviper:needs-asm-support, r=Mark-Simulacrum 2021-08-21 12:57:00 +00:00
codegen-units
debuginfo Fix a debuginfo test 2021-08-16 16:28:16 +00:00
incremental Rollup merge of #88230 - steffahn:a_an, r=oli-obk 2021-08-23 20:45:49 +02:00
mir-opt Fix typos “an”→“a” and a few different ones that appeared in the same search 2021-08-22 18:15:49 +02:00
pretty Make Arguments constructors unsafe 2021-08-16 16:28:16 +00:00
run-make Update tests 2021-08-24 11:39:22 -04:00
run-make-fulldeps Auto merge of #85344 - cbeuw:remap-across-cwd, r=michaelwoerister 2021-08-25 10:58:43 +00:00
run-pass-valgrind
rustdoc Give precedence to html_root_url over --extern-html-root-url by default, but add a way to opt-in to the previous behavior 2021-08-19 05:11:22 +00:00
rustdoc-gui Rollup merge of #88093 - Kobzol:rustdoc-wrap-code-in-code-tag, r=GuillaumeGomez 2021-08-19 19:30:09 +02:00
rustdoc-js fix(rustdoc): generics search 2021-07-01 06:40:27 -07:00
rustdoc-js-std fix(rustdoc): generics search 2021-07-01 06:40:27 -07:00
rustdoc-json
rustdoc-ui Fix typos “a”→“an” 2021-08-22 15:35:11 +02:00
rustfix
ui Rollup merge of #88226 - steffahn:an_rc, r=michaelwoerister 2021-08-25 15:48:53 +02:00
ui-fulldeps Fix typos “an”→“a” and a few different ones that appeared in the same search 2021-08-22 18:15:49 +02:00
COMPILER_TESTS.md