Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 947a149

Browse filesBrowse files
committed
Fix more cspell warnings
1 parent 66cf905 commit 947a149
Copy full SHA for 947a149

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner

57 files changed

+269
-205
lines changed

‎.cspell.dict/cpython.txt

Copy file name to clipboardExpand all lines: .cspell.dict/cpython.txt
+11-4Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@ badsyntax
66
basetype
77
boolop
88
bxor
9+
cached_tsver
910
cellarg
1011
cellvar
1112
cellvars
1213
cmpop
13-
weakreflist
14-
XXPRIME
14+
denom
1515
dictoffset
1616
elts
17-
xstat
1817
excepthandler
1918
fileutils
2019
finalbody
@@ -30,17 +29,25 @@ linearise
3029
maxdepth
3130
mult
3231
nkwargs
32+
numer
3333
orelse
34+
pathconfig
3435
patma
3536
posonlyarg
3637
posonlyargs
3738
prec
39+
PYTHREAD_NAME
40+
SA_ONSTACK
3841
stackdepth
42+
tok_oldval
3943
unaryop
4044
unparse
4145
unparser
4246
VARKEYWORDS
4347
varkwarg
4448
wbits
49+
weakreflist
4550
withitem
46-
withs
51+
withs
52+
xstat
53+
XXPRIME

‎.cspell.dict/python-more.txt

Copy file name to clipboardExpand all lines: .cspell.dict/python-more.txt
+36Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ getpip
8080
getrandom
8181
getrecursionlimit
8282
getrefcount
83+
getsizeof
8384
getweakrefcount
8485
getweakrefs
8586
getwindowsversion
@@ -90,6 +91,7 @@ hamt
9091
hostnames
9192
idfunc
9293
idiv
94+
idxs
9395
impls
9496
indexgroup
9597
infj
@@ -99,6 +101,7 @@ irepeat
99101
isabstractmethod
100102
isbytes
101103
iscased
104+
isfinal
102105
istext
103106
itemiterator
104107
itemsize
@@ -111,9 +114,11 @@ kwargs
111114
kwdefaults
112115
kwonlyargcount
113116
lastgroup
117+
lastindex
114118
linearization
115119
linearize
116120
listcomp
121+
longrange
117122
lvalue
118123
mappingproxy
119124
maskpri
@@ -137,25 +142,39 @@ nbytes
137142
ncallbacks
138143
ndigits
139144
ndim
145+
nldecoder
140146
nlocals
147+
NOARGS
141148
nonbytes
149+
Nonprintable
142150
origname
151+
ospath
152+
pendingcr
153+
phello
154+
platlibdir
143155
posixsubprocess
144156
posonly
145157
posonlyargcount
158+
prepending
146159
profilefunc
160+
pycache
147161
pycodecs
148162
pycs
149163
pyexpat
164+
PYTHONBREAKPOINT
150165
PYTHONDEBUG
166+
PYTHONHASHSEED
151167
PYTHONHOME
152168
PYTHONINSPECT
153169
PYTHONOPTIMIZE
154170
PYTHONPATH
155171
PYTHONPATH
172+
PYTHONSAFEPATH
156173
PYTHONVERBOSE
174+
PYTHONWARNDEFAULTENCODING
157175
PYTHONWARNINGS
158176
pytraverse
177+
PYVENV
159178
qualname
160179
quotetabs
161180
radd
@@ -164,6 +183,7 @@ rdivmod
164183
readall
165184
readbuffer
166185
reconstructor
186+
refcnt
167187
releaselevel
168188
reverseitemiterator
169189
reverseiterator
@@ -178,23 +198,37 @@ rsub
178198
rtruediv
179199
rvalue
180200
scproxy
201+
seennl
181202
setattro
182203
setcomp
204+
setrecursionlimit
183205
showwarnmsg
184206
signum
185207
slotnames
208+
STACKLESS
186209
stacklevel
187210
stacksize
188211
startpos
212+
subclassable
189213
subclasscheck
190214
subclasshook
191215
suboffset
216+
suboffsets
217+
SUBPATTERN
192218
sumprod
193219
surrogateescape
194220
surrogatepass
221+
sysconf
195222
sysconfigdata
196223
sysvars
224+
teedata
225+
thisclass
197226
titlecased
227+
tobytes
228+
tolist
229+
toreadonly
230+
TPFLAGS
231+
tracefunc
198232
unimportable
199233
unionable
200234
unraisablehook
@@ -208,7 +242,9 @@ warningregistry
208242
warnmsg
209243
warnoptions
210244
warnopts
245+
weaklist
211246
weakproxy
247+
weakrefs
212248
winver
213249
withdata
214250
xmlcharrefreplace

‎.cspell.dict/rust-more.txt

Copy file name to clipboardExpand all lines: .cspell.dict/rust-more.txt
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
ahash
2+
arrayvec
23
bidi
34
biguint
45
bindgen
@@ -14,6 +15,8 @@ cranelift
1415
cstring
1516
datelike
1617
deserializer
18+
fdiv
19+
flamescope
1720
flate2
1821
fract
1922
getres
@@ -44,16 +47,21 @@ objclass
4447
peekable
4548
powc
4649
powf
50+
powi
4751
prepended
4852
punct
4953
puruspe
5054
replacen
55+
rmatch
56+
rposition
5157
rsplitn
5258
rustc
5359
rustfmt
5460
rustyline
61+
seedable
5562
seekfrom
5663
siphash
64+
siphasher
5765
splitn
5866
subsec
5967
thiserror
@@ -63,8 +71,10 @@ trai
6371
ulonglong
6472
unic
6573
unistd
74+
unraw
6675
unsync
6776
wasmbind
77+
wasmtime
6878
widestring
6979
winapi
7080
winsock

‎.cspell.json

Copy file name to clipboardExpand all lines: .cspell.json
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
],
4747
// words - list of words to be always considered correct
4848
"words": [
49+
"RUSTPYTHONPATH",
4950
// RustPython
5051
"aiterable",
5152
"alnum",
@@ -69,9 +70,11 @@
6970
"makeunicodedata",
7071
"miri",
7172
"notrace",
73+
"openat",
7274
"pyarg",
7375
"pyarg",
7476
"pyargs",
77+
"pyast",
7578
"PyAttr",
7679
"pyc",
7780
"PyClass",
@@ -80,6 +83,7 @@
8083
"PyFunction",
8184
"pygetset",
8285
"pyimpl",
86+
"pylib",
8387
"pymember",
8488
"PyMethod",
8589
"PyModule",
@@ -100,6 +104,7 @@
100104
"richcompare",
101105
"RustPython",
102106
"struc",
107+
"sysmodule",
103108
"tracebacks",
104109
"typealiases",
105110
"Unconstructible",
@@ -112,11 +117,14 @@
112117
"CLOEXEC",
113118
"codeset",
114119
"endgrent",
120+
"gethrvtime",
115121
"getrusage",
116122
"nanosleep",
123+
"sigaction",
117124
"WRLCK",
118125
// win32
119126
"birthtime",
127+
"IFEXEC",
120128
],
121129
// flagWords - list of words to be always considered incorrect
122130
"flagWords": [

‎common/src/format.rs

Copy file name to clipboardExpand all lines: common/src/format.rs
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// cspell:ignore ddfe
12
use itertools::{Itertools, PeekingNext};
23
use malachite_bigint::{BigInt, Sign};
34
use num_traits::FromPrimitive;

‎common/src/os.rs

Copy file name to clipboardExpand all lines: common/src/os.rs
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ pub fn last_posix_errno() -> i32 {
6262
}
6363

6464
#[cfg(unix)]
65-
pub fn bytes_as_osstr(b: &[u8]) -> Result<&std::ffi::OsStr, Utf8Error> {
65+
pub fn bytes_as_os_str(b: &[u8]) -> Result<&std::ffi::OsStr, Utf8Error> {
6666
use std::os::unix::ffi::OsStrExt;
6767
Ok(std::ffi::OsStr::from_bytes(b))
6868
}
6969

7070
#[cfg(not(unix))]
71-
pub fn bytes_as_osstr(b: &[u8]) -> Result<&std::ffi::OsStr, Utf8Error> {
71+
pub fn bytes_as_os_str(b: &[u8]) -> Result<&std::ffi::OsStr, Utf8Error> {
7272
Ok(std::str::from_utf8(b)?.as_ref())
7373
}
7474

‎common/src/static_cell.rs

Copy file name to clipboardExpand all lines: common/src/static_cell.rs
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ mod threading {
7676

7777
impl<T> StaticCell<T> {
7878
#[doc(hidden)]
79-
pub const fn _from_oncecell(inner: OnceCell<T>) -> Self {
79+
pub const fn _from_once_cell(inner: OnceCell<T>) -> Self {
8080
Self { inner }
8181
}
8282

@@ -108,7 +108,7 @@ mod threading {
108108
($($(#[$attr:meta])* $vis:vis static $name:ident: $t:ty;)+) => {
109109
$($(#[$attr])*
110110
$vis static $name: $crate::static_cell::StaticCell<$t> =
111-
$crate::static_cell::StaticCell::_from_oncecell($crate::lock::OnceCell::new());)+
111+
$crate::static_cell::StaticCell::_from_once_cell($crate::lock::OnceCell::new());)+
112112
};
113113
}
114114
}

‎common/src/str.rs

Copy file name to clipboardExpand all lines: common/src/str.rs
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,8 @@ pub fn get_chars(s: &str, range: impl RangeBounds<usize>) -> &str {
360360
}
361361

362362
#[inline]
363-
pub fn char_range_end(s: &str, nchars: usize) -> Option<usize> {
364-
let i = match nchars.checked_sub(1) {
363+
pub fn char_range_end(s: &str, n_chars: usize) -> Option<usize> {
364+
let i = match n_chars.checked_sub(1) {
365365
Some(last_char_index) => {
366366
let (index, c) = s.char_indices().nth(last_char_index)?;
367367
index + c.len_utf8()
@@ -395,8 +395,8 @@ pub fn get_codepoints(w: &Wtf8, range: impl RangeBounds<usize>) -> &Wtf8 {
395395
}
396396

397397
#[inline]
398-
pub fn codepoint_range_end(s: &Wtf8, nchars: usize) -> Option<usize> {
399-
let i = match nchars.checked_sub(1) {
398+
pub fn codepoint_range_end(s: &Wtf8, n_chars: usize) -> Option<usize> {
399+
let i = match n_chars.checked_sub(1) {
400400
Some(last_char_index) => {
401401
let (index, c) = s.code_point_indices().nth(last_char_index)?;
402402
index + c.len_wtf8()

‎src/lib.rs

Copy file name to clipboardExpand all lines: src/lib.rs
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,14 +233,14 @@ fn write_profile(settings: &Settings) -> Result<(), Box<dyn std::error::Error>>
233233
enum ProfileFormat {
234234
Html,
235235
Text,
236-
Speedscope,
236+
SpeedScore,
237237
}
238238
let profile_output = settings.profile_output.as_deref();
239239
let profile_format = match settings.profile_format.as_deref() {
240240
Some("html") => ProfileFormat::Html,
241241
Some("text") => ProfileFormat::Text,
242242
None if profile_output == Some("-".as_ref()) => ProfileFormat::Text,
243-
Some("speedscope") | None => ProfileFormat::Speedscope,
243+
Some("speedscope") | None => ProfileFormat::SpeedScore,
244244
Some(other) => {
245245
error!("Unknown profile format {}", other);
246246
// TODO: Need to change to ExitCode or Termination
@@ -251,7 +251,7 @@ fn write_profile(settings: &Settings) -> Result<(), Box<dyn std::error::Error>>
251251
let profile_output = profile_output.unwrap_or_else(|| match profile_format {
252252
ProfileFormat::Html => "flame-graph.html".as_ref(),
253253
ProfileFormat::Text => "flame.txt".as_ref(),
254-
ProfileFormat::Speedscope => "flamescope.json".as_ref(),
254+
ProfileFormat::SpeedScore => "flamescope.json".as_ref(),
255255
});
256256

257257
let profile_output: Box<dyn io::Write> = if profile_output == "-" {
@@ -265,7 +265,7 @@ fn write_profile(settings: &Settings) -> Result<(), Box<dyn std::error::Error>>
265265
match profile_format {
266266
ProfileFormat::Html => flame::dump_html(profile_output)?,
267267
ProfileFormat::Text => flame::dump_text_to_writer(profile_output)?,
268-
ProfileFormat::Speedscope => flamescope::dump(profile_output)?,
268+
ProfileFormat::SpeedScore => flamescope::dump(profile_output)?,
269269
}
270270

271271
Ok(())

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.