Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
51b51b51d7931da85280382a81c4dd80c73ca754
rust/tests/ui/unused-crate-deps/deny-cmdline-json-silent.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
260 B
Rust
Raw Normal View History

Add --json unused-externs-silent with original behaviour Since Cargo wants to do its own fatal error handling for unused dependencies, add the option `--json unused-externs-silent` which has the original behaviour of not indicating non-zero exit status for `deny`/`forbid`-level unused dependencies.
2022-04-16 17:11:33 -07:00
// Check for unused crate dep, json event, deny but we're not reporting that in exit status
//@ edition:2018
//@ check-pass
Stabilize --json unused-externs(-silent) Implement https://github.com/rust-lang/compiler-team/issues/674
2023-09-09 12:00:22 -07:00
//@ compile-flags: -Dunused-crate-dependencies --json unused-externs-silent --error-format=json
Add --json unused-externs-silent with original behaviour Since Cargo wants to do its own fatal error handling for unused dependencies, add the option `--json unused-externs-silent` which has the original behaviour of not indicating non-zero exit status for `deny`/`forbid`-level unused dependencies.
2022-04-16 17:11:33 -07:00
//@ aux-crate:bar=bar.rs
fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 2464ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API