Skip to content

Commit e398841

Browse files
committed
Fix up rustdoc warnings
1 parent 99a1a94 commit e398841

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

crates/cpuid-utils/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ impl CpuidSet {
475475
}
476476

477477
/// Returns `Ok` if `self` is equivalent to `other`; if not, returns a
478-
/// [`CpuidMapMismatch`] describing the first observed difference between
478+
/// [`CpuidSetMismatch`] describing the first observed difference between
479479
/// the two sets.
480480
pub fn is_equivalent_to(
481481
&self,

lib/propolis-client/src/lib.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@
1313
/// "manual" impls of things that Progenitor would otherwise derive).
1414
///
1515
/// In the generated client, the native "top-level" instance spec and component
16-
/// types ([`VersionedInstanceSpec`], [`InstanceSpecV0`], and
17-
/// [`ReplacementComponent`]) replace their generated counterparts. This
18-
/// obviates the need to maintain `From` impls to convert between native and
19-
/// generated types.
16+
/// types ([`crate::instance_spec::VersionedInstanceSpec`],
17+
/// [`crate::instance_spec::InstanceSpecV0`], and
18+
/// [`crate::instance_spec::ReplacementComponent`]) replace their generated
19+
/// counterparts. This obviates the need to maintain `From` impls to convert
20+
/// between native and generated types.
2021
pub mod instance_spec {
2122
pub use propolis_api_types::instance_spec::{
2223
components::{backends::*, board::*, devices::*},

lib/propolis/src/block/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,9 @@ pub trait Backend: Send + Sync + 'static {
279279
/// requests while paused and resume issuing them when they are resumed.
280280
///
281281
/// WARNING: The caller may abort VM startup and cancel the future created
282-
/// by this routine. In this case the caller may not call [`stop`] prior to
283-
/// dropping the backend. This routine is, however, guaranteed to be called
284-
/// before the VM's vCPUs are started.
282+
/// by this routine. In this case the caller may not call [`Self::stop()`]
283+
/// prior to dropping the backend. This routine is, however, guaranteed to
284+
/// be called before the VM's vCPUs are started.
285285
async fn start(&self) -> anyhow::Result<()>;
286286

287287
/// Stop attempting to process new [Request]s from [Device] (if attached)

lib/propolis/src/block/tracking.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ impl<T> CompletionCallback for T where
3939
/// use will be missing calls into those probes.
4040
///
4141
/// Each [`Tracking`] also allows one optional callback that it will call
42-
/// whenever an I/O is completed. This can be set in the
43-
/// [`Tracking::with_completion_callback()`] constructor, or with
42+
/// whenever an I/O is completed. This can be set via
4443
/// [`Tracking::set_completion_callback()`].
4544
pub struct Tracking<T> {
4645
inner: Mutex<TrackingInner<T>>,

lib/propolis/src/cpuid.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ use std::ops::Bound;
1313
use bhyve_api::vcpu_cpuid_entry;
1414
use cpuid_utils::{CpuidIdent, CpuidMap, CpuidSet, CpuidValues, CpuidVendor};
1515

16-
/// Convert a [vcpu_cpuid_entry] into an ([CpuidLeaf],
17-
/// [CpuidValues]) tuple, suitable for insertion into a [Set].
16+
/// Convert a [vcpu_cpuid_entry] into an ([CpuidIdent],
17+
/// [CpuidValues]) tuple, suitable for insertion into a [CpuidSet].
1818
///
1919
/// This would be implemented as a [From] trait if rust let us.
2020
pub fn from_raw(
@@ -74,7 +74,7 @@ impl Specializer {
7474
Self { vcpuid: Some(vcpuid), ..self }
7575
}
7676

77-
/// Specify CPU topology types to render into the specialized [Set]
77+
/// Specify CPU topology types to render into the specialized [CpuidSet]
7878
///
7979
/// Without basic information such as the number of vCPUs (set by
8080
/// [`Self::with_vcpu_count()`]), population of the requested topology
@@ -92,7 +92,7 @@ impl Specializer {
9292
Self { cpu_topo_populate, ..self }
9393
}
9494

95-
/// Specify CPU topology types to clear from the specialized [Set]
95+
/// Specify CPU topology types to clear from the specialized [CpuidSet]
9696
///
9797
/// Some leafs in the provided set may not match expectations for the given
9898
/// CPU vendor. Without populating it with generated data (via
@@ -113,7 +113,7 @@ impl Specializer {
113113
}
114114

115115
/// Given the attributes and modifiers specified in this [Specializer],
116-
/// render an updated [Set] reflecting those data.
116+
/// render an updated [CpuidSet] reflecting those data.
117117
pub fn execute(
118118
self,
119119
mut set: CpuidSet,

lib/propolis/src/enlightenment/hyperv/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
//! implement the hypervisor described in Microsoft's Hypervisor Top-Level
99
//! Functional Specification (TLFS). The behavior in this module is based on
1010
//! version 6.0b of the TLFS, which is available on GitHub:
11-
//! https://github.com/MicrosoftDocs/Virtualization-Documentation/blob/main/tlfs/Hypervisor%20Top%20Level%20Functional%20Specification%20v6.0b.pdf
11+
//! <https://github.com/MicrosoftDocs/Virtualization-Documentation/blob/main/tlfs/Hypervisor%20Top%20Level%20Functional%20Specification%20v6.0b.pdf>
1212
//!
1313
//! Microsoft also maintains a list of minimum requirements for any hypervisor
1414
//! that intends to implement a Hyper-V-compatible interface:
15-
//! https://github.com/MicrosoftDocs/Virtualization-Documentation/blob/main/tlfs/Requirements%20for%20Implementing%20the%20Microsoft%20Hypervisor%20Interface.pdf
15+
//! <https://github.com/MicrosoftDocs/Virtualization-Documentation/blob/main/tlfs/Requirements%20for%20Implementing%20the%20Microsoft%20Hypervisor%20Interface.pdf>
1616
1717
use std::sync::{Arc, Mutex, OnceLock};
1818

0 commit comments

Comments
 (0)