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 unsafe_api doc comments, and use statements #430

Merged
merged 1 commit into from
Dec 23, 2023
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
10 changes: 5 additions & 5 deletions lrlex/src/lib/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -212,15 +212,15 @@ 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);
/// }
/// ```
///
/// 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 {
Expand All @@ -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.
Expand Down
10 changes: 5 additions & 5 deletions lrpar/src/lib/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -257,15 +257,15 @@ 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);
/// }
/// ```
///
/// 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 {
Expand All @@ -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.
Expand Down