From a6b4b672f37f9d4a05f0885c1159e081458b67c5 Mon Sep 17 00:00:00 2001 From: matt rice Date: Sat, 23 Dec 2023 00:50:52 -0800 Subject: [PATCH] Fix unsafe_api doc comments, and use statements --- lrlex/src/lib/mod.rs | 10 +++++----- lrpar/src/lib/mod.rs | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lrlex/src/lib/mod.rs b/lrlex/src/lib/mod.rs index 64f79b2ca..dbaf1374f 100644 --- a/lrlex/src/lib/mod.rs +++ b/lrlex/src/lib/mod.rs @@ -202,7 +202,7 @@ pub mod unstable_api { /// the "_unstable_api" feature. This feature controls /// whether the value has `pub` visibility outside the crate. #[cfg(feature = "_unstable_api")] - pub use unstable::UnstableApi; + pub use crate::unstable::UnstableApi; /// This is a a supertrait for traits that are considered to be Unstable. /// Unstable traits do not provide any semver guarantees. @@ -212,7 +212,7 @@ pub mod unstable_api { /// /// /// Declaring an unstable Api within the crate: - /// ``` + /// ```ignore_rust /// // Within the crate use `crate::unstable::` . /// pub trait Foo: crate::unstable::UnstableTrait { /// fn foo(key: crate::unstable::UnstableApi); @@ -220,7 +220,7 @@ pub mod unstable_api { /// ``` /// /// Deriving the trait outside the crate (requires feature `_unsealed_unstable_traits`) - /// ``` + /// ```ignore_rust /// struct Bar; /// impl unstable_api::UnstableTrait for Bar{} /// impl Foo for Bar { @@ -232,12 +232,12 @@ pub mod unstable_api { /// /// /// Calling an implementation of the trait outside the crate (requires feature `_unstable_api`: - /// ``` + /// ```ignore_rust /// let x: &dyn Foo = ...; /// x.foo(unstable_api::UnstableApi); /// ``` #[cfg(feature = "_unsealed_unstable_traits")] - pub use unstable::UnstableTrait; + pub use crate::unstable::UnstableTrait; /// An value that acts as a key to inform callers that they are /// calling an unstable internal api. This value is public by default. diff --git a/lrpar/src/lib/mod.rs b/lrpar/src/lib/mod.rs index 6926a7f85..e3c0f9e90 100644 --- a/lrpar/src/lib/mod.rs +++ b/lrpar/src/lib/mod.rs @@ -247,7 +247,7 @@ pub mod unstable_api { /// the "_unstable_api" feature. This feature controls /// whether the value has `pub` visibility outside the crate. #[cfg(feature = "_unstable_api")] - pub use unstable::UnstableApi; + pub use crate::unstable::UnstableApi; /// This is a a supertrait for traits that are considered to be Unstable. /// Unstable traits do not provide any semver guarantees. @@ -257,7 +257,7 @@ pub mod unstable_api { /// /// /// Declaring an unstable Api within the crate: - /// ``` + /// ```ignore_rust /// // Within the crate use `crate::unstable::` . /// pub trait Foo: crate::unstable::UnstableTrait { /// fn foo(key: crate::unstable::UnstableApi); @@ -265,7 +265,7 @@ pub mod unstable_api { /// ``` /// /// Deriving the trait outside the crate (requires feature `_unsealed_unstable_traits`) - /// ``` + /// ```ignore_rust /// struct Bar; /// impl unstable_api::UnstableTrait for Bar{} /// impl Foo for Bar { @@ -277,12 +277,12 @@ pub mod unstable_api { /// /// /// Calling an implementation of the trait outside the crate (requires feature `_unstable_api`: - /// ``` + /// ```ignore_rust /// let x: &dyn Foo = ...; /// x.foo(unstable_api::UnstableApi); /// ``` #[cfg(feature = "_unsealed_unstable_traits")] - pub use unstable::UnstableTrait; + pub use crate::unstable::UnstableTrait; /// An value that acts as a key to inform callers that they are /// calling an unstable internal api. This value is public by default.