Skip to content

Commit 200a2dd

Browse files
committed
Be more consistent in escaping rustc
1 parent 960f001 commit 200a2dd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

posts/inside-rust/2024-01-02-this-development-cycle-in-cargo-1-76.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Other areas for potentially splitting out of the `cargo` library include:
4949
A user ran into path-length issues on Windows with `cargo install --git`
5050
([rust-lang/cargo#13020](https://github.com/rust-lang/cargo/issues/13020))
5151
which led to [ChrisDenton](https://github.com/ChrisDenton) to post a PR for
52-
[embedding a Windows manifest into the cargo binary](https://github.com/rust-lang/cargo/pull/13131), modeled after rustc.
52+
[embedding a Windows manifest into the cargo binary](https://github.com/rust-lang/cargo/pull/13131), modeled after `rustc`.
5353
After some exploration on that PR, it was merged with
5454
[rust-lang/cargo#13141](https://github.com/rust-lang/cargo/issues/13141)
5555
being created to track some of the remaining work
@@ -92,9 +92,9 @@ An important consideration being raised is that the users can successfully remap
9292
##### `-Zcheck-cfg`
9393

9494
[`-Zcheck-cfg`](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#check-cfg)
95-
is an unstable feature that will cause rustc to warn on undefined conditional compilation, like `#[cfg(unknown)]` or `#[cfg(feature = "unknown")]`.
95+
is an unstable feature that will cause `rustc` to warn on undefined conditional compilation, like `#[cfg(unknown)]` or `#[cfg(feature = "unknown")]`.
9696

97-
[Urgau](https://github.com/Urgau) has been working across rustc and cargo to polish up this feature for stabilization.
97+
[Urgau](https://github.com/Urgau) has been working across `rustc` and `cargo` to polish up this feature for stabilization.
9898
Recently, they:
9999
- Stopped checking names/values on the `rustc --cfg` CLI flag ([rust-lang/rust#117522](https://github.com/rust-lang/rust/pull/117522)) after a [zulip thread](https://rust-lang.zulipchat.com/#narrow/stream/246057-t-cargo/topic/check-cfg.20and.20RUSTFLAGS.20interaction) and some [discussion in the tracking issue](https://github.com/rust-lang/rust/issues/82450#issuecomment-1813687060)
100100
- Fixed cargo so that it will re-compile packages when features change, avoiding a stale warning status ([rust-lang/cargo#13012](https://github.com/rust-lang/cargo/pull/13012))
@@ -137,7 +137,7 @@ This changed with the introduction of the [`[lints]` table](https://blog.rust-la
137137
We are tracking cargo warning control (and the lints it can unblock) in
138138
[rust-lang/cargo#12235](https://github.com/rust-lang/cargo/issues/12235).
139139

140-
The first milestone is for TOML parse errors to match rustc's error style, going from
140+
The first milestone is for TOML parse errors to match `rustc`'s error style, going from
141141
```
142142
error: failed to parse manifest at `[..]`
143143
@@ -156,17 +156,17 @@ error: invalid type: integer `3`, expected a boolean or string
156156
6 | build = 3
157157
| ^
158158
```
159-
Rather than writing our own error message renderer that imitates rustc,
159+
Rather than writing our own error message renderer that imitates `rustc`,
160160
[Muscraft](https://github.com/Muscraft) resurrected the
161161
[`annotate-snippets` project](https://github.com/rust-lang/annotate-snippets-rs/)
162-
with the intention of making it work for cargo and then migrating rustc to it.
162+
with the intention of making it work for `cargo` and then migrating `rustc` to it.
163163
They released annotate-snippets [v0.10](https://github.com/rust-lang/annotate-snippets-rs/blob/master/CHANGELOG.md#0100---december-12-2023)
164164
and created
165165
[rust-lang/cargo#13172](https://github.com/rust-lang/cargo/pull/13172)
166166
for integrating it into cargo when parsing `Cargo.toml` files.
167167

168168
We will also need to decide what to do about
169-
[the differences in colors between rustc and cargo](https://github.com/rust-lang/cargo/issues/12740).
169+
[the differences in colors between `rustc` and `cargo`](https://github.com/rust-lang/cargo/issues/12740).
170170
[Muscraft](https://github.com/Muscraft) has been looking into why `rustc`'s colors were chosen and are preparing a proposal for what both programs should use.
171171

172172
##### `cargo info`
@@ -358,7 +358,7 @@ The `cargo` identifier is referred to as an infostring.
358358

359359
There are two directions we can take the infostring in the long run:
360360
- Does the parent tool (in this case, cargo) own the definition of the infostring and is allowed whatever identifiers it wants
361-
- Does rustc own the meaning of the infostring, allowing the Rust Project to add additional types of metadata without concern for breaking tools that rely on custom identifiers
361+
- Does `rustc` own the meaning of the infostring, allowing the Rust Project to add additional types of metadata without concern for breaking tools that rely on custom identifiers
362362

363363
The embedded manifest syntax RFC was updated with a [new section](https://github.com/epage/rfcs/blob/frontmatter/text/3503-frontmatter.md#optional-or-additional-infostrings),
364364
side-stepping this discussion by suggesting we hard code support for `cargo` right now and leave the decision to the future when we have more context for how this might be used.

0 commit comments

Comments
 (0)