Skip to content

Commit f7aba1e

Browse files
jasiszclaude
andcommitted
0.16.2: rustfmt + clippy doc-lazy-continuation
- `cargo fmt` reformat: trailing blank line in `playground.rs`, `types.rs::fn_body_emits_effect_call` doc shape. - `clippy::doc-lazy-continuation` triggered on the walker's multi-line doc — collapsed the `false positives ... false negatives ...` sentence into a single line so the lint stops reading it as an unindented paragraph break. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent a077586 commit f7aba1e

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

src/codegen/wasm_gc/types.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2035,16 +2035,14 @@ fn fn_body_calls_int_mod(fd: &crate::ast::FnDef) -> bool {
20352035
})
20362036
}
20372037

2038-
20392038
/// Returns true when the fn body contains anything that emits a
20402039
/// caller_fn slot at codegen — a dotted call (any `Attr(_, _)`
20412040
/// callee, including nested-module shape `Module.Sub.fn(args)`) or
20422041
/// an independent product (`?!` / `!`, lowers to group/branch
20432042
/// markers). Used to skip allocating a global for fns that never
20442043
/// need one. Conservative on dotted: builtin namespace calls like
2045-
/// `List.length` are also flagged. False positives cost one segment
2046-
/// + one global per fn — false negatives would crash wasm
2047-
/// validation, so the overcount is the safe direction.
2044+
/// `List.length` are also flagged; false positives cost one segment
2045+
/// + one global per fn, false negatives crash wasm validation.
20482046
fn fn_body_emits_effect_call(fd: &crate::ast::FnDef) -> bool {
20492047
use crate::ast::{Expr, FnBody, Stmt};
20502048
fn walk(e: &Expr) -> bool {

src/playground.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,6 @@ pub fn format_source(source: &str) -> String {
713713
.unwrap_or_else(|_| source.to_string())
714714
}
715715

716-
717716
#[cfg(feature = "playground")]
718717
mod bindgen {
719718
use wasm_bindgen::prelude::*;

0 commit comments

Comments
 (0)