Skip to content

Commit 0c8c934

Browse files
committed
review
1 parent f0b2195 commit 0c8c934

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

.github/workflows/spellcheck.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
uses: actions/checkout@v4
1616

1717
- name: check typos
18-
# sync version with src/tools/tidy/src/ext_tool_checks.rs
18+
# sync version with src/tools/tidy/src/ext_tool_checks.rs in spellcheck_runner
1919
uses: crate-ci/typos@v1.34.0
2020
with:
21-
# sync target files with src/tools/tidy/src/ext_tool_checks.rs
21+
# sync target files with src/tools/tidy/src/ext_tool_checks.rs in check_impl
2222
files: ./compiler ./library ./src/bootstrap ./src/librustdoc
2323
config: ./typos.toml

compiler/rustc_hir/src/hir.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4224,7 +4224,7 @@ impl fmt::Display for Constness {
42244224
}
42254225
}
42264226

4227-
/// The actually safety specified in syntax. We may treat
4227+
/// The actual safety specified in syntax. We may treat
42284228
/// its safety different within the type system to create a
42294229
/// "sound by default" system that needs checking this enum
42304230
/// explicitly to allow unsafe operations.

library/panic_unwind/src/seh.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ static mut TYPE_DESCRIPTOR: _TypeDescriptor = _TypeDescriptor {
264264
// runtime under a try/catch block and the panic that we generate here will be
265265
// used as the result of the exception copy. This is used by the C++ runtime to
266266
// support capturing exceptions with std::exception_ptr, which we can't support
267-
// because Box<dyn Any> isn't cloneable.
267+
// because Box<dyn Any> isn't clonable.
268268
macro_rules! define_cleanup {
269269
($abi:tt $abi2:tt) => {
270270
unsafe extern $abi fn exception_cleanup(e: *mut Exception) {

src/tools/tidy/src/ext_tool_checks.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ fn check_impl(
228228

229229
if spellcheck_all || spellcheck_fix {
230230
let config_path = root_path.join("typos.toml");
231-
// sync target files with .github/workflows/ci.yml
231+
// sync target files with .github/workflows/spellcheck.yml
232232
let mut args = vec![
233233
"-c",
234234
config_path.as_os_str().to_str().unwrap(),
@@ -522,7 +522,7 @@ fn spellcheck_runner(args: &[&str]) -> Result<(), Error> {
522522
return Err(Error::MissingReq(
523523
"typos",
524524
"spellcheck file checks",
525-
// sync version with .github/workflows/ci.yml
525+
// sync version with .github/workflows/spellcheck.yml
526526
Some("install tool via `cargo install typos-cli@1.34.0`".to_owned()),
527527
));
528528
}

typos.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ filetimes = "filetimes"
3232
misformed = "misformed"
3333
targetting = "targetting"
3434
publically = "publically"
35+
clonable = "clonable"
3536

3637
# this can be valid word, depends on dictionary edition
3738
#matcheable = "matcheable"

0 commit comments

Comments
 (0)