Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/oxc_cfg/src/visit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ where
unreachable!()
);
} else if !finished.is_visited(&v) {
try_control!(visitor(DfsEvent::BackEdge(u, v)), continue);
try_control!(visitor(DfsEvent::BackEdge(u, v)), {});
} else {
try_control!(visitor(DfsEvent::CrossForwardEdge(u, v)), continue);
try_control!(visitor(DfsEvent::CrossForwardEdge(u, v)), {});
}
}
);
Expand Down
2 changes: 0 additions & 2 deletions crates/oxc_data_structures/src/assert_unchecked.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ const _MACRO_CANNOT_BE_USED_WITHOUT_UNSAFE: () = ();
#[expect(clippy::undocumented_unsafe_blocks)]
mod test {
mod pass {
use crate::assert_unchecked;

#[test]
fn plain() {
unsafe { assert_unchecked!(0 == 0) };
Expand Down
2 changes: 0 additions & 2 deletions crates/oxc_span/src/compact_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,6 @@ macro_rules! format_compact_str {
mod test {
use compact_str::CompactString;

use crate::format_compact_str;

use super::CompactStr;

#[test]
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_transformer/src/typescript/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ impl<'a> TypeScriptModule<'a, '_> {
Some(ctx.ast.declaration_variable(SPAN, kind, decls, false))
}

#[expect(clippy::only_used_in_recursion)]
#[expect(clippy::self_only_used_in_recursion)]
fn transform_ts_type_name(
&self,
type_name: &mut TSTypeName<'a>,
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_traverse/scripts/lib/ancestor.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export default function generateAncestorsCode(types) {
/// i.e. \`Ancestor\`s can only exist within the body of \`enter_*\` and \`exit_*\` methods
/// and cannot "escape" from them.
//
// SAFETY:
// INVARIANTS:
// * This type must be \`#[repr(u16)]\`.
// * Variant discriminants must correspond to those in \`AncestorType\`.
//
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_traverse/scripts/lib/walk.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default function generateWalkFunctionsCode(types) {

/// Walk AST with \`Traverse\` impl.
///
/// SAFETY:
/// # Safety
/// * \`program\` must be a pointer to a valid \`Program\` which has lifetime \`'a\`
/// (\`Program<'a>\`).
/// * \`ctx\` must contain a \`TraverseAncestry<'a>\` with single \`Ancestor::None\` on its stack.
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_traverse/src/generated/ancestor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ pub(crate) enum AncestorType {
/// i.e. `Ancestor`s can only exist within the body of `enter_*` and `exit_*` methods
/// and cannot "escape" from them.
//
// SAFETY:
// INVARIANTS:
// * This type must be `#[repr(u16)]`.
// * Variant discriminants must correspond to those in `AncestorType`.
//
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_traverse/src/generated/walk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use crate::{

/// Walk AST with `Traverse` impl.
///
/// SAFETY:
/// # Safety
/// * `program` must be a pointer to a valid `Program` which has lifetime `'a`
/// (`Program<'a>`).
/// * `ctx` must contain a `TraverseAncestry<'a>` with single `Ancestor::None` on its stack.
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.91.1"
channel = "1.92.0"
profile = "default"
Loading