cargo/tests/testsuite
bors aa6e46e8ca Auto merge of #13012 - Urgau:check-cfg-fingerprint, r=epage
Include declared list of features in fingerprint for `-Zcheck-cfg`

This PR include the declared list of features in fingerprint for `-Zcheck-cfg` (#10554)

`--check-cfg` verifies that `#[cfg()]` attributes are valid in Rust code, which includes `--cfg features foo` definitions that came from `[features]` tables in `Cargo.toml`.  For us to correctly re-check cfgs on feature changes,we need to include them in the fingerprint.

For example, if a user deletes an entry from `[features]`, they should then get warnings about any `#[cfg()]` attributes left in the code.  Without this change, that won't happen.  With this change, it now does.
2023-12-01 21:46:28 +00:00
..
cargo fix(help): Provide better commands heading for styling 2023-08-29 15:31:17 -05:00
cargo_add Auto merge of #13071 - LuuuXXX:issue-11010, r=epage 2023-12-01 18:13:54 +00:00
cargo_bench Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
cargo_build Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
cargo_check Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
cargo_clean Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
cargo_config Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
cargo_doc Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
cargo_fetch Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
cargo_fix Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
cargo_generate_lockfile Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
cargo_git_checkout test(cli): Track --help output 2023-07-24 17:12:20 -05:00
cargo_help Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
cargo_init Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
cargo_install Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
cargo_locate_project Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
cargo_login Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
cargo_logout Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
cargo_metadata Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
cargo_new Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
cargo_owner Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
cargo_package Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
cargo_pkgid Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
cargo_publish Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
cargo_read_manifest Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
cargo_remove Add features to the default Cargo.toml file 2023-11-19 22:03:57 +08:00
cargo_report Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
cargo_run Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
cargo_rustc Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
cargo_rustdoc Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
cargo_search Auto merge of #12962 - hi-rustin:rustin-patch-cargo-search, r=weihanglo 2023-11-13 12:40:10 +00:00
cargo_test fix(cli): Clarify --test is for targets, not test functions 2023-11-03 15:45:00 -05:00
cargo_tree Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
cargo_uninstall Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
cargo_update Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
cargo_vendor Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
cargo_verify_project Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
cargo_version Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
cargo_yank Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
mock-std fix: hack around libsysroot instead of libtest 2023-05-05 14:48:37 +01:00
advanced_env.rs Enable source_config_env test on Windows 2023-01-14 09:48:46 -08:00
alt_registry.rs refactor: --registry always conflicts with --index 2023-09-15 22:33:27 +08:00
artifact_dep.rs Fix some test output validation. 2023-11-15 15:10:18 -08:00
bad_config.rs chore(deps): update rust crate gix to 0.55.2 2023-11-01 00:12:37 +00:00
bad_manifest_path.rs chore: update bad_manifest_path test to use check 2023-02-15 15:28:48 -06:00
bench.rs test: move --keep-going suggestion match tests to UI tests 2023-08-22 19:21:09 +01:00
binary_name.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
build.rs Fix cargo errors counter 2023-11-29 18:47:14 +02:00
build_plan.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
build_script.rs Fix cargo errors counter 2023-11-29 18:47:14 +02:00
build_script_env.rs Print environment variables for build script executions with -vv 2023-10-15 19:50:11 +02:00
build_script_extra_link_arg.rs feat: add package name and version to warning messages 2023-10-11 16:52:30 -03:00
cache_lock.rs Rewrite the cache locker to use functions instead of macros. 2023-10-08 14:16:51 -07:00
cache_messages.rs chore: update cache_messages test to use check 2023-02-20 12:20:26 -06:00
cargo_alias_config.rs fix(toml): Remove redundant error messages 2023-08-24 16:19:48 -05:00
cargo_command.rs fix(cli): Suggest cargo-search on bad commands 2023-10-17 14:46:30 -05:00
cargo_env_config.rs Disallow RUSTUP_TOOLCHAIN in the [env] table. 2023-05-08 09:30:59 -07:00
cargo_features.rs fix(cli): Provide next steps for bad -Z flag 2023-10-19 09:29:05 -05:00
cargo_targets.rs
cfg.rs chore: update cfg tests to use check 2023-02-20 12:20:26 -06:00
check.rs Fix cargo errors counter 2023-11-29 18:47:14 +02:00
check_cfg.rs Auto merge of #13012 - Urgau:check-cfg-fingerprint, r=epage 2023-12-01 21:46:28 +00:00
clean.rs Fix some test output validation. 2023-11-15 15:10:18 -08:00
collisions.rs feat(doc): Print the generated docs links 2023-10-19 10:51:56 -05:00
concurrent.rs Re-enable killing_cargo_releases_the_lock on windows. 2022-08-02 12:30:42 -07:00
config.rs refactor(toml): Pull out schema 2023-11-01 20:59:46 -05:00
config_cli.rs Merge higher precedence config lists later 2023-08-16 11:21:38 -05:00
config_include.rs test(config-include): assert config merged in DFS 2023-06-21 20:18:09 +01:00
corrupt_git.rs chore: update corrupt_git tests to use check 2023-02-20 12:20:46 -06:00
credential_process.rs chore: Fix typos 2023-09-19 15:28:48 -05:00
cross_compile.rs tests: Remove plugin tests 2023-11-06 09:55:31 -06:00
cross_publish.rs Reword published/completed to uploaded/published 2023-03-15 08:15:00 -07:00
custom_target.rs Ignore changing_spec_relearns_crate_types on windows-gnu 2023-11-13 19:17:51 -08:00
death.rs bug: corruption when killed while writing 2023-10-01 08:29:24 -04:00
dep_info.rs chore: update dep_info tests to use check 2023-02-20 12:21:15 -06:00
direct_minimal_versions.rs feat(resolver): -Zdirect-minimal-versions 2023-02-14 15:44:30 -06:00
directory.rs Add additional info on a new line 2023-06-05 11:27:31 +02:00
doc.rs Handle $message_type in JSON diagnostics 2023-11-19 20:37:16 -08:00
docscrape.rs Don't filter on workspace members when scraping doc examples 2023-11-30 17:38:49 +01:00
edition.rs chore: update edition tests to use check 2023-02-20 12:21:15 -06:00
error.rs
features.rs Fix some test output validation. 2023-11-15 15:10:18 -08:00
features2.rs feat(doc): Print the generated docs links 2023-10-19 10:51:56 -05:00
features_namespaced.rs Fix dep/feat syntax with hidden implicit optional dependencies 2023-05-11 09:34:38 -07:00
fetch.rs Fix some test output validation. 2023-11-15 15:10:18 -08:00
fix.rs Fix cargo errors counter 2023-11-29 18:47:14 +02:00
freshness.rs Fix some test output validation. 2023-11-15 15:10:18 -08:00
future_incompat_report.rs fix(update): Make -p more convenient by being positional 2023-08-23 11:57:36 -05:00
generate_lockfile.rs Fix some test output validation. 2023-11-15 15:10:18 -08:00
git.rs Fix some test output validation. 2023-11-15 15:10:18 -08:00
git_auth.rs Add delays to network retries. 2023-03-31 14:04:48 -07:00
git_gc.rs add -Zgitoxide=fetch feature toggle and implementation. 2023-03-02 12:35:50 +01:00
git_shallow.rs Move helper functions to the bottom for consistency; fix name 2023-05-02 18:57:42 +02:00
glob_targets.rs feat(doc): Print the generated docs links 2023-10-19 10:51:56 -05:00
global_cache_tracker.rs Fix --quiet being used with nested subcommands. 2023-11-12 11:17:43 -08:00
help.rs fix panic if an alias is defined to "" 2021-12-12 13:30:31 -07:00
https.rs Fix self_signed_should_fail for macOS. 2023-05-06 12:41:34 -07:00
inheritable_workspace_fields.rs fix(manifest): Provide more context on sematic errors 2023-08-24 16:27:53 -05:00
install.rs Auto merge of #13053 - linyihai:cargo-uninstall-fixed, r=weihanglo 2023-12-01 15:10:56 +00:00
install_upgrade.rs fix: Report more detailed semver errors 2023-11-06 15:24:32 -06:00
jobserver.rs chore: bump jobserver to respect --jobserver-auth=fifo:PATH' 2023-02-28 16:08:12 +00:00
lints.rs feat: Stabilize lints 2023-09-08 10:44:00 -05:00
list_availables.rs fix(cli): Clarify --test is for targets, not test functions 2023-11-03 15:45:00 -05:00
local_registry.rs chore: update local_registry tests to use check 2023-02-20 12:21:27 -06:00
locate_project.rs
lockfile_compat.rs Auto merge of #12280 - weihanglo:git-ref-ambiguity, r=ehuss 2023-07-23 19:01:50 +00:00
login.rs feat: stabilize credential-process and registry-auth 2023-09-16 22:40:45 -05:00
logout.rs Auto merge of #12588 - arlosi:logout-is-stable, r=weihanglo 2023-08-29 18:17:10 +00:00
lto.rs Ues strip_prefix for cleaner code 2023-09-07 17:57:28 +00:00
main.rs lint: allow print_stdout and print_stderr 2023-11-16 11:35:21 -05:00
member_discovery.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
member_errors.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
message_format.rs chore: update message_format tests to use check 2023-02-20 12:21:27 -06:00
messages.rs Fix cargo errors counter 2023-11-29 18:47:14 +02:00
metabuild.rs Handle $message_type in JSON diagnostics 2023-11-19 20:37:16 -08:00
metadata.rs fix(toml): Default package.publish based on presence of package.version 2023-10-11 13:17:03 -05:00
minimal_versions.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
multitarget.rs feat(doc): Print the generated docs links 2023-10-19 10:51:56 -05:00
net_config.rs chore: update net_config tests to use check 2023-02-20 12:21:27 -06:00
new.rs Auto merge of #12766 - shnaramn:WarnAboutNameCase, r=epage 2023-10-23 17:17:58 +00:00
offline.rs fix(update): Make -p more convenient by being positional 2023-08-23 11:57:36 -05:00
old_cargos.rs Add reasons to all ignored tests. 2022-08-02 12:24:00 -07:00
out_dir.rs Add unsupported short suggestion for --out-dir flag 2023-10-04 13:15:09 +08:00
owner.rs Create dedicated unstable flag for asymmetric-token 2023-08-24 00:12:50 -05:00
package.rs Remove the unnecessary backticks 2023-11-22 11:09:55 +08:00
package_features.rs chore: update package_features tests to use check 2023-02-20 12:21:27 -06:00
patch.rs move pre-release specific error message 2023-09-12 16:06:29 +00:00
path.rs Fix some test output validation. 2023-11-15 15:10:18 -08:00
paths.rs chore: update paths tests to use check 2023-02-20 12:21:27 -06:00
pkgid.rs generalise suggestion on abiguous spec 2023-09-18 16:34:17 +01:00
proc_macro.rs tests: Remove plugin tests 2023-11-06 09:55:31 -06:00
profile_config.rs refactor(toml): Pull out schema 2023-11-01 20:59:46 -05:00
profile_custom.rs Separately track files and directories removed. 2023-09-19 18:24:37 -07:00
profile_overrides.rs feat(spec): Allow partial versions when unambigious 2023-09-13 22:00:00 -06:00
profile_targets.rs feat(doc): Print the generated docs links 2023-10-19 10:51:56 -05:00
profile_trim_paths.rs test(trim-paths): exercise with real world debugger 2023-12-01 08:48:24 -05:00
profiles.rs test: new options of debuginfo are no longer unstable 2023-09-01 16:19:47 +01:00
progress.rs chore: update progress tests to use check 2023-02-20 12:22:24 -06:00
pub_priv.rs Support public dependency configuration with workspace deps 2023-10-13 00:32:05 -07:00
publish.rs fix(toml): Default package.publish based on presence of package.version 2023-10-11 13:17:03 -05:00
publish_lockfile.rs Fix some test output validation. 2023-11-15 15:10:18 -08:00
read_manifest.rs Add rust_metadata to SerializedPackage 2021-10-12 14:07:19 +02:00
registry.rs Fix some test output validation. 2023-11-15 15:10:18 -08:00
registry_auth.rs feat: stabilize credential-process and registry-auth 2023-09-16 22:40:45 -05:00
rename_deps.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
replace.rs Update test for override respects spec metadata 2023-11-29 18:47:27 +02:00
required_features.rs Add additional info on a new line 2023-06-05 11:27:31 +02:00
run.rs fix(help): Consistently use SCREAMING_CASE for value names 2023-10-17 16:47:44 -05:00
rust_version.rs fix(resolver): Prefer MSRV, rather than ignore incompatible 2023-11-14 14:56:58 -06:00
rustc.rs refactor: only when -C debuginfo > 0 will spilt-debuginfo be passed 2023-05-31 20:43:57 +01:00
rustc_info_cache.rs
rustdoc.rs feat(doc): Print the generated docs links 2023-10-19 10:51:56 -05:00
rustdoc_extern_html.rs Make sparse the default protocol for crates.io 2023-03-02 10:50:22 -06:00
rustdocflags.rs feat(doc): Print the generated docs links 2023-10-19 10:51:56 -05:00
rustflags.rs Fix a rustflags test using a wrong buildfile name 2023-11-16 20:03:01 +03:00
rustup.rs Add an optimization when running under rustup. 2023-05-03 13:45:54 -07:00
script.rs fix(cli): Suggest cargo-search on bad commands 2023-10-17 14:46:30 -05:00
search.rs Add a new package cache locking system. 2023-10-08 14:16:51 -07:00
shell_quoting.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
source_replacement.rs Auto merge of #12732 - tompscanlan:12576-registry-error-msg, r=epage 2023-09-25 17:41:03 +00:00
ssh.rs add a missing is: 2023-09-08 15:14:10 -04:00
standard_lib.rs Add requirements to cargo_test. 2022-07-30 19:36:58 -07:00
test.rs Fix some test output validation. 2023-11-15 15:10:18 -08:00
timings.rs Move timing reports to target/cargo-timings 2022-01-30 21:43:52 -08:00
tool_paths.rs Add some tests 2023-08-28 09:29:17 +08:00
tree.rs generalise suggestion on abiguous spec 2023-09-18 16:34:17 +01:00
tree_graph_features.rs Do not ignore --features when --all-features is present 2022-01-28 02:49:42 +03:00
unit_graph.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
update.rs fix(resolver): Don't do git fetches when updating workspace members 2023-11-14 13:47:10 -06:00
vendor.rs fix: respect umask when unpacking .crate files 2023-08-03 13:41:08 +01:00
verify_project.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
version.rs Add test for -V short argument 2023-10-14 23:16:11 +08:00
warn_on_failure.rs feat: add package name and version to warning messages 2023-10-11 16:52:30 -03:00
weak_dep_features.rs Include rust-version in publish request 2023-04-26 11:59:29 -07:00
workspaces.rs Update workspace manifest with new members. 2023-10-28 07:42:23 -07:00
yank.rs Create dedicated unstable flag for asymmetric-token 2023-08-24 00:12:50 -05:00