You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rustc 1.67.1 (d5a82bbd2 2023-02-07)
also fails with nightly
$ pnpm prep
...
error[E0282]: type annotations needed
--> core/src/library/library_manager.rs:300:4
|
300 | / load_and_migrate(&format!(
301 | | "file:{}",
302 | | db_path.as_os_str().to_str().ok_or_else(|| {
303 | | LibraryManagerError::InvalidDatabasePath(db_path.to_path_buf())
304 | | })?
305 | | ))
306 | | .await
| |__________________^ cannot infer type
error[E0599]: no method named `node` found for struct `Arc<_>` in the current scope
--> core/src/library/library_manager.rs:321:5
|
321 | .node()
| ^^^^ method not found in `Arc<_>`
error[E0282]: type annotations needed
--> core/src/location/mod.rs:89:7
|
89 | let location = create_location(ctx, uuid, &self.path, &self.indexer_rules_ids).await?;
| ^^^^^^^^
...
96 | location.name.as_ref().unwrap().clone(),
| -------- type must be known at this point
|
help: consider giving `location` an explicit type
|
89 | let location: _ = create_location(ctx, uuid, &self.path, &self.indexer_rules_ids).await?;
| +++
error[E0282]: type annotations needed
--> core/src/location/mod.rs:129:7
|
129 | let location = create_location(ctx, uuid, &self.path, &self.indexer_rules_ids).await?;
| ^^^^^^^^
...
136 | location.name.as_ref().unwrap().clone(),
| -------- type must be known at this point
|
help: consider giving `location` an explicit type
|
129 | let location: _ = create_location(ctx, uuid, &self.path, &self.indexer_rules_ids).await?;
| +++
error[E0433]: failed to resolve: use of undeclared crate or module `file_path_object_id_only`
--> core/src/location/mod.rs:438:11
|
438 | .select(file_path_object_id_only::select())
| ^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `file_path_object_id_only`
error[E0433]: failed to resolve: use of undeclared crate or module `file_path_id_only`
--> core/src/location/file_path_helper.rs:31:11
|
31 | .select(file_path_id_only::select())
| ^^^^^^^^^^^^^^^^^ use of undeclared crate or module `file_path_id_only`
error[E0609]: no field `cas_id` on type `&_`
--> core/src/object/identifier_job/mod.rs:118:31
|
118 | [("cas_id", json!(&meta.cas_id))],
| ^^^^^^
error[E0433]: failed to resolve: use of undeclared crate or module `file_path_with_object`
--> core/src/object/preview/thumb.rs:371:12
|
371 | .include(file_path_with_object::include())
| ^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `file_path_with_object`
error[E0425]: cannot find function `node_id_mount_point_name` in this scope
--> core/src/volume.rs:43:5
|
43 | node_id_mount_point_name(
| ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
error[E0433]: failed to resolve: use of undeclared crate or module `disk_type`
--> core/src/volume.rs:53:7
|
53 | disk_type::set(volume.disk_type.clone()),
| ^^^^^^^^^ use of undeclared crate or module `disk_type`
error[E0433]: failed to resolve: use of undeclared crate or module `filesystem`
--> core/src/volume.rs:54:7
|
54 | filesystem::set(volume.file_system.clone()),
| ^^^^^^^^^^ use of undeclared crate or module `filesystem`
error[E0433]: failed to resolve: use of undeclared crate or module `total_bytes_capacity`
--> core/src/volume.rs:55:7
|
55 | total_bytes_capacity::set(volume.total_capacity.to_string()),
| ^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `total_bytes_capacity`
error[E0433]: failed to resolve: use of undeclared crate or module `total_bytes_available`
--> core/src/volume.rs:56:7
|
56 | total_bytes_available::set(volume.available_capacity.to_string()),
| ^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `total_bytes_available`
error[E0433]: failed to resolve: use of undeclared crate or module `disk_type`
--> core/src/volume.rs:60:6
|
60 | disk_type::set(volume.disk_type),
| ^^^^^^^^^ use of undeclared crate or module `disk_type`
error[E0433]: failed to resolve: use of undeclared crate or module `filesystem`
--> core/src/volume.rs:61:6
|
61 | filesystem::set(volume.file_system),
| ^^^^^^^^^^ use of undeclared crate or module `filesystem`
error[E0433]: failed to resolve: use of undeclared crate or module `total_bytes_capacity`
--> core/src/volume.rs:62:6
|
62 | total_bytes_capacity::set(volume.total_capacity.to_string()),
| ^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `total_bytes_capacity`
error[E0433]: failed to resolve: use of undeclared crate or module `total_bytes_available`
--> core/src/volume.rs:63:6
|
63 | total_bytes_available::set(volume.available_capacity.to_string()),
| ^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `total_bytes_available`
error[E0433]: failed to resolve: use of undeclared crate or module `id`
--> core/src/api/libraries.rs:56:6
|
56 | id::set(1), // Each library is a database so only one of these ever exists
| ^^
| |
| use of undeclared crate or module `id`
| help: a builtin type with a similar name exists: `i8`
error[E0433]: failed to resolve: use of undeclared crate or module `date_captured`
--> core/src/api/libraries.rs:57:6
|
57 | date_captured::set(Utc::now().into()),
| ^^^^^^^^^^^^^ use of undeclared crate or module `date_captured`
error[E0433]: failed to resolve: use of undeclared crate or module `total_object_count`
--> core/src/api/libraries.rs:58:6
|
58 | total_object_count::set(0),
| ^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `total_object_count`
error[E0433]: failed to resolve: use of undeclared crate or module `library_db_size`
--> core/src/api/libraries.rs:59:6
|
59 | library_db_size::set(library_db_size.to_string()),
| ^^^^^^^^^^^^^^^ use of undeclared crate or module `library_db_size`
error[E0433]: failed to resolve: use of undeclared crate or module `total_bytes_used`
--> core/src/api/libraries.rs:60:6
|
60 | total_bytes_used::set(0.to_string()),
| ^^^^^^^^^^^^^^^^ use of undeclared crate or module `total_bytes_used`
error[E0433]: failed to resolve: use of undeclared crate or module `total_bytes_capacity`
--> core/src/api/libraries.rs:61:6
|
61 | total_bytes_capacity::set(total_capacity.to_string()),
| ^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `total_bytes_capacity`
error[E0433]: failed to resolve: use of undeclared crate or module `total_unique_bytes`
--> core/src/api/libraries.rs:62:6
|
62 | total_unique_bytes::set(0.to_string()),
| ^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `total_unique_bytes`
error[E0433]: failed to resolve: use of undeclared crate or module `total_bytes_free`
--> core/src/api/libraries.rs:63:6
|
63 | total_bytes_free::set(available_capacity.to_string()),
| ^^^^^^^^^^^^^^^^ use of undeclared crate or module `total_bytes_free`
error[E0433]: failed to resolve: use of undeclared crate or module `preview_media_bytes`
--> core/src/api/libraries.rs:64:6
|
64 | preview_media_bytes::set(thumbnail_folder_size.unwrap_or(0).to_string()),
| ^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `preview_media_bytes`
error[E0282]: type annotations needed
--> core/src/api/locations.rs:245:5
|
245 | args.create(&library).await.map_err(Into::into)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
--> core/src/job/job_manager.rs:345:38
|
345 | metadata: data.metadata.and_then(|m| {
| ^ doesn't have a size known at compile-time
|
= help: the trait `Sized` is not implemented for `[u8]`
help: function arguments must have a statically known size, borrowed types always have a known size
|
345 | metadata: data.metadata.and_then(|&m| {
| +
error[E0433]: failed to resolve: use of undeclared crate or module `is_dir`
--> core/src/location/indexer/indexer_job.rs:293:8
|
293 | ... is_dir::set(entry.is_dir),
| ^^^^^^ use of undeclared crate or module `is_dir`
error[E0433]: failed to resolve: use of undeclared crate or module `extension`
--> core/src/location/indexer/indexer_job.rs:294:8
|
294 | ... extension::set(extension),
| ^^^^^^^^^ use of undeclared crate or module `extension`
error[E0433]: failed to resolve: use of undeclared crate or module `parent_id`
--> core/src/location/indexer/indexer_job.rs:295:8
|
295 | ... parent_id::set(entry.parent_id),
| ^^^^^^^^^ use of undeclared crate or module `parent_id`
error[E0433]: failed to resolve: use of undeclared crate or module `date_created`
--> core/src/location/indexer/indexer_job.rs:296:8
|
296 | ... date_created::set(entry.created_at.into()),
| ^^^^^^^^^^^^ use of undeclared crate or module `date_created`
error[E0698]: type inside `async` block must be known in this context
--> core/src/location/indexer/indexer_job.rs:308:26
|
308 | ctx.library_ctx.sync.owned_create_many(sync_stuff, true),
| ^^^^^^^^^^^^^^^^^ cannot infer the value of const parameter `SIZE` declared on the associated function `owned_create_many`
|
note: the type is part of the `async` block because of this `await`
--> core/src/location/indexer/indexer_job.rs:311:4
|
311 | .await?;
| ^^^^^^
error[E0433]: failed to resolve: use of undeclared crate or module `file_path_only_id`
--> core/src/object/identifier_job/mod.rs:316:12
|
316 | .select(file_path_only_id::select()),
| ^^^^^^^^^^^^^^^^^ use of undeclared crate or module `file_path_only_id`
error[E0433]: failed to resolve: use of undeclared crate or module `file_path_id_only`
--> core/src/object/preview/thumb.rs:117:12
|
117 | .select(file_path_id_only::select())
| ^^^^^^^^^^^^^^^^^ use of undeclared crate or module `file_path_id_only`
error[E0433]: failed to resolve: use of undeclared crate or module `file_path_and_object`
--> core/src/object/validation/validator_job.rs:72:12
|
72 | .select(file_path_and_object::select())
| ^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `file_path_and_object`
warning: unused import: `int_enum::IntEnum`
--> core/src/object/identifier_job/mod.rs:14:5
|
14 | use int_enum::IntEnum;
| ^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
Some errors have detailed explanations: E0277, E0282, E0425, E0432, E0433, E0583, E0599, E0609, E0698.
For more information about an error, try `rustc --explain E0277`.
warning: `sd-core` (lib test) generated 4 warnings
error: could not compile `sd-core` due to 107 previous errors; 4 warnings emitted
ELIFECYCLE Command failed with exit code 101.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
rustc 1.67.1 (d5a82bbd2 2023-02-07)
also fails with nightly
Beta Was this translation helpful? Give feedback.
All reactions