Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6fc4e6b

Browse files
committed
misc: fix up intra doc links (make use of rfc 1946)
See: https://rust-lang.github.io/rfcs/1946-intra-rustdoc-links.html and: rust-lang/rust#47046 πŸŽ‰
1 parent 5f71438 commit 6fc4e6b

File tree

12 files changed

+27
-20
lines changed

12 files changed

+27
-20
lines changed

β€Žsrc/control.rsβ€Ž

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
//! The [`Control` trait](trait.Control.html) and friends.
1+
//! The [`Control` trait](crate::control::Control) and friends.
22
//!
3-
//! Unlike the [`Peripherals` trait](../peripherals/trait.Peripherals.html) and
4-
//! the [`Memory` trait](../memory/trait.Memory.html), there is no shim
5-
//! implementation of Control; instead the 'shim' is an instruction level
6-
//! simulator that lives in the [interp module](../interp).
3+
//! Unlike the [`Peripherals` trait](crate::peripherals::Peripherals) and the
4+
//! [`Memory` trait](crate::memory::Memory), there is no shim implementation of
5+
//! Control; instead the 'shim' is an instruction level simulator that lives in
6+
//! the [interp module](crate::interp).
77
88
use super::error::Error;
99
use super::{Addr, Word};

β€Žsrc/lib.rsβ€Ž

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![feature(stmt_expr_attributes)]
22
#![feature(trace_macros)]
3+
34
// TODO: forbid
45
#![warn(
56
bad_style,
@@ -27,6 +28,7 @@
2728
// TODO: deny
2829
#![warn(
2930
missing_debug_implementations,
31+
intra_doc_link_resolution_failure,
3032
missing_docs,
3133
unsafe_code,
3234
trivial_casts,
@@ -36,11 +38,12 @@
3638
unused_qualifications,
3739
unused_results
3840
)]
41+
3942
// Mark the crate as no_std if the `no_std` feature is enabled.
4043
#![cfg_attr(feature = "no_std", no_std)]
4144

4245
#[cfg(feature = "shims")]
43-
mod shims;
46+
pub mod shims;
4447

4548
// Can't have `no_std` and `shims` enabled!
4649
#[cfg(all(feature = "no_std", feature = "shims"))]

β€Žsrc/peripherals/adc.rsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! [`Adc` trait](trait.Adc.html) and associated types.
1+
//! [`Adc` trait](Adc) and associated types.
22
33
use crate::peripheral_trait;
44

β€Žsrc/peripherals/clock.rsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! [`Clock` trait](trait.Clock.html).
1+
//! [`Clock` trait](Clock).
22
33
use crate::Word;
44

β€Žsrc/peripherals/gpio.rsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! [`Gpio` trait](trait.Gpio.html) and friends.
1+
//! [`Gpio` trait](Gpio) and friends.
22
33
use core::convert::TryFrom;
44

β€Žsrc/peripherals/input.rsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
//! [`Input` device trait](trait.Input.html) and related things.
1+
//! [`Input` device trait](Input) and related things.
22
33
pub trait Input {}

β€Žsrc/peripherals/mod.rsβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//! Peripherals! The [`Peripherals` supertrait](trait.Peripherals.html) and the
2-
//! rest of the peripheral and device traits.
1+
//! Peripherals! The [`Peripherals` supertrait](Peripherals) and the rest of the
2+
//! peripheral and device traits.
33
44
pub mod adc;
55
pub mod clock;

β€Žsrc/peripherals/output.rsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
//! [`Output` device trait](trait.Output.html) and friends.
1+
//! [`Output` device trait](Output) and friends.
22
33
pub trait Output {}

β€Žsrc/peripherals/pwm.rsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! [`Pwm` trait](trait.Pwm.html) and helpers.
1+
//! [`Pwm` trait](Pwm) and helpers.
22
33
// TODO: Switch to enum for pins
44
// TODO: Add Errors

β€Žsrc/peripherals/timers.rsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! [`Timers` trait](trait.Timers.html) and related types.
1+
//! [`Timers` trait](Timers) and related types.
22
33
use crate::Word;
44

0 commit comments

Comments
Β (0)