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

Fixed warnings in various targets #3345

Merged
merged 1 commit into from
Mar 15, 2025
Merged

Conversation

UebelAndre
Copy link
Collaborator

No description provided.

@@ -4,7 +4,6 @@ authors = { workspace = true }
description = { workspace = true }
homepage = { workspace = true }
license = { workspace = true }
license-file = { workspace = true }
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This addresses

INFO: From Executing genrule //cargo/cargo_toml_variable_extractor/testdata:gen_workspace_subcrate_cargo_output:
warning: /private/var/folders/h4/_xm41cq11v90znmm9dz87wdc0000gn/T/determinism-Wp88Oa/repo_a_output/597f7fd25c22d39899b3eeb4bb3cf7ea/sandbox/darwin-sandbox/122/execroot/_main/cargo/cargo_toml_variable_extractor/testdata/workspace/subcrate/Cargo.toml: no edition set: defaulting to the 2015 edition while 2021 is compatible with `rust-version`
warning: /private/var/folders/h4/_xm41cq11v90znmm9dz87wdc0000gn/T/determinism-Wp88Oa/repo_a_output/597f7fd25c22d39899b3eeb4bb3cf7ea/sandbox/darwin-sandbox/122/execroot/_main/cargo/cargo_toml_variable_extractor/testdata/workspace/subcrate/Cargo.toml: only one of `license` or `license-file` is necessary
`license` should be used if the package license can be expressed with a standard SPDX expression.
`license-file` should be used if the package uses a non-standard license.
See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information.
   Compiling subcrate v0.2.0 (/private/var/folders/h4/_xm41cq11v90znmm9dz87wdc0000gn/T/determinism-Wp88Oa/repo_a_output/597f7fd25c22d39899b3eeb4bb3cf7ea/sandbox/darwin-sandbox/122/execroot/_main/cargo/cargo_toml_variable_extractor/testdata/workspace/subcrate)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.08s
     Running `cargo/cargo_toml_variable_extractor/testdata/workspace/target/debug/subcrate`

@@ -28,7 +28,7 @@ pub struct CrateDependency {
pub alias: Option<String>,

/// Local path of this dependency if provided. This captures local paths from both the
/// [dependencies] table and the [patches] table so they can be used in rendering.
/// `[dependencies]` table and the `[patches]` table so they can be used in rendering.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This addresses

INFO: From Generating Rustdoc for @@//crate_universe:cargo_bazel:
warning: unresolved link to `dependencies`
  --> crate_universe/src/context/crate_context.rs:31:10
   |
31 |     /// [dependencies] table and the [patches] table so they can be used in rendering.
   |          ^^^^^^^^^^^^ no item named `dependencies` in scope
   |
   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
   = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default

warning: unresolved link to `patches`
  --> crate_universe/src/context/crate_context.rs:31:39
   |
31 |     /// [dependencies] table and the [patches] table so they can be used in rendering.
   |                                       ^^^^^^^ no item named `patches` in scope
   |
   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`

warning: 2 warnings emitted

@UebelAndre UebelAndre marked this pull request as ready for review March 15, 2025 12:23
@UebelAndre UebelAndre enabled auto-merge March 15, 2025 12:23

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@@ -82,7 +82,7 @@ genrule(
exclude = ["workspace/target/**"],
),
outs = ["workspace_subcrate_cargo_output"],
cmd = "RUSTC=$(location //tools/upstream_wrapper:rustc) $(location //tools/upstream_wrapper:cargo) run --manifest-path=cargo/cargo_toml_variable_extractor/testdata/workspace/subcrate/Cargo.toml > $@",
cmd = "RUSTC=$(location //tools/upstream_wrapper:rustc) $(location //tools/upstream_wrapper:cargo) run --quiet --manifest-path=cargo/cargo_toml_variable_extractor/testdata/workspace/subcrate/Cargo.toml > $@",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes

INFO: From Executing genrule //cargo/cargo_toml_variable_extractor/testdata:gen_workspace_subcrate_cargo_output:
warning: /private/var/tmp/_bazel_user/76282c66b0dfe3c5cb9a230bdc913a52/sandbox/darwin-sandbox/566/execroot/_main/cargo/cargo_toml_variable_extractor/testdata/workspace/subcrate/Cargo.toml: no edition set: defaulting to the 2015 edition while 2021 is compatible with `rust-version`
   Compiling subcrate v0.2.0 (/private/var/tmp/_bazel_user/76282c66b0dfe3c5cb9a230bdc913a52/sandbox/darwin-sandbox/566/execroot/_main/cargo/cargo_toml_variable_extractor/testdata/workspace/subcrate)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.36s
     Running `cargo/cargo_toml_variable_extractor/testdata/workspace/target/debug/subcrate`

@UebelAndre UebelAndre added this pull request to the merge queue Mar 15, 2025
Merged via the queue into bazelbuild:main with commit f7fc51c Mar 15, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants