-
Notifications
You must be signed in to change notification settings - Fork 109
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 doc warnings #2305
base: master
Are you sure you want to change the base?
Fix doc warnings #2305
Conversation
@@ -8,7 +8,7 @@ | |||
//! - You will probably need to add a new ID type in `spacetimedb_primitives`, | |||
//! with trait implementations in `spacetimedb_sats::{typespace, de::impl, ser::impl}`. | |||
//! - Add it to [`system_tables`], and define a constant for its index there. | |||
//! - Use [`st_fields_enum`] to define its column enum. | |||
//! - Use `st_fields_enum` to define its column enum. | |||
//! - Register its schema in [`system_module_def`], making sure to call `validate_system_table` at the end of the function. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sadly st_fields_enum
is not linkable here
@@ -1107,8 +1107,6 @@ impl WasmInstanceEnv { | |||
/// - `target` is not NULL and `target_ptr[..target_len]` is not in bounds of WASM memory. | |||
/// - `filename` is not NULL and `filename_ptr[..filename_len]` is not in bounds of WASM memory. | |||
/// - `message` is not NULL and `message_ptr[..message_len]` is not in bounds of WASM memory. | |||
/// | |||
/// [target]: https://docs.rs/log/latest/log/struct.Record.html#method.target | |||
#[tracing::instrument(level = "trace", skip_all)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not understood by cargo doc
@@ -88,7 +88,7 @@ pub struct ExecutionUnit { | |||
/// This is a direct compilation of the source query. | |||
eval_plan: QueryExpr, | |||
/// A version of the plan optimized for `eval_incr`, | |||
/// whose source is an in-memory table, as if by [`query::to_mem_table`]. | |||
/// whose source is an in-memory table. | |||
eval_incr_plan: EvalIncrPlan, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to_mem_table
is now in [test]
@@ -25,7 +25,7 @@ pub const SUBSCRIBE_TO_ALL_QUERY: &str = "SELECT * FROM *"; | |||
/// rather than returning a new `SourceSet`. | |||
/// | |||
/// This is necessary when merging multiple SQL queries into a single query set, | |||
/// as in [`crate::subscription::module_subscription_actor::ModuleSubscriptions::add_subscriber`]. | |||
/// as in [`crate::subscription::module_subscription_actor::ModuleSubscriptions::add_multi_subscription`]. | |||
pub fn compile_read_only_queryset( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I not sure if this is correct.
@@ -535,7 +535,7 @@ impl __sdk::DbContext for ReducerEventContext { | |||
|
|||
impl __sdk::ReducerEventContext for ReducerEventContext {} | |||
|
|||
/// An [`__sdk::DbContext`] passed to [`__sdk::SubscriptionBuilder::on_applied`] and [`SubscriptionHandle::unsubscribe_then`] callbacks. | |||
/// An [`__sdk::DbContext`] passed to subscription callbacks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are many more now.
@@ -327,7 +327,7 @@ async fn update_test_files(files: Vec<PathBuf>, engine: DbType, format: bool) -> | |||
Ok(()) | |||
} | |||
|
|||
/// Different from [`sqllogictest::update_test_file`], we re-implement it here to print some | |||
/// Different from [`sqllogictest`], we re-implement logic here to print some | |||
/// progress information. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original impl
is not there, but this is fine, this only internal and nobody else use it.
@@ -620,8 +620,6 @@ impl SourceExpr { | |||
/// If `self` refers to a [`DbTable`], get a reference to it. | |||
/// | |||
/// Returns `None` if `self` refers to a [`MemTable`]. | |||
/// In that case, retrieving the [`MemTable`] requires inspecting the plan's corresponding [`SourceSet`] | |||
/// via [`SourceSet::take_mem_table`] or [`SourceSet::take_table`]. | |||
pub fn get_db_table(&self) -> Option<&DbTable> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't see how rewrite this part...
//! | ||
//! Run the AST build from [expr::Expr]. It assumes is correct. | ||
//! | ||
|
||
pub use spacetimedb_lib::operator; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our vm
is not a vm
anymore.
Description of Changes
Fix as many
warnings
caused bycargo doc
.Some that stay:
warning: public documentation for
Xlinks to private item
Y`doc
oncrates/core/src/subscription/subscription.rs
This generateunresolved link
warnings but looks to me that need a full rewrite c.c. @joshua-spacetime.Expected complexity level and risk
0
Testing
cargo test --all
. Because we have a naming collision:... then I switch adding
doc =false
in each to let me see all the warnings.