Skip to content

Commit

Permalink
Rename trait_default_impl_removed to `trait_method_default_impl_rem…
Browse files Browse the repository at this point in the history
…oved` (#909)
  • Loading branch information
obi1kenobi authored Sep 3, 2024
1 parent 75acf48 commit 028e52d
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
SemverQuery(
id: "trait_default_impl_removed",
id: "trait_method_default_impl_removed",
human_readable_name: "pub trait default method impl removed",
description: "A non-sealed public trait default method impl was removed",
required_update: Major,
Expand Down
2 changes: 1 addition & 1 deletion src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ add_lints!(
trait_associated_type_added,
trait_associated_type_default_removed,
trait_associated_type_now_doc_hidden,
trait_default_impl_removed,
trait_method_default_impl_removed,
trait_method_added,
trait_method_missing,
trait_method_now_doc_hidden,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
publish = false
name = "trait_default_impl_removed"
name = "trait_method_default_impl_removed"
version = "0.1.0"
edition = "2021"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
publish = false
name = "trait_default_impl_removed"
name = "trait_method_default_impl_removed"
version = "0.1.0"
edition = "2021"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"./test_crates/trait_default_impl_removed/": [
"./test_crates/trait_method_default_impl_removed/": [
{
"method_name": String("method_default_impl_removed"),
"name": String("TraitA"),
"path": List([
String("trait_default_impl_removed"),
String("trait_method_default_impl_removed"),
String("TraitA"),
]),
"span_begin_line": Uint64(8),
Expand All @@ -15,7 +15,7 @@
"method_name": String("method_default_impl_removed_and_becomes_non_obj_safe"),
"name": String("TraitD"),
"path": List([
String("trait_default_impl_removed"),
String("trait_method_default_impl_removed"),
String("TraitD"),
]),
"span_begin_line": Uint64(22),
Expand All @@ -26,7 +26,7 @@
"method_name": String("method_default_impl_removed_and_becomes_sealed"),
"name": String("TraitE"),
"path": List([
String("trait_default_impl_removed"),
String("trait_method_default_impl_removed"),
String("TraitE"),
]),
"span_begin_line": Uint64(27),
Expand All @@ -37,7 +37,7 @@
"method_name": String("method_partially_sealed_has_default_impl_removed"),
"name": String("TraitF"),
"path": List([
String("trait_default_impl_removed"),
String("trait_method_default_impl_removed"),
String("TraitF"),
]),
"span_begin_line": Uint64(32),
Expand Down
4 changes: 2 additions & 2 deletions test_outputs/trait_method_missing.output.ron
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"./test_crates/trait_default_impl_removed/": [
"./test_crates/trait_method_default_impl_removed/": [
{
"method_name": String("method_becomes_removed"),
"name": String("TraitB"),
"path": List([
String("trait_default_impl_removed"),
String("trait_method_default_impl_removed"),
String("TraitB"),
]),
"span_begin_line": Uint64(14),
Expand Down
7 changes: 3 additions & 4 deletions test_outputs/trait_newly_sealed.output.ron
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@
"visibility_limit": String("public"),
},
],
"./test_crates/trait_default_impl_removed/": [
"./test_crates/trait_method_default_impl_removed/": [
{
"name": String("TraitE"),
"path": List([
String("trait_default_impl_removed"),
String("trait_method_default_impl_removed"),
String("TraitE"),
]),
"span_begin_line": Uint64(26),
Expand All @@ -71,7 +71,7 @@
{
"name": String("TraitF"),
"path": List([
String("trait_default_impl_removed"),
String("trait_method_default_impl_removed"),
String("TraitF"),
]),
"span_begin_line": Uint64(31),
Expand All @@ -80,4 +80,3 @@
},
],
}

4 changes: 2 additions & 2 deletions test_outputs/trait_no_longer_object_safe.output.ron
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
"visibility_limit": String("public"),
},
],
"./test_crates/trait_default_impl_removed/": [
"./test_crates/trait_method_default_impl_removed/": [
{
"name": String("TraitD"),
"path": List([
String("trait_default_impl_removed"),
String("trait_method_default_impl_removed"),
String("TraitD"),
]),
"span_begin_line": Uint64(21),
Expand Down

0 comments on commit 028e52d

Please sign in to comment.