cargo/tests/testsuite
bors 9bbab73a75 Auto merge of #5824 - alexcrichton:careful-transition, r=alexcrichton
Add more diagnostics to smooth edition transition

This commit adds two diagnostics in particular to ease the transition into the
2018 edition. The current transition process is pretty particular and must be
done carefully, so let's try to automate things to make it as painless as
possible! Notably the new diagnostics are:

* If you `cargo fix --prepare-for 2018` a crate which already has the 2018
  edition enabled, then an error is generated. This is because the compiler
  can't prepare for the 2018 edition if you're already in the 2018 edition, the
  lints won't have a chance to fire. You can only execute `--prepare-for 2018`
  over crates in the 2015 edition.

* If you `cargo fix --prepare-for 2018` and have forgotten the
  `rust_2018_preview` feature, a warning is issued. The lints don't fire unless
  the feature is enabled, so this is intended to warn in this situation to
  ensure that lints fire as much as they can.

After this commit if `cargo fix --prepare-for` exits successfully with zero
warnings then crates should be guaranteed to be compatible!

Closes #5778
2018-07-31 19:28:52 +00:00
..
support remove all of the (now) unnecessary temp file usage in tests 2018-07-26 15:10:48 -04:00
alt_registry.rs Dedup a bunch more manifest 2018-07-25 00:43:30 +01:00
bad_config.rs Declare one-line files on one line, in test projects 2018-07-25 09:58:50 +01:00
bad_manifest_path.rs Reorganise the testsuite crate module hierarchy 2018-07-22 08:46:44 +01:00
bench.rs Declare one-line files on one line, in test projects 2018-07-25 09:58:50 +01:00
build.rs Add tests for per-target edition 2018-07-31 14:49:33 +01:00
build_auth.rs Dedup a bunch more manifest 2018-07-25 00:43:30 +01:00
build_lib.rs Fix test --doc with incompatible lib types. 2018-07-25 22:40:46 -07:00
build_plan.rs Dedup a bunch more manifest 2018-07-25 00:43:30 +01:00
build_script.rs Declare one-line files on one line, in test projects 2018-07-25 09:58:50 +01:00
build_script_env.rs Declare one-line files on one line, in test projects 2018-07-25 09:58:50 +01:00
cargo_alias_config.rs Declare one-line files on one line, in test projects 2018-07-25 09:58:50 +01:00
cargo_command.rs Adapt --list output in find_closest_biuld_to_build test 2018-07-26 21:41:43 +01:00
cargo_features.rs Reorganise the testsuite crate module hierarchy 2018-07-22 08:46:44 +01:00
cfg.rs Declare one-line files on one line, in test projects 2018-07-25 09:58:50 +01:00
check-style.sh Reorganize integration tests as one crate with many modules. Issue #4867. 2018-02-21 13:33:51 -05:00
check.rs Declare one-line files on one line, in test projects 2018-07-25 09:58:50 +01:00
clean.rs Dedup a bunch more manifest 2018-07-25 00:43:30 +01:00
concurrent.rs Declare one-line files on one line, in test projects 2018-07-25 09:58:50 +01:00
config.rs Reorganise the testsuite crate module hierarchy 2018-07-22 08:46:44 +01:00
corrupt_git.rs Dedup a bunch more manifest 2018-07-25 00:43:30 +01:00
cross_compile.rs Declare one-line files on one line, in test projects 2018-07-25 09:58:50 +01:00
cross_publish.rs Reorganise the testsuite crate module hierarchy 2018-07-22 08:46:44 +01:00
custom_target.rs Dedup a bunch more manifest 2018-07-25 00:43:30 +01:00
death.rs Reorganise the testsuite crate module hierarchy 2018-07-22 08:46:44 +01:00
dep_info.rs Drop now unnecessary basic manifests 2018-07-24 16:33:55 +01:00
directory.rs Declare one-line files on one line, in test projects 2018-07-25 09:58:50 +01:00
doc.rs Add tests for per-target edition 2018-07-31 14:49:33 +01:00
features.rs Declare one-line files on one line, in test projects 2018-07-25 09:58:50 +01:00
fetch.rs Declare one-line files on one line, in test projects 2018-07-25 09:58:50 +01:00
fix.rs Add more diagnostics to smooth edition transition 2018-07-31 07:28:07 -07:00
freshness.rs Declare one-line write_all contents on one line, too 2018-07-25 10:00:45 +01:00
generate_lockfile.rs Dedup a bunch more manifest 2018-07-25 00:43:30 +01:00
git.rs Declare one-line write_all contents on one line, too 2018-07-25 10:00:45 +01:00
init.rs remove all of the (now) unnecessary temp file usage in tests 2018-07-26 15:10:48 -04:00
install.rs Declare one-line files on one line, in test projects 2018-07-25 09:58:50 +01:00
jobserver.rs Drop now unnecessary basic manifests 2018-07-24 16:33:55 +01:00
local_registry.rs Declare one-line files on one line, in test projects 2018-07-25 09:58:50 +01:00
lockfile_compat.rs Dedup a bunch more manifest 2018-07-25 00:43:30 +01:00
login.rs Declare one-line write_all contents on one line, too 2018-07-25 10:00:45 +01:00
main.rs remove all of the (now) unnecessary temp file usage in tests 2018-07-26 15:10:48 -04:00
metadata.rs Reorganise the testsuite crate module hierarchy 2018-07-22 08:46:44 +01:00
net_config.rs Reorganise the testsuite crate module hierarchy 2018-07-22 08:46:44 +01:00
new.rs update test for #5733 2018-07-26 14:39:10 -04:00
out_dir.rs Dedup a bunch more manifest 2018-07-25 00:43:30 +01:00
overrides.rs Declare one-line files on one line, in test projects 2018-07-25 09:58:50 +01:00
package.rs Declare one-line write_all contents on one line, too 2018-07-25 10:00:45 +01:00
patch.rs Declare one-line files on one line, in test projects 2018-07-25 09:58:50 +01:00
path.rs Declare one-line write_all contents on one line, too 2018-07-25 10:00:45 +01:00
plugins.rs Declare one-line files on one line, in test projects 2018-07-25 09:58:50 +01:00
proc_macro.rs Reorganise the testsuite crate module hierarchy 2018-07-22 08:46:44 +01:00
profile_config.rs Reorganise the testsuite crate module hierarchy 2018-07-22 08:46:44 +01:00
profile_overrides.rs Declare one-line files on one line, in test projects 2018-07-25 09:58:50 +01:00
profile_targets.rs Declare one-line files on one line, in test projects 2018-07-25 09:58:50 +01:00
profiles.rs Reorganise the testsuite crate module hierarchy 2018-07-22 08:46:44 +01:00
publish.rs Declare one-line write_all contents on one line, too 2018-07-25 10:00:45 +01:00
read_manifest.rs Reorganise the testsuite crate module hierarchy 2018-07-22 08:46:44 +01:00
registry.rs Declare one-line files on one line, in test projects 2018-07-25 09:58:50 +01:00
rename_deps.rs Use listed dependency name for feature names 2018-07-31 07:28:53 -07:00
required_features.rs Declare one-line files on one line, in test projects 2018-07-25 09:58:50 +01:00
resolve.rs Reorganise the testsuite crate module hierarchy 2018-07-22 08:46:44 +01:00
run.rs Declare one-line files on one line, in test projects 2018-07-25 09:58:50 +01:00
rustc.rs Declare one-line files on one line, in test projects 2018-07-25 09:58:50 +01:00
rustc_info_cache.rs Dedup a bunch more manifest 2018-07-25 00:43:30 +01:00
rustdoc.rs Declare one-line files on one line, in test projects 2018-07-25 09:58:50 +01:00
rustdocflags.rs Drop now unnecessary basic manifests 2018-07-24 16:33:55 +01:00
rustflags.rs Declare one-line files on one line, in test projects 2018-07-25 09:58:50 +01:00
search.rs Declare one-line files on one line, in test projects 2018-07-25 09:58:50 +01:00
shell_quoting.rs Reorganise the testsuite crate module hierarchy 2018-07-22 08:46:44 +01:00
small_fd_limits.rs Reorganise the testsuite crate module hierarchy 2018-07-22 08:46:44 +01:00
test.rs Fix test --doc with incompatible lib types. 2018-07-25 22:40:46 -07:00
tool_paths.rs Dedup a bunch more manifest 2018-07-25 00:43:30 +01:00
update.rs Dedup a bunch more manifest 2018-07-25 00:43:30 +01:00
verify_project.rs Reorganise the testsuite crate module hierarchy 2018-07-22 08:46:44 +01:00
version.rs Reorganise the testsuite crate module hierarchy 2018-07-22 08:46:44 +01:00
warn_on_failure.rs Reorganise the testsuite crate module hierarchy 2018-07-22 08:46:44 +01:00
workspaces.rs Declare one-line write_all contents on one line, too 2018-07-25 10:00:45 +01:00