36 Commits

Author SHA1 Message Date
Eric Huss
b5394da406 Update annotate-snippets from 0.11.4 to 0.11.5
Changelog: https://github.com/rust-lang/annotate-snippets-rs/blob/master/CHANGELOG.md#0115---2024-12-09

Looks to have some minor rendering differences.
2025-02-09 12:46:36 -08:00
Ed Page
7be5a2146b fix: Remove implicit feature removal
Due to problems we ran into with #14016, we're removing implicit
features from the 2024 edition to give ourselves more time to design it
as we should.

I could have added a new flag for this or made an EditionNext but I
decided to remove it in the hopes to avoid any path dependency in
solving this the next time.
2024-10-01 11:48:31 -05:00
Eric Huss
2597cdf770 Fix implicit_features_edition_2024 matching rust version
This test should not be matching the exact Rust version.
2024-09-02 15:18:01 -07:00
Ed Page
d2ec764995 fix(resolve): Dont show locking workspace members
This is for `cargo generate-lockfile` and when syncing the lockfile with
the manifest.
We still show it for `cargo update` because of `cargo update
--workspace`.

We hacked around this previously by filtering out the `num_pkgs==1` case
for single packages but this didn't help with workspaces.
2024-08-22 16:57:06 -05:00
Lin Yihai
363ddd4f58 test: The latest rustc version should not appear in the test output 2024-07-22 15:58:25 +08:00
Ed Page
5b9799c6f4 refactor: Migrate from extern crate to test-support prelude
We now include the prelude in so many places, this simplifies how we can
present how `cargo-test-support` works.

Yes, this included some `use` clean ups but its already painful enough
walking through every test file, I didn't want to do it twice.
2024-07-12 15:57:00 -05:00
eth3lbert
3d2d234bb9
test: migrate implicit_features to snapbox 2024-07-13 02:30:29 +08:00
Lin Yihai
b28eef9651 feat: Add missing_dep_diagnostic thanks to @Muscraft 2024-07-03 11:43:50 +08:00
Lin Yihai
3eb6bdf41e test: Migrate unused_optional_dependencies to snapshot 2024-07-03 11:21:04 +08:00
Lin Yihai
1306429464 fix: improve message for inactive weak optional feature with edition2024 2024-07-03 11:21:04 +08:00
Lin Yihai
1384869f88 test: Add test for weak optional feature in edition2024 2024-06-27 09:58:49 +08:00
eth3lbert
f75b4d708d
test: migrate lints/unknown_lints to snapbox 2024-06-19 14:21:16 +08:00
eth3lbert
676e97affd
test: migrate lints/mod to snapbox 2024-06-19 14:18:32 +08:00
Ed Page
dc5ac62cab fix(test): Deprecate non-snapbox assertions
While this is noisy and hides other deprecations, I figured deprecations would
make it easier for people to discover what tasks remain and allow us to
divide and conquer this work rather than doing a heroic PR.
In theory, this will be short lived and we'll go back to seeing
deprecations in our tests.
2024-06-10 10:20:52 -05:00
Ed Page
a47d41eca4 test(lints): Ensure unused optional dep fires for shadowed dep
This is a way to have an unused optional dependency before 2024
edition.
In prior editions, it is currently a hard error.
I'm tempted to switch that hard error to this lint in prior editions
but at minimum, we need to make sure we don't make changes that cause
this to revert back to a hard error on 2024+
2024-06-07 10:20:54 -05:00
Ed Page
5ea1c8fea9 feat(test): Auto-redact elapsed time 2024-05-27 21:27:25 -05:00
Ed Page
9af864ee55 refactor: Resolve deprecations 2024-05-27 21:27:03 -05:00
Ed Page
4a6f25c112 refactor: Resolve snapbox deprecations 2024-05-27 10:28:13 -05:00
Scott Schafer
b79fd591ce
test: Add UI tests showing parts of diagnostic system 2024-05-08 22:42:35 -06:00
Scott Schafer
6f81cff16c
refactor: Move lint specific tests to lints/mod.rs 2024-05-08 15:18:49 -06:00
Scott Schafer
c1f0c0b8d8
refactor: Move off UI tests for individual lints 2024-05-08 10:58:39 -06:00
Scott Schafer
6c08e58de9
feat(cargo-lints): Add a lint for unknown_lints 2024-05-01 10:45:09 -06:00
Scott Schafer
9159ebb083
fix(cargo-lints): Don't rewrite dash to underscore in lint name 2024-05-01 10:41:35 -06:00
Scott Schafer
dfc9bd2068
feat(lints): Add where lint level was set 2024-04-24 14:57:36 -06:00
bors
70fb498994 Auto merge of #13797 - Muscraft:cleanup-linting-system, r=epage
Cleanup linting system

There are a number of problems with the current linting system, most notably that lints could run without `-Zcargo-lints` being set. This PR fixes that issue and a few others that are low-hanging fruit.
2024-04-24 16:31:40 +00:00
Ed Page
9ee41598e8 feat(resolver): Add default Edition2024 to resolver v3 2024-04-22 10:45:59 -05:00
Scott Schafer
00a64e4da3
fix: Only run lints when cargo-lints are enabled 2024-04-20 19:22:32 -06:00
Scott Schafer
87915e71fe
feat: Avoid creating implicit features on edition 2024 2024-04-19 11:43:38 -06:00
Scott Schafer
e2741019c2
feat: Add unused_optional_dependency lint 2024-04-19 11:42:25 -06:00
Scott Schafer
8d676dde40
feat(implicit_features): Show why lint was emiited 2024-04-19 11:41:28 -06:00
Scott Schafer
7aac7f875c
fix(implicit_features): Work with any dep table 2024-04-19 11:15:02 -06:00
Scott Schafer
9855e50dcd
refactor: Make implicit_features <= edition 2021 2024-04-19 11:03:05 -06:00
Scott Schafer
495f94e80e
refactor(implicit_features): Use lint description for title 2024-04-19 10:58:55 -06:00
Scott Schafer
20b3734b40
refactor: Improve lint tests 2024-04-18 11:13:15 -06:00
Scott Schafer
d77faa68af
refactor: Remove rust_2024_compatibility lint group 2024-04-11 14:36:30 -06:00
Scott Schafer
307c7f825c
feat: Add a basic linting system 2024-03-23 10:26:02 -06:00