Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - Deprecate allowing auto-replacement #10302

Closed
wants to merge 1 commit into from

Conversation

adomani
Copy link
Collaborator

@adomani adomani commented Feb 6, 2024

Following these Zulip discussions, I realised that my deprecation script produced a deprecation syntax that did not allow for auto-replacement in Sébastien's #10185.

This PR fixes the deprecation statements, allowing self-correction: 119 times I replaced

@[deprecated xxx] --> @[deprecated].


Open in Gitpod

@adomani adomani added the awaiting-review The author would like community review of the PR label Feb 6, 2024
@adomani adomani requested a review from sgouezel February 6, 2024 20:12
@sgouezel
Copy link
Contributor

sgouezel commented Feb 8, 2024

bors r+
Thanks!
(Although I wonder why the code action kicks up in one case and not the other, as the message

`Matrix.linfty_op_nnnorm_def` has been deprecated, use `Matrix.linfty_opNNNorm_def` instead

is the same in both cases).

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review The author would like community review of the PR labels Feb 8, 2024
mathlib-bors bot pushed a commit that referenced this pull request Feb 8, 2024
Following [these](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/Thank.20you.20for.20the.20deprecation.20warnings!/near/420078161) [Zulip](https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/machineApplicableDeprecated.20tag.20attribute/near/397630551) discussions, I realised that my deprecation script produced a deprecation syntax that did not allow for auto-replacement in Sébastien's #10185.

This PR fixes the deprecation statements, allowing self-correction: 119 times I replaced

`@[deprecated xxx] --> @[deprecated]`.
@adomani
Copy link
Collaborator Author

adomani commented Feb 8, 2024

@sgouezel I think that it is a quirk of @[deprecated] **alias** that ignores the code action, but deprecated itself works as intended. I can look into the deprecated alias implementation, but I have never worked before with code actions, so it may take a while.

@sgouezel
Copy link
Contributor

sgouezel commented Feb 8, 2024

Since we have a working solution, I'm not sure it's worth your time looking into the details of the implementation.

@mathlib-bors
Copy link

mathlib-bors bot commented Feb 8, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title Deprecate allowing auto-replacement [Merged by Bors] - Deprecate allowing auto-replacement Feb 8, 2024
@mathlib-bors mathlib-bors bot closed this Feb 8, 2024
@mathlib-bors mathlib-bors bot deleted the adomani/deprecate_opNorm_better branch February 8, 2024 10:24
atarnoam pushed a commit that referenced this pull request Feb 9, 2024
Following [these](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/Thank.20you.20for.20the.20deprecation.20warnings!/near/420078161) [Zulip](https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/machineApplicableDeprecated.20tag.20attribute/near/397630551) discussions, I realised that my deprecation script produced a deprecation syntax that did not allow for auto-replacement in Sébastien's #10185.

This PR fixes the deprecation statements, allowing self-correction: 119 times I replaced

`@[deprecated xxx] --> @[deprecated]`.
dagurtomas pushed a commit that referenced this pull request Mar 22, 2024
Following [these](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/Thank.20you.20for.20the.20deprecation.20warnings!/near/420078161) [Zulip](https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/machineApplicableDeprecated.20tag.20attribute/near/397630551) discussions, I realised that my deprecation script produced a deprecation syntax that did not allow for auto-replacement in Sébastien's #10185.

This PR fixes the deprecation statements, allowing self-correction: 119 times I replaced

`@[deprecated xxx] --> @[deprecated]`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has been sent to bors.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants