Skip to content

Commit 507f777

Browse files
committed
add bootstrap and librustdoc
1 parent 44577ac commit 507f777

File tree

9 files changed

+17
-10
lines changed

9 files changed

+17
-10
lines changed

.github/workflows/spellcheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ jobs:
1919
uses: crate-ci/typos@v1.28.2
2020
with:
2121
# sync target files with src/tools/tidy/src/ext_tool_checks.rs
22-
files: ./compiler ./library
22+
files: ./compiler ./library ./src/bootstrap ./src/librustdoc
2323
config: ./typos.toml

src/bootstrap/src/utils/change_tracker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ pub const CONFIG_CHANGE_HISTORY: &[ChangeInfo] = &[
149149
ChangeInfo {
150150
change_id: 121976,
151151
severity: ChangeSeverity::Info,
152-
summary: "A new `boostrap-cache-path` option has been introduced which can be utilized to modify the cache path for bootstrap.",
152+
summary: "A new `bootstrap-cache-path` option has been introduced which can be utilized to modify the cache path for bootstrap.",
153153
},
154154
ChangeInfo {
155155
change_id: 122108,

src/librustdoc/html/markdown/footnotes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ impl<'a, I: Iterator<Item = SpannedEvent<'a>>> Footnotes<'a, I> {
3838
let key = key.to_owned();
3939
let FootnoteDef { content, id } =
4040
self.footnotes.entry(key).or_insert(FootnoteDef { content: Vec::new(), id: new_id });
41-
// Don't allow changing the ID of existing entrys, but allow changing the contents.
41+
// Don't allow changing the ID of existing entries, but allow changing the contents.
4242
(content, *id)
4343
}
4444

@@ -82,7 +82,7 @@ impl<'a, I: Iterator<Item = SpannedEvent<'a>>> Iterator for Footnotes<'a, I> {
8282
return Some((self.handle_footnote_reference(reference), range));
8383
}
8484
Some((Event::Start(Tag::FootnoteDefinition(def)), _)) => {
85-
// When we see a footnote definition, collect the assocated content, and store
85+
// When we see a footnote definition, collect the associated content, and store
8686
// that for rendering later.
8787
let content = self.collect_footnote_def();
8888
let (entry_content, _) = self.get_entry(&def);

src/librustdoc/html/render/write_shared.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ impl CratesIndexPart {
443443
.expect("Object Replacement Character (U+FFFC) should not appear in the --index-page")
444444
}
445445

446-
/// Might return parts that are duplicate with ones in prexisting index.html
446+
/// Might return parts that are duplicate with ones in preexisting index.html
447447
fn get(crate_name: &str, external_crates: &[String]) -> Result<PartsAndLocations<Self>, Error> {
448448
let mut ret = PartsAndLocations::default();
449449
let path = Path::new("index.html");

src/librustdoc/html/static/js/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1719,7 +1719,7 @@ function preLoadCss(cssUrl) {
17191719
// 300px, and the RUSTDOC_MOBILE_BREAKPOINT is 700px, so BODY_MIN must be
17201720
// at most 400px. Otherwise, it would start out at the default size, then
17211721
// grabbing the resize handle would suddenly cause it to jank to
1722-
// its contraint-generated maximum.
1722+
// its constraint-generated maximum.
17231723
const RUSTDOC_MOBILE_BREAKPOINT = 700;
17241724
const BODY_MIN = 400;
17251725
// At half-way past the minimum size, vanish the sidebar entirely

src/librustdoc/passes/strip_aliased_non_local.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ struct NonLocalStripper<'tcx> {
4242
impl DocFolder for NonLocalStripper<'_> {
4343
fn fold_item(&mut self, i: Item) -> Option<Item> {
4444
// If not local, we want to respect the original visibility of
45-
// the field and not the one given by the user for the currrent crate.
45+
// the field and not the one given by the user for the current crate.
4646
//
4747
// FIXME(#125009): Not-local should probably consider same Cargo workspace
4848
if let Some(def_id) = i.def_id()

src/librustdoc/passes/strip_hidden.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ impl DocFolder for Stripper<'_, '_> {
168168
self.update_retained = old;
169169
if ret.item_id == clean::ItemId::DefId(CRATE_DEF_ID.into()) {
170170
// We don't strip the current crate, even if it has `#[doc(hidden)]`.
171-
debug!("strip_hidden: Not strippping local crate");
171+
debug!("strip_hidden: Not stripping local crate");
172172
Some(ret)
173173
} else {
174174
Some(strip_item(ret))

src/tools/tidy/src/ext_tool_checks.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,14 @@ fn check_impl(
229229
if spellcheck_all || spellcheck_fix {
230230
let config_path = root_path.join("typos.toml");
231231
// sync target files with .github/workflows/ci.yml
232-
let mut args =
233-
vec!["-c", config_path.as_os_str().to_str().unwrap(), "./compiler", "./library"];
232+
let mut args = vec![
233+
"-c",
234+
config_path.as_os_str().to_str().unwrap(),
235+
"./compiler",
236+
"./library",
237+
"./src/bootstrap",
238+
"./src/librustdoc",
239+
];
234240

235241
if spellcheck_all {
236242
eprintln!("spellcheck files");

typos.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,5 @@ extend-ignore-re = [
6666
"\\.arg\\(\"Oh no, a tpyo!\"\\)",
6767
# string used in benches
6868
"\"core::iter::adapters::Copie\"",
69+
"-Ccontrol-flow-guard",
6970
]

0 commit comments

Comments
 (0)