Skip to content

Commit 3e54818

Browse files
Boshenclaudeautofix-ci[bot]
authored
chore(rust): use cargo-shear to toggle Cargo.toml [lib] test = bool (#20195)
Co-authored-by: Claude Opus 4.6 <[email protected]> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 3a86427 commit 3e54818

File tree

43 files changed

+133
-138
lines changed

Some content is hidden

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

43 files changed

+133
-138
lines changed

.github/workflows/autofix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
with:
2828
restore-cache: true
2929
cache-key: warm
30-
tools: just,cargo-shear@1.9.1
30+
tools: just,cargo-shear@1.10.0
3131
components: rustfmt
3232

3333
- name: cargo-shear

.github/workflows/copilot-setup-steps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
with:
3333
cache-key: warm
3434
save-cache: false
35-
tools: just,cargo-insta,typos-cli,cargo-shear@1.9.1,ast-grep
35+
tools: just,cargo-insta,typos-cli,cargo-shear@1.10.0,ast-grep
3636
components: clippy rust-docs rustfmt rust-analyzer
3737

3838
- uses: oxc-project/setup-node@8958a8e040102244b619c4a94fccb657a44b1c21 # v1.0.6

.github/workflows/update_submodules.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- uses: oxc-project/setup-rust@4f86b5d871ae7d24bc420e578be68964ab09e5cc # v1.0.15
5353
with:
5454
cache-key: conformance
55-
tools: just,[email protected]
55+
tools: just
5656
components: rustfmt
5757

5858
- name: Get latest SHAs for all submodules
@@ -267,7 +267,9 @@ jobs:
267267
268268
- name: Run format
269269
if: steps.check-updates.outputs.updates_needed == 'true'
270-
run: just fmt
270+
run: |
271+
cargo fmt
272+
node --run fmt
271273
272274
- name: Clone submodules and update fixtures
273275
if: steps.check-updates.outputs.updates_needed == 'true'

crates/oxc_diagnostics/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ description.workspace = true
1717
workspace = true
1818

1919
[lib]
20-
doctest = false
2120

2221
[dependencies]
2322
cow-utils = { workspace = true }

crates/oxc_diagnostics/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//! report problems. It implements [miette]'s [`Diagnostic`] trait, making it compatible with other
55
//! tooling you may be using.
66
//!
7-
//! ```rust
7+
//! ```rust,ignore
88
//! use oxc_diagnostics::{OxcDiagnostic, Result};
99
//! fn my_tool() -> Result<()> {
1010
//! try_something().map_err(|e| OxcDiagnostic::error(e.to_string()))?;
@@ -19,7 +19,7 @@
1919
//! [`DiagnosticService`] to format and render them to a string or a stream. It can receive
2020
//! [`Error`]s over a multi-producer, single consumer
2121
//!
22-
//! ```
22+
//! ```rust,ignore
2323
//! use std::{path::PathBuf, sync::Arc, thread};
2424
//! use oxc_diagnostics::{DiagnosticService, Error, OxcDiagnostic, GraphicalReportHandler, NamedSource};
2525
//!
@@ -265,7 +265,7 @@ impl OxcDiagnostic {
265265
/// Suggest a possible solution for a problem to the user.
266266
///
267267
/// ## Example
268-
/// ```
268+
/// ```rust,ignore
269269
/// use std::path::PathBuf;
270270
/// use oxc_diagnostics::OxcDiagnostic
271271
///
@@ -283,7 +283,7 @@ impl OxcDiagnostic {
283283
/// Show a note to the user.
284284
///
285285
/// ## Example
286-
/// ```
286+
/// ```rust,ignore
287287
/// use std::path::PathBuf;
288288
/// use oxc_diagnostics::OxcDiagnostic
289289
///

crates/oxc_diagnostics/src/reporter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use crate::{Error, Severity};
1111
/// receive diagnostics.
1212
///
1313
/// ## Example
14-
/// ```
14+
/// ```rust,ignore
1515
/// use oxc_diagnostics::{DiagnosticReporter, Error, Severity};
1616
///
1717
/// #[derive(Default)]

crates/oxc_diagnostics/src/service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub type DiagnosticReceiver = mpsc::Receiver<Vec<Error>>;
2626
/// single-consumer channel.
2727
///
2828
/// # Example
29-
/// ```rust
29+
/// ```rust,ignore
3030
/// use std::{path::PathBuf, thread};
3131
/// use oxc_diagnostics::{Error, OxcDiagnostic, DiagnosticService, GraphicalReportHandler};
3232
///

crates/oxc_estree/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ description.workspace = true
1616
workspace = true
1717

1818
[lib]
19-
doctest = false
2019

2120
[dependencies]
2221
oxc_data_structures = { workspace = true, features = [

crates/oxc_estree/src/serialize/structs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ pub(super) enum StructState {
186186
/// The only method it's legal to call on a `FlatStructSerializer` is `serialize_struct`.
187187
///
188188
/// # Example
189-
/// ```
189+
/// ```rust,ignore
190190
/// struct SomeNode {
191191
/// // We want to flatten `Span` as if its fields were on `SomeNode`
192192
/// span: Span,

crates/oxc_estree_tokens/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ workspace = true
1818

1919
[lib]
2020
doctest = false
21+
test = false
2122

2223
[dependencies]
2324
oxc_ast = { workspace = true }

0 commit comments

Comments
 (0)