Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cargo doc warnings #1986

Merged
merged 1 commit into from
Jan 27, 2025
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
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
Loading