Fix cspell warning (#5890)

* Fix cspell warning

* cspell: -> spell-checker:
This commit is contained in:
Jeong, YunWon authored and GitHub committed 2025-07-03 12:04:43 +09:00
1 parent fffa735868
commit d40cbbb451
48 files changed
+54 -53

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:disable
// spell-checker:disable
//! An unresizable vector backed by a `Box<[T]>`
#![allow(clippy::needless_lifetimes)]
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:ignore ddfe
// spell-checker:ignore ddfe
use itertools::{Itertools, PeekingNext};
use malachite_bigint::{BigInt, Sign};
use num_traits::FromPrimitive;
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:disable
// spell-checker:disable
//! This module is modified from tokio::util::linked_list: <https://github.com/tokio-rs/tokio/blob/master/tokio/src/util/linked_list.rs>
//! Tokio is licensed under the MIT license:
+1
View File
@@ -1,3 +1,4 @@
// spell-checker:ignore upgradably sharedly
use lock_api::{
GetThreadId, RawMutex, RawRwLock, RawRwLockDowngrade, RawRwLockRecursive, RawRwLockUpgrade,
RawRwLockUpgradeDowngrade,
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:disable
// spell-checker:disable
// TODO: we can move more os-specific bindings/interfaces from stdlib::{os, posix, nt} to here
use std::{io, str::Utf8Error};
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:ignore uncomputed
// spell-checker:ignore uncomputed
use crate::atomic::{PyAtomic, Radium};
use crate::format::CharLen;
use crate::wtf8::{CodePoint, Wtf8, Wtf8Buf};
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:ignore aheui
// spell-checker:ignore aheui
/// Setting up a project with a frozen stdlib can be done *either* by using `rustpython::InterpreterConfig` or `rustpython_vm::Interpreter::with_init`.
/// See each function for example.
///
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell: disable
// spell-checker: disable
use super::{JitCompileError, JitSig, JitType};
use cranelift::codegen::ir::FuncRef;
use cranelift::prelude::*;
+1 -1
View File
@@ -242,7 +242,7 @@ fn write_profile(settings: &Settings) -> Result<(), Box<dyn std::error::Error>>
Some("html") => ProfileFormat::Html,
Some("text") => ProfileFormat::Text,
None if profile_output == Some("-".as_ref()) => ProfileFormat::Text,
// cspell:ignore speedscope
// spell-checker:ignore speedscope
Some("speedscope") | None => ProfileFormat::SpeedScope,
Some(other) => {
error!("Unknown profile format {}", other);
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:ignore ossl osslconf
// spell-checker:ignore ossl osslconf
fn main() {
println!(r#"cargo::rustc-check-cfg=cfg(osslconf, values("OPENSSL_NO_COMP"))"#);
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:ignore chunker
// spell-checker:ignore chunker
//! internal shared module for compression libraries
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:disable
// spell-checker:disable
pub(crate) use fcntl::make_module;
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:disable
// spell-checker:disable
pub(crate) use grp::make_module;
#[pymodule]
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:ignore LOJKINE
// spell-checker:ignore LOJKINE
// derived from https://github.com/lovasoa/json_in_type
// BSD 2-Clause License
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:ignore abday abmon yesexpr noexpr CRNCYSTR RADIXCHAR AMPM THOUSEP
// spell-checker:ignore abday abmon yesexpr noexpr CRNCYSTR RADIXCHAR AMPM THOUSEP
pub(crate) use _locale::make_module;
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:disable
// spell-checker:disable
//! mmap module
pub(crate) use mmap::make_module;
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:disable
// spell-checker:disable
pub(crate) use _overlapped::make_module;
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:disable
// spell-checker:disable
use crate::vm::{
builtins::PyListRef,
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:disable
// spell-checker:disable
pub(crate) use resource::make_module;
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:disable
// spell-checker:disable
use crate::vm::{
PyObject, PyObjectRef, PyRef, PyResult, TryFromObject, VirtualMachine, builtins::PyListRef,
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:disable
// spell-checker:disable
use crate::vm::{PyRef, VirtualMachine, builtins::PyModule};
#[cfg(feature = "ssl")]
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:disable
// spell-checker:disable
use crate::vm::{PyRef, VirtualMachine, builtins::PyModule};
use openssl_probe::ProbeResult;
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:disable
// spell-checker:disable
pub(crate) use self::termios::make_module;
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:ignore createcommand
// spell-checker:ignore createcommand
pub(crate) use self::_tkinter::make_module;
+2 -2
View File
@@ -1,4 +1,4 @@
// cspell:ignore iparam
// spell-checker:ignore iparam
use std::sync::LazyLock;
use super::type_;
@@ -590,7 +590,7 @@ impl Representable for PyGenericAlias {
impl Iterable for PyGenericAlias {
// ga_iter
// cspell:ignore gaiterobject
// spell-checker:ignore gaiterobject
// TODO: gaiterobject
fn iter(zelf: PyRef<Self>, vm: &VirtualMachine) -> PyResult {
// CPython's ga_iter creates an iterator that yields one starred GenericAlias
+5 -5
View File
@@ -577,7 +577,7 @@ impl PyStr {
fn _compute_hash(&self, vm: &VirtualMachine) -> hash::PyHash {
let hash_val = vm.state.hash_secret.hash_bytes(self.as_bytes());
debug_assert_ne!(hash_val, hash::SENTINEL);
// cspell:ignore cmpxchg
// spell-checker:ignore cmpxchg
// like with char_len, we don't need a cmpxchg loop, since it'll always be the same value
self.hash.store(hash_val, atomic::Ordering::Relaxed);
hash_val
@@ -2263,9 +2263,9 @@ mod tests {
("Format This As Title String", "fOrMaT thIs aS titLe String"),
("Format,This-As*Title;String", "fOrMaT,thIs-aS*titLe;String"),
("Getint", "getInt"),
// cspell:disable-next-line
// spell-checker:disable-next-line
("Greek Ωppercases ...", "greek ωppercases ..."),
// cspell:disable-next-line
// spell-checker:disable-next-line
("Greek ῼitlecases ...", "greek ῳitlecases ..."),
];
for (title, input) in tests {
@@ -2280,9 +2280,9 @@ mod tests {
"A Titlecased Line",
"A\nTitlecased Line",
"A Titlecased, Line",
// cspell:disable-next-line
// spell-checker:disable-next-line
"Greek Ωppercases ...",
// cspell:disable-next-line
// spell-checker:disable-next-line
"Greek ῼitlecases ...",
];
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:ignore cmeth
// spell-checker:ignore cmeth
/*! Python `super` class.
See also [CPython source code.](https://github.com/python/cpython/blob/50b48572d9a90c5bb36e2bef6179548ea927a35a/Objects/typeobject.c#L7663)
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:ignore unchunked
// spell-checker:ignore unchunked
use crate::{
AsObject, PyObject, PyObjectRef, PyPayload, PyResult, TryFromBorrowedObject, VirtualMachine,
anystr::{self, AnyStr, AnyStrContainer, AnyStrWrapper},
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:disable
// spell-checker:disable
pub(crate) mod array;
pub(crate) mod base;
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:disable
// spell-checker:disable
use crate::builtins::{PyStr, PyTupleRef, PyTypeRef};
use crate::convert::ToPyObject;
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:disable
// spell-checker:disable
use crate::{PyRef, VirtualMachine, builtins::PyModule};
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:ignore pyfrozen pycomplex
// spell-checker:ignore pyfrozen pycomplex
pub(crate) use decl::make_module;
#[pymodule(name = "marshal")]
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:disable
// spell-checker:disable
pub use msvcrt::*;
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:disable
// spell-checker:disable
use crate::{PyRef, VirtualMachine, builtins::PyModule};
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:disable
// spell-checker:disable
use crate::{
AsObject, Py, PyPayload, PyResult, VirtualMachine,
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:disable
// spell-checker:disable
use crate::{PyRef, VirtualMachine, builtins::PyModule};
use std::os::unix::io::RawFd;
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:disable
// spell-checker:disable
//! `posix` compatible module for `not(any(unix, windows))`
use crate::{PyRef, VirtualMachine, builtins::PyModule};
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:disable
// spell-checker:disable
pub(crate) use pwd::make_module;
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:disable
// spell-checker:disable
use crate::{PyRef, VirtualMachine, builtins::PyModule};
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:ignore typevarobject funcobj
// spell-checker:ignore typevarobject funcobj
use crate::{
AsObject, PyObject, PyObjectRef, PyPayload, PyRef, PyResult, VirtualMachine,
builtins::{PyTupleRef, PyTypeRef, pystr::AsPyStr},
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:ignore typevarobject funcobj
// spell-checker:ignore typevarobject funcobj
use crate::{PyPayload, PyRef, VirtualMachine, class::PyClassImpl, stdlib::PyModule};
pub use crate::stdlib::typevar::{
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:disable
// spell-checker:disable
#![allow(non_snake_case)]
pub(crate) use _winapi::make_module;
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:disable
// spell-checker:disable
#![allow(non_snake_case)]
use crate::{PyRef, VirtualMachine, builtins::PyModule};
+2 -2
View File
@@ -36,11 +36,11 @@ pub struct Settings {
/// sys.argv
pub argv: Vec<String>,
// cspell:ignore Xfoo
// spell-checker:ignore Xfoo
/// -Xfoo[=bar]
pub xoptions: Vec<(String, Option<String>)>,
// cspell:ignore Wfoo
// spell-checker:ignore Wfoo
/// -Wfoo
pub warnoptions: Vec<String>,
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:disable
// spell-checker:disable
use rustpython_sre_engine::{Request, State, StrDrive};
struct Pattern {
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:disable
// spell-checker:disable
//! Unstable functions from [`core::char`]
use core::slice;
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:disable
// spell-checker:disable
//! Modified from core::str::count
use super::Wtf8;
+1 -1
View File
@@ -1,4 +1,4 @@
// cspell:disable
// spell-checker:disable
//! An implementation of [WTF-8], a utf8-compatible encoding that allows for
//! unpaired surrogate codepoints. This implementation additionally allows for