rust-clippy icon indicating copy to clipboard operation
rust-clippy copied to clipboard

Rename thread_local_initializer_can_be_made_const to missing_const_for_tl_init

Open alex-semenyuk opened this issue 1 year ago • 1 comments

Close #12934 As discussed at #12934 name thread_local_initializer_can_be_made_const sounds against convention for other lints which describe the issue/wrong code but not suggestion and it is quite long. The new name take example from existing lint missing_const_for_fn

changelog [thread_local_initializer_can_be_made_const] : Rename to missing_const_for_tl_init

alex-semenyuk avatar Jun 21 '24 13:06 alex-semenyuk

r? @Alexendoo

rustbot has assigned @Alexendoo. They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

rustbot avatar Jun 21 '24 13:06 rustbot

^^ @Alexendoo

alex-semenyuk avatar Jul 02 '24 07:07 alex-semenyuk

How about missing_const_for_thread_local? That it's a thread local is the important part of the name, I don't think we should abbreviate it

Alexendoo avatar Jul 02 '24 10:07 Alexendoo

:umbrella: The latest upstream changes (presumably #13037) made this pull request unmergeable. Please resolve the merge conflicts.

bors avatar Jul 05 '24 00:07 bors

There are merge commits (commits with multiple parents) in your changes. We have a no merge policy so these commits will need to be removed for this pull request to be merged.

You can start a rebase with the following commands:

$ # rebase
$ git pull --rebase https://github.com/rust-lang/rust-clippy.git master
$ git push --force-with-lease

The following commits are merge commits:

  • 885f97e2cefd1a246f47c6944afef5ffa6958426
  • c17321b23d4fbec8bac32a70e8f1a2d4d4d8154d
  • 0aac16e5b2b69e42347c9b783e87377b3a2d9608

rustbot avatar Jul 05 '24 06:07 rustbot

@Alexendoo sounds good, renamed

alex-semenyuk avatar Jul 05 '24 08:07 alex-semenyuk

Great, thanks!

@bors r+

Alexendoo avatar Jul 05 '24 16:07 Alexendoo

:pushpin: Commit 6621e6cbfaddd39a7abeab92a30c7c6175184a6f has been approved by Alexendoo

It is now in the queue for this repository.

bors avatar Jul 05 '24 16:07 bors

:hourglass: Testing commit 6621e6cbfaddd39a7abeab92a30c7c6175184a6f with merge 8919357587bfb6894efa908ede5f2c086eb7302c...

bors avatar Jul 05 '24 16:07 bors

:broken_heart: Test failed - checks-action_test

bors avatar Jul 05 '24 16:07 bors

@bors retry

Alexendoo avatar Jul 05 '24 17:07 Alexendoo

:hourglass: Testing commit 6621e6cbfaddd39a7abeab92a30c7c6175184a6f with merge 3ed690f07a93afd3ad1d5e9b109b0659490a4516...

bors avatar Jul 05 '24 17:07 bors

:sunny: Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test Approved by: Alexendoo Pushing 3ed690f07a93afd3ad1d5e9b109b0659490a4516 to master...

bors avatar Jul 05 '24 18:07 bors