Skip to content

Sync upstream/master#48

Merged
jedel1043 merged 14 commits intomainfrom
sync-upstream
Feb 16, 2025
Merged

Sync upstream/master#48
jedel1043 merged 14 commits intomainfrom
sync-upstream

Conversation

@HalidOdat
Copy link
Member

Sync upstream/master the following changes are from relevant commits that have been cherry-picked from commit range dbb973b18d27cd3332b0c60809a77995036f13c1..f030f26bfaf35192cdb2f43d4aab887d17507244

After this PR will write changelog and release a new version :)

Debugging a recent cargo-outdated bug, it would have been nice not to
wonder whether a rustc version change in GitHub's runner image was a
contributing factor.
    warning: unexpected `cfg` condition name: `exhaustive`
     --> tests/exhaustive.rs:1:8
      |
    1 | #![cfg(exhaustive)]
      |        ^^^^^^^^^^
      |
      = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, `windows`
      = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(exhaustive)");` to the top of the `build.rs`
      = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
      = note: `#[warn(unexpected_cfgs)]` on by default
    warning: casting `usize` to `u32` may truncate the value on targets with 64-bit wide pointers
      --> tests/exhaustive.rs:20:25
       |
    20 |             let batch = counter.fetch_add(1, Ordering::Relaxed) as u32;
       |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       |
       = help: if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ...
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_truncation
       = note: `-W clippy::cast-possible-truncation` implied by `-W clippy::pedantic`
       = help: to override `-W clippy::pedantic` add `#[allow(clippy::cast_possible_truncation)]`
    help: ... or use `try_from` and handle the error accordingly
       |
    20 |             let batch = u32::try_from(counter.fetch_add(1, Ordering::Relaxed));
       |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This step has been failing way more than reasonable across my various repos.

    With the provided path, there will be 1 file uploaded
    Artifact name is valid!
    Root directory input is valid!
    Attempt 1 of 5 failed with error: Request timeout: /twirp/github.actions.results.api.v1.ArtifactService/CreateArtifact. Retrying request in 3000 ms...
    Attempt 2 of 5 failed with error: Request timeout: /twirp/github.actions.results.api.v1.ArtifactService/CreateArtifact. Retrying request in 6029 ms...
    Attempt 3 of 5 failed with error: Request timeout: /twirp/github.actions.results.api.v1.ArtifactService/CreateArtifact. Retrying request in 8270 ms...
    Attempt 4 of 5 failed with error: Request timeout: /twirp/github.actions.results.api.v1.ArtifactService/CreateArtifact. Retrying request in 12577 ms...
    Error: Failed to CreateArtifact: Failed to make request after 5 attempts: Request timeout: /twirp/github.actions.results.api.v1.ArtifactService/CreateArtifact
Cargo stopped generating this in its project template 5 years ago. It
would belong in a global gitignore instead.
False is the default value since Cargo PR 11499.
Copy link
Member

@jedel1043 jedel1043 left a comment

Choose a reason for hiding this comment

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

LGTM

@jedel1043 jedel1043 requested a review from a team February 16, 2025 03:05
@jedel1043 jedel1043 enabled auto-merge February 16, 2025 04:17
@jedel1043 jedel1043 added this pull request to the merge queue Feb 16, 2025
Merged via the queue into main with commit 8b82fc2 Feb 16, 2025
10 checks passed
@HalidOdat HalidOdat deleted the sync-upstream branch February 16, 2025 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants