Skip to content

Commit

Permalink
Fix cargo doc warnings (#1986)
Browse files Browse the repository at this point in the history
  • Loading branch information
samestep authored Jan 27, 2025
1 parent 4297343 commit e7ca2cf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/wasm-encoder/src/core/code.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ impl Function {
///
/// This encoding doesn't include the variable-width size field
/// that `encode` will write before the added bytes. As such, its
/// length will match the return value of [`byte_len`].
/// length will match the return value of [`Function::byte_len`].
///
/// # Use Case
///
Expand Down
3 changes: 3 additions & 0 deletions crates/wasm-smith/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,9 @@ define_config! {
/// `allowed_instruction()` does not include vector instructions, the
/// generated programs will not include these instructions but could
/// contain vector types.
///
/// [`InstructionKind::Numeric`]: crate::InstructionKind::Numeric
/// [`InstructionKind::NumericInt`]: crate::InstructionKind::NumericInt
pub allowed_instructions: InstructionKinds = InstructionKinds::all(),

/// Determines whether we generate floating point instructions and types.
Expand Down
2 changes: 1 addition & 1 deletion crates/wasmparser/src/validator/func.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ impl<T: WasmModuleResources> FuncValidator<T> {
self.validator.with_resources(&self.resources, offset)
}

/// Same as [`FuncValidator::visit`] except that the returned type
/// Same as [`FuncValidator::visitor`] except that the returned type
/// implements the [`VisitSimdOperator`](crate::VisitSimdOperator) trait as
/// well.
#[cfg(feature = "simd")]
Expand Down
2 changes: 2 additions & 0 deletions crates/wit-parser/src/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1613,6 +1613,8 @@ fn eat_id(tokens: &mut Tokenizer<'_>, expected: &str) -> Result<Span> {

/// A listing of source files which are used to get parsed into an
/// [`UnresolvedPackage`].
///
/// [`UnresolvedPackage`]: crate::UnresolvedPackage
#[derive(Clone, Default)]
pub struct SourceMap {
sources: Vec<Source>,
Expand Down

0 comments on commit e7ca2cf

Please sign in to comment.