Skip to content

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

Closed
adomani wants to merge 1 commit intomasterfrom
adomani/deprecate_opNorm_better
Closed

[Merged by Bors] - Deprecate allowing auto-replacement#10302
adomani wants to merge 1 commit intomasterfrom
adomani/deprecate_opNorm_better

Conversation

@adomani
Copy link
Copy Markdown
Contributor

@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

@sgouezel
Copy link
Copy Markdown
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 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
Copy Markdown
Contributor 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
Copy Markdown
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
Copy Markdown
Contributor

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.

2 participants