Skip to content

cc: fix compilation on Rust 1.64 - #1823

Merged
NobodyXu merged 3 commits into
rust-lang:mainfrom
xtqqczze:deprecated
Aug 1, 2026
Merged

cc: fix compilation on Rust 1.64#1823
NobodyXu merged 3 commits into
rust-lang:mainfrom
xtqqczze:deprecated

Conversation

@xtqqczze

@xtqqczze xtqqczze commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread tests/cflags.rs
@xtqqczze
xtqqczze marked this pull request as ready for review July 31, 2026 17:07
@xtqqczze
xtqqczze force-pushed the deprecated branch 2 times, most recently from c17dfca to 5e25e2b Compare July 31, 2026 19:32
@xtqqczze xtqqczze changed the title fix: allow deprecated lint in tests cc: fix compilation on Rust 1.64 Jul 31, 2026
xtqqczze added 3 commits July 31, 2026 20:41
```log
warning: use of deprecated method `cc::Build::static_flag`: cc only creates static libraries, setting this does nothing
  --> tests/cflags.rs:38:10
   |
38 |         .static_flag(true)
   |          ^^^^^^^^^^^
   |
   = note: `#[warn(deprecated)]` on by default
```
```log
error[E0658]: use of unstable library feature 'is_some_with'
  --> src/bin/cc-shim.rs:87:18
   |
87 |                 .is_some_and(|a| a == "cl");
   |                  ^^^^^^^^^^^
   |
   = note: see issue #93050 <rust-lang/rust#93050> for more information
```
```log
warning: unnecessary `unsafe` block
  --> tests/support/global_env.rs:70:9
   |
70 |         unsafe { env::set_var(&key, value) };
   |         ^^^^^^ unnecessary `unsafe` block
   |
   = note: `#[warn(unused_unsafe)]` on by default

```

@NobodyXu NobodyXu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, given the size of the file allow deprecated probably fine

@NobodyXu
NobodyXu merged commit 5f9a995 into rust-lang:main Aug 1, 2026
79 checks passed
@xtqqczze
xtqqczze deleted the deprecated branch August 1, 2026 07:38
@github-actions github-actions Bot mentioned this pull request Aug 7, 2026
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.

2 participants