Skip to content

rust: accept dep-info without a rule (-Zdep-info-omit-d-target) - #2949

Merged
sylvestre merged 1 commit into
mozilla:mainfrom
sylvestre:rust-dep-info-omit-d-target
Oct 24, 2026
Merged

sylvestre merged 1 commit into
mozilla:mainfrom
sylvestre:rust-dep-info-omit-d-target

Conversation

@sylvestre

Copy link
Copy Markdown
Collaborator

With -Zdep-info-omit-d-target, the dep-info-only invocation sccache runs names no output, so rustc writes only the phony rules of the prerequisites. Since 0.19.0 every compile with that flag failed with "dep-info does not start with a rule". The prerequisites are now rebuilt from the phony rules.

Fixes: #2945

With -Zdep-info-omit-d-target, the dep-info-only invocation names no
output, so rustc writes only the phony rules of the prerequisites. Since
0.19.0, sccache failed every compile with "dep-info does not start with
a rule". Rebuild the prerequisites from the phony rules instead.

Fixes: mozilla#2945
@codecov-commenter

codecov-commenter commented Oct 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.49%. Comparing base (7f93be7) to head (65d8206).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2949   +/-   ##
=======================================
  Coverage   78.48%   78.49%           
=======================================
  Files          74       74           
  Lines       43956    43978   +22     
=======================================
+ Hits        34501    34521   +20     
- Misses       9455     9457    +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sylvestre
sylvestre merged commit 3c66f5b into mozilla:main Oct 24, 2026
51 checks passed
@sylvestre
sylvestre deleted the rust-dep-info-omit-d-target branch October 24, 2026 18:54
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.

sccache 0.19.0 failed to compile any project

2 participants