Ed Page
c87c2dae38
Merge pull request #1082 from epage/locale
...
fix(config): Don't overwrite locale and tokenizer config
2024-08-22 10:26:30 -05:00
Ed Page
0c11a25f73
fix(config): Don't overwrite locale and tokenizer config
...
This was broken in #882
2024-08-22 10:17:18 -05:00
John Vandenberg
5062c092de
fix: BinaryFile display
2024-08-18 07:29:30 +08:00
John Vandenberg
9cfa3d376d
chore(deps): Update derive_more to v1.0
2024-08-16 20:16:07 +08:00
renovate[bot]
0d9c778a8c
chore(deps): Update Rust Stable to v1.80 ( #1064 )
...
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Update | Change |
|---|---|---|
| [STABLE](https://togithub.com/rust-lang/rust ) | minor | `1.79` ->
`1.80` |
---
### Release Notes
<details>
<summary>rust-lang/rust (STABLE)</summary>
###
[`v1.80`](https://togithub.com/rust-lang/rust/blob/HEAD/RELEASES.md#Version-1800-2024-07-25 )
[Compare
Source](https://togithub.com/rust-lang/rust/compare/1.79.0...1.80.0 )
\==========================
<a id="1.80-Language"></a>
## Language
- [Document maximum allocation
size](https://togithub.com/rust-lang/rust/pull/116675/ )
- [Allow zero-byte offsets and ZST read/writes on arbitrary
pointers](https://togithub.com/rust-lang/rust/pull/117329/ )
- [Support C23's variadics without a named
parameter](https://togithub.com/rust-lang/rust/pull/124048/ )
- [Stabilize `exclusive_range_pattern`
feature](https://togithub.com/rust-lang/rust/pull/124459/ )
- [Guarantee layout and ABI of `Result` in some
scenarios](https://togithub.com/rust-lang/rust/pull/124870 )
<a id="1.80-Compiler"></a>
## Compiler
- [Update cc crate to v1.0.97 allowing additional spectre mitigations on
MSVC targets](https://togithub.com/rust-lang/rust/pull/124892/ )
- [Allow field reordering on types marked
`repr(packed(1))`](https://togithub.com/rust-lang/rust/pull/125360/ )
- [Add a lint against never type fallback affecting unsafe
code](https://togithub.com/rust-lang/rust/pull/123939/ )
- [Disallow cast with trailing braced macro in
let-else](https://togithub.com/rust-lang/rust/pull/125049/ )
- [Expand `for_loops_over_fallibles` lint to lint on fallibles behind
references.](https://togithub.com/rust-lang/rust/pull/125156/ )
- [self-contained linker: retry linking without `-fuse-ld=lld` on CCs
that don't support it](https://togithub.com/rust-lang/rust/pull/125417/ )
- [Do not parse CVarArgs (`...`) as a type in trait
bounds](https://togithub.com/rust-lang/rust/pull/125863/ )
- Improvements to LLDB formatting
[#​124458](https://togithub.com/rust-lang/rust/pull/124458 )
[#​124500](https://togithub.com/rust-lang/rust/pull/124500 )
- [For the wasm32-wasip2 target default to PIC and do not use
`-fuse-ld=lld`](https://togithub.com/rust-lang/rust/pull/124858/ )
- [Add x86\_64-unknown-linux-none as a tier 3
target](https://togithub.com/rust-lang/rust/pull/125023/ )
- [Lint on `foo.into_iter()` resolving to `&Box<[T]>:
IntoIterator`](https://togithub.com/rust-lang/rust/pull/124097/ )
<a id="1.80-Libraries"></a>
## Libraries
- [Add `size_of` and `size_of_val` and `align_of` and `align_of_val` to
the prelude](https://togithub.com/rust-lang/rust/pull/123168/ )
- [Abort a process when FD ownership is
violated](https://togithub.com/rust-lang/rust/pull/124210/ )
- [io::Write::write_fmt: panic if the formatter fails when the stream
does not fail](https://togithub.com/rust-lang/rust/pull/125012/ )
- [Panic if `PathBuf::set_extension` would add a path
separator](https://togithub.com/rust-lang/rust/pull/125070/ )
- [Add assert_unsafe_precondition to
unchecked\_{add,sub,neg,mul,shl,shr}
methods](https://togithub.com/rust-lang/rust/pull/121571/ )
- [Update `c_char` on AIX to use the correct
type](https://togithub.com/rust-lang/rust/pull/122986/ )
- [`offset_of!` no longer returns a
temporary](https://togithub.com/rust-lang/rust/pull/124484/ )
- [Handle sigma in `str.to_lowercase`
correctly](https://togithub.com/rust-lang/rust/pull/124773/ )
- [Raise `DEFAULT_MIN_STACK_SIZE` to at least
64KiB](https://togithub.com/rust-lang/rust/pull/126059/ )
<a id="1.80-Stabilized-APIs"></a>
## Stabilized APIs
- [`impl Default for
Rc<CStr>`](https://doc.rust-lang.org/beta/alloc/rc/struct.Rc.html#impl-Default-for-Rc%3CCStr%3E )
- [`impl Default for
Rc<str>`](https://doc.rust-lang.org/beta/alloc/rc/struct.Rc.html#impl-Default-for-Rc%3Cstr%3E )
- [`impl Default for
Rc<[T]>`](https://doc.rust-lang.org/beta/alloc/rc/struct.Rc.html#impl-Default-for-Rc%3C%5BT%5D%3E )
- [`impl Default for
Arc<str>`](https://doc.rust-lang.org/beta/alloc/sync/struct.Arc.html#impl-Default-for-Arc%3Cstr%3E )
- [`impl Default for
Arc<CStr>`](https://doc.rust-lang.org/beta/alloc/sync/struct.Arc.html#impl-Default-for-Arc%3CCStr%3E )
- [`impl Default for
Arc<[T]>`](https://doc.rust-lang.org/beta/alloc/sync/struct.Arc.html#impl-Default-for-Arc%3C%5BT%5D%3E )
- [`impl IntoIterator for
Box<[T]>`](https://doc.rust-lang.org/beta/alloc/boxed/struct.Box.html#impl-IntoIterator-for-Box%3C%5BI%5D,+A%3E )
- [`impl FromIterator<String> for
Box<str>`](https://doc.rust-lang.org/beta/alloc/boxed/struct.Box.html#impl-FromIterator%3CString%3E-for-Box%3Cstr%3E )
- [`impl FromIterator<char> for
Box<str>`](https://doc.rust-lang.org/beta/alloc/boxed/struct.Box.html#impl-FromIterator%3Cchar%3E-for-Box%3Cstr%3E )
-
[`LazyCell`](https://doc.rust-lang.org/beta/core/cell/struct.LazyCell.html )
-
[`LazyLock`](https://doc.rust-lang.org/beta/std/sync/struct.LazyLock.html )
-
[`Duration::div_duration_f32`](https://doc.rust-lang.org/beta/std/time/struct.Duration.html#method.div_duration_f32 )
-
[`Duration::div_duration_f64`](https://doc.rust-lang.org/beta/std/time/struct.Duration.html#method.div_duration_f64 )
-
[`Option::take_if`](https://doc.rust-lang.org/beta/std/option/enum.Option.html#method.take_if )
-
[`Seek::seek_relative`](https://doc.rust-lang.org/beta/std/io/trait.Seek.html#method.seek_relative )
-
[`BinaryHeap::as_slice`](https://doc.rust-lang.org/beta/std/collections/struct.BinaryHeap.html#method.as_slice )
-
[`NonNull::offset`](https://doc.rust-lang.org/beta/std/ptr/struct.NonNull.html#method.offset )
-
[`NonNull::byte_offset`](https://doc.rust-lang.org/beta/std/ptr/struct.NonNull.html#method.byte_offset )
-
[`NonNull::add`](https://doc.rust-lang.org/beta/std/ptr/struct.NonNull.html#method.add )
-
[`NonNull::byte_add`](https://doc.rust-lang.org/beta/std/ptr/struct.NonNull.html#method.byte_add )
-
[`NonNull::sub`](https://doc.rust-lang.org/beta/std/ptr/struct.NonNull.html#method.sub )
-
[`NonNull::byte_sub`](https://doc.rust-lang.org/beta/std/ptr/struct.NonNull.html#method.byte_sub )
-
[`NonNull::offset_from`](https://doc.rust-lang.org/beta/std/ptr/struct.NonNull.html#method.offset_from )
-
[`NonNull::byte_offset_from`](https://doc.rust-lang.org/beta/std/ptr/struct.NonNull.html#method.byte_offset_from )
-
[`NonNull::read`](https://doc.rust-lang.org/beta/std/ptr/struct.NonNull.html#method.read )
-
[`NonNull::read_volatile`](https://doc.rust-lang.org/beta/std/ptr/struct.NonNull.html#method.read_volatile )
-
[`NonNull::read_unaligned`](https://doc.rust-lang.org/beta/std/ptr/struct.NonNull.html#method.read_unaligned )
-
[`NonNull::write`](https://doc.rust-lang.org/beta/std/ptr/struct.NonNull.html#method.write )
-
[`NonNull::write_volatile`](https://doc.rust-lang.org/beta/std/ptr/struct.NonNull.html#method.write_volatile )
-
[`NonNull::write_unaligned`](https://doc.rust-lang.org/beta/std/ptr/struct.NonNull.html#method.write_unaligned )
-
[`NonNull::write_bytes`](https://doc.rust-lang.org/beta/std/ptr/struct.NonNull.html#method.write_bytes )
-
[`NonNull::copy_to`](https://doc.rust-lang.org/beta/std/ptr/struct.NonNull.html#method.copy_to )
-
[`NonNull::copy_to_nonoverlapping`](https://doc.rust-lang.org/beta/std/ptr/struct.NonNull.html#method.copy_to_nonoverlapping )
-
[`NonNull::copy_from`](https://doc.rust-lang.org/beta/std/ptr/struct.NonNull.html#method.copy_from )
-
[`NonNull::copy_from_nonoverlapping`](https://doc.rust-lang.org/beta/std/ptr/struct.NonNull.html#method.copy_from_nonoverlapping )
-
[`NonNull::replace`](https://doc.rust-lang.org/beta/std/ptr/struct.NonNull.html#method.replace )
-
[`NonNull::swap`](https://doc.rust-lang.org/beta/std/ptr/struct.NonNull.html#method.swap )
-
[`NonNull::drop_in_place`](https://doc.rust-lang.org/beta/std/ptr/struct.NonNull.html#method.drop_in_place )
-
[`NonNull::align_offset`](https://doc.rust-lang.org/beta/std/ptr/struct.NonNull.html#method.align_offset )
-
[`<[T]>::split_at_checked`](https://doc.rust-lang.org/beta/std/primitive.slice.html#method.split_at_checked )
-
[`<[T]>::split_at_mut_checked`](https://doc.rust-lang.org/beta/std/primitive.slice.html#method.split_at_mut_checked )
-
[`str::split_at_checked`](https://doc.rust-lang.org/beta/std/primitive.str.html#method.split_at_checked )
-
[`str::split_at_mut_checked`](https://doc.rust-lang.org/beta/std/primitive.str.html#method.split_at_mut_checked )
-
[`str::trim_ascii`](https://doc.rust-lang.org/beta/std/primitive.str.html#method.trim_ascii )
-
[`str::trim_ascii_start`](https://doc.rust-lang.org/beta/std/primitive.str.html#method.trim_ascii_start )
-
[`str::trim_ascii_end`](https://doc.rust-lang.org/beta/std/primitive.str.html#method.trim_ascii_end )
-
[`<[u8]>::trim_ascii`](https://doc.rust-lang.org/beta/core/primitive.slice.html#method.trim_ascii )
-
[`<[u8]>::trim_ascii_start`](https://doc.rust-lang.org/beta/core/primitive.slice.html#method.trim_ascii_start )
-
[`<[u8]>::trim_ascii_end`](https://doc.rust-lang.org/beta/core/primitive.slice.html#method.trim_ascii_end )
-
[`Ipv4Addr::BITS`](https://doc.rust-lang.org/beta/core/net/struct.Ipv4Addr.html#associatedconstant.BITS )
-
[`Ipv4Addr::to_bits`](https://doc.rust-lang.org/beta/core/net/struct.Ipv4Addr.html#method.to_bits )
-
[`Ipv4Addr::from_bits`](https://doc.rust-lang.org/beta/core/net/struct.Ipv4Addr.html#method.from_bits )
-
[`Ipv6Addr::BITS`](https://doc.rust-lang.org/beta/core/net/struct.Ipv6Addr.html#associatedconstant.BITS )
-
[`Ipv6Addr::to_bits`](https://doc.rust-lang.org/beta/core/net/struct.Ipv6Addr.html#method.to_bits )
-
[`Ipv6Addr::from_bits`](https://doc.rust-lang.org/beta/core/net/struct.Ipv6Addr.html#method.from_bits )
- [`Vec::<[T;
N]>::into_flattened`](https://doc.rust-lang.org/beta/alloc/vec/struct.Vec.html#method.into_flattened )
- [`<[[T;
N]]>::as_flattened`](https://doc.rust-lang.org/beta/core/primitive.slice.html#method.as_flattened )
- [`<[[T;
N]]>::as_flattened_mut`](https://doc.rust-lang.org/beta/core/primitive.slice.html#method.as_flattened_mut )
These APIs are now stable in const contexts:
-
[`<[T]>::last_chunk`](https://doc.rust-lang.org/beta/core/primitive.slice.html#method.last_chunk )
-
[`BinaryHeap::new`](https://doc.rust-lang.org/beta/std/collections/struct.BinaryHeap.html#method.new )
<a id="1.80-Cargo"></a>
## Cargo
- [Stabilize `-Zcheck-cfg` as always
enabled](https://togithub.com/rust-lang/cargo/pull/13571/ )
- [Warn, rather than fail publish, if a target is
excluded](https://togithub.com/rust-lang/cargo/pull/13713/ )
- [Add special `check-cfg` lint config for the `unexpected_cfgs`
lint](https://togithub.com/rust-lang/cargo/pull/13913/ )
- [Stabilize `cargo update --precise
<yanked>`](https://togithub.com/rust-lang/cargo/pull/13974/ )
- [Don't change file permissions on `Cargo.toml` when using `cargo
add`](https://togithub.com/rust-lang/cargo/pull/13898/ )
- [Support using `cargo fix` on IPv6-only
networks](https://togithub.com/rust-lang/cargo/pull/13907/ )
<a id="1.80-Rustdoc"></a>
## Rustdoc
- [Allow searching for
references](https://togithub.com/rust-lang/rust/pull/124148/ )
- [Stabilize `custom_code_classes_in_docs`
feature](https://togithub.com/rust-lang/rust/pull/124577/ )
- [fix: In cross-crate scenarios show enum variants on type aliases of
enums](https://togithub.com/rust-lang/rust/pull/125300/ )
<a id="1.80-Compatibility-Notes"></a>
## Compatibility Notes
- [rustfmt estimates line lengths differently when using non-ascii
characters](https://togithub.com/rust-lang/rustfmt/issues/6203 )
- [Type aliases are now handled correctly in orphan
check](https://togithub.com/rust-lang/rust/pull/117164/ )
- [Allow instructing rustdoc to read from stdin via
`-`](https://togithub.com/rust-lang/rust/pull/124611/ )
- [`std::env::{set_var, remove_var}` can no longer be converted to safe
function pointers and no longer implement the `Fn` family of
traits](https://togithub.com/rust-lang/rust/pull/124636 )
- [Warn (or error) when `Self` constructor from outer item is referenced
in inner nested item](https://togithub.com/rust-lang/rust/pull/124187/ )
- [Turn `indirect_structural_match` and `pointer_structural_match` lints
into hard errors](https://togithub.com/rust-lang/rust/pull/124661/ )
- [Make `where_clause_object_safety` lint a regular object safety
violation](https://togithub.com/rust-lang/rust/pull/125380/ )
- [Turn `proc_macro_back_compat` lint into a hard
error.](https://togithub.com/rust-lang/rust/pull/125596/ )
- [Detect unused structs even when implementing private
traits](https://togithub.com/rust-lang/rust/pull/122382/ )
- [`std::sync::ReentrantLockGuard<T>` is no longer `Sync` if `T:
!Sync`](https://togithub.com/rust-lang/rust/pull/125527 ) which means
[`std::io::StdoutLock` and `std::io::StderrLock` are no longer
Sync](https://togithub.com/rust-lang/rust/issues/127340 )
<a id="1.80-Internal-Changes"></a>
## Internal Changes
These changes do not affect any public interfaces of Rust, but they
represent
significant improvements to the performance or internals of rustc and
related
tools.
- Misc improvements to size of generated html by rustdoc e.g.
[#​124738](https://togithub.com/rust-lang/rust/pull/124738/ ) and
[#​123734](https://togithub.com/rust-lang/rust/pull/123734/ )
- [MSVC targets no longer depend on
libc](https://togithub.com/rust-lang/rust/pull/124050/ )
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "* * * * *" (UTC), Automerge - At any
time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View the
[repository job log](https://developer.mend.io/github/crate-ci/typos ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzguMCIsInVwZGF0ZWRJblZlciI6IjM3LjQzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-26 23:58:00 +00:00
Ed Page
267121b5d6
style: Make clippy happy
2024-07-26 16:08:02 -05:00
Ed Page
d5453cc46c
feat(config): Load config from Cargo.toml
...
Fixes #1060
2024-07-25 13:44:27 -05:00
Ed Page
95f556a918
refactor(config): Be more direct
2024-07-25 13:40:48 -05:00
Ed Page
626b4f71db
refactor(config): Centralize pyproject.toml value
2024-07-25 13:29:57 -05:00
Ed Page
5aa093dc25
fix(dict): Don't correct countr_one
...
Fixes #1061
2024-07-25 09:15:16 -05:00
Ed Page
8d0593d333
Merge pull request #1019 from SOF3/go-flate
...
fix(dict): ignore flate for Go files
2024-06-05 14:39:08 -05:00
SOFe
107f99d4c6
fix(dict): Ignore flate for Go files
...
Signed-off-by: SOFe <sofe2038@gmail.com>
2024-06-05 14:01:51 +08:00
Ed Page
6f2c324a4d
refactor: Resolve deprecations
2024-05-27 22:09:20 -05:00
Ed Page
8804d1d2f4
style: Address warnings
2024-05-02 11:59:32 -05:00
Ed Page
b6c895ea49
chore: Update from _rust/main template
2024-04-30 11:28:23 -05:00
Ed Page
ee32d77aba
fix(dict): Don't correct dBA
...
I went with the direct unit which will be considered and identifier by
the casing, rather than also allowing this as a word.
Fixes #997
2024-04-16 11:37:04 -05:00
augustelalande
5e639f1ddb
remove ipynb from python
2024-04-09 16:05:19 -04:00
augustelalande
2784d7deb5
add more python extensions
2024-04-07 22:40:02 -04:00
Ed Page
a9402e3f47
fix: Don't correct common Python identifiers
...
Fixes #966
Fixes #969
2024-04-02 10:34:28 -05:00
Ed Page
eb99975267
feat(cli): Add a --sort flag
2024-02-07 16:06:19 -06:00
Ed Page
ad80305210
fix(cli): Actually run single-threaded
2024-02-07 16:03:03 -06:00
Ed Page
fe1a73ca8a
fix(config): Don't treat ts as typoscript
...
Fixes #911
2024-01-19 10:26:22 -06:00
Ed Page
d543202e5b
fix(config): Remove confusing, redundant types
2024-01-19 10:16:01 -06:00
renovate[bot]
13eedae59e
chore(deps): update msrv to v1.75
2023-12-28 16:47:51 +00:00
Ed Page
bf66cbd0b6
fix(config): Apply extend-ignore-re to file names
...
Fixes #885
2023-12-27 10:13:43 -06:00
Ed Page
55d802d0ef
fix(dict): Mirror original case for custom dict
...
Fixes #781
2023-12-13 08:38:14 -06:00
Ed Page
1b92c0182c
fix(config): Propagate validation errors
...
When `flatten`ing an `Option`, all errors are silenced, making the value
`None`, not just "this field doesn't exist".
The easiest way around this was to not use `Option`.
Not too confident in all of the changes but tests pass?
Fixes #881
2023-12-08 13:07:52 -06:00
Ed Page
e24c694258
fix(cli): Respect force-exclude for simple exclude pattersn
...
Fixes #868
2023-11-06 11:32:44 -06:00
Ed Page
0a5b4abbd5
fix(cli): Make the correction stand out more
...
This does deviate from rustc for `long` format but it seems worth it.
I did move backticks to be out of the coloring so the `error:` was more
distinct from the typo in `long` format.
2023-10-27 09:28:11 -05:00
Ed Page
1ca321659d
fix(cli): Add styling to --file-types
2023-10-27 09:19:42 -05:00
Ed Page
686e4cebe8
fix(cli): Better match rustc's color choices
...
I missed that rustc was using "bright" colors
2023-10-27 09:16:29 -05:00
Ed Page
56eef884d7
refactor(cli): Simplify palette handling
...
This did include a couple of tweaks to make it closer to rustc
2023-10-27 09:15:03 -05:00
Ed Page
b2685877d2
fix(dict): Dont correct common Julia terms
2023-10-16 20:51:12 -05:00
Ed Page
a640285093
fix(dict): Match .jl to Julia, rather than lisp
2023-10-16 20:50:39 -05:00
Ed Page
b221e9ce56
chore: Clean up dependencies
2023-10-16 12:58:00 -05:00
Ed Page
be8628fcb3
feat(config): Allow ignoring words by regex
...
Fixes #852
2023-10-16 12:37:00 -05:00
Dawid Ciężarkiewicz
c2e3454a94
feat: --file-list
support
2023-10-11 16:32:31 -07:00
Delgan
8314a1567d
Add "--force-exclude" option
2023-10-09 19:39:11 +00:00
Ed Page
21c88ca878
fix(cli): Improve help layout
2023-10-02 13:22:44 -05:00
Ed Page
243b187934
fix(cli): Properly fallback to built-in ident dict
2023-09-27 10:35:22 -05:00
Ed Page
5fd0df2881
fix(cli): Dont correct O_WRONLY
...
Realized we could just hard code this for now rather creating a general
identifier dictionary.
Fixes #744
2023-09-25 12:50:07 -05:00
Ed Page
66a70abc40
refactor(cli): Make room for ident dict
2023-09-25 12:42:18 -05:00
Ed Page
fd6873b6e0
refactor(cli): Make room for ident correction
2023-09-25 12:40:17 -05:00
Logan Hunt
b856b9603f
feat(config): Support for pyproject.toml
files ( #790 )
...
This PR adds support for parsing `pyproject.toml` config files. The convention
for these files is to put any tooling related configuration into the
`tool.NAME` section, so in this case, `tool.typos`. I have verified that the
changes are pulled correctly, even if the `tool.typos` section is not present.
Closes #361
2023-09-06 15:31:14 -05:00
Ed Page
0c05b217d4
style: Make clippy happy
2023-09-01 10:20:03 -05:00
Ed Page
8be21b28e7
fix(cli): Improve error when args aren't present
2023-08-21 10:20:16 -05:00
Ed Page
c927717f2d
fix(cli): Report more errors through report system
2023-08-18 16:28:53 -05:00
Ed Page
104ebdcb6b
fix(cli): Report paths with errors
2023-08-18 16:28:00 -05:00
Ed Page
e003ac8f1e
fix(cli): Improve error on missing config
2023-08-18 16:08:25 -05:00
Ed Page
0becfbf6cf
fix: Accidentally ran typos on typos
2023-08-14 15:55:39 -05:00