Skip to content

[Merged by Bors] - chore: reformat deprecation warnings on one line, if possible#12335

Closed
grunweg wants to merge 2 commits intomasterfrom
MR-deprecation-warnings-one-line
Closed

[Merged by Bors] - chore: reformat deprecation warnings on one line, if possible#12335
grunweg wants to merge 2 commits intomasterfrom
MR-deprecation-warnings-one-line

Conversation

@grunweg
Copy link
Copy Markdown
Contributor

@grunweg grunweg commented Apr 22, 2024

Occasionally, remove a "deprecated by" or "deprecated since", to fit the line length.

This is desirable (to me) because

  • it's more compact: I don't see a good reason for these declarations taking up more space than needed;
    as I understand it, deprecated lemmas are not supposed to be used in mathlib anyway
  • putting the date on the same line as the attribute makes it easier to discover un-dated deprecations;
    they also ease writing a tool to replace these by a machine-readable version using feat: improve @[deprecated] attr leanprover/lean4#3968

Best reviewed ignoring whitespace and line breaks (there is essentially nothing happening otherwise!).
Sadly, github's UI doesn't allow the latter, so isn't as useful here.

Open in Gitpod

@grunweg grunweg force-pushed the MR-deprecation-warnings-one-line branch from 5293a87 to d09723c Compare April 22, 2024 11:24
@ghost ghost added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Apr 23, 2024
@ghost ghost removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Apr 23, 2024
@grunweg grunweg added the tech debt Tracking cross-cutting technical debt, see e.g. the "Technical debt counters" stream on zulip label Apr 23, 2024
@fpvandoorn
Copy link
Copy Markdown
Member

Thanks!

bors merge

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review labels Apr 24, 2024
mathlib-bors bot pushed a commit that referenced this pull request Apr 24, 2024
Occasionally, remove a "deprecated by" or "deprecated since", to fit the line length.

This is desirable (to me) because
- it's more compact: I don't see a good reason for these declarations taking up more space than needed;
as I understand it, deprecated lemmas are not supposed to be used in mathlib anyway
- putting the date on the same line as the attribute makes it easier to discover un-dated deprecations;
they also ease writing a tool to replace these by a machine-readable version using leanprover/lean4#3968
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Apr 24, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore: reformat deprecation warnings on one line, if possible [Merged by Bors] - chore: reformat deprecation warnings on one line, if possible Apr 24, 2024
@mathlib-bors mathlib-bors bot closed this Apr 24, 2024
@mathlib-bors mathlib-bors bot deleted the MR-deprecation-warnings-one-line branch April 24, 2024 14:56
Jun2M pushed a commit that referenced this pull request Apr 24, 2024
Occasionally, remove a "deprecated by" or "deprecated since", to fit the line length.

This is desirable (to me) because
- it's more compact: I don't see a good reason for these declarations taking up more space than needed;
as I understand it, deprecated lemmas are not supposed to be used in mathlib anyway
- putting the date on the same line as the attribute makes it easier to discover un-dated deprecations;
they also ease writing a tool to replace these by a machine-readable version using leanprover/lean4#3968
callesonne pushed a commit that referenced this pull request May 16, 2024
Occasionally, remove a "deprecated by" or "deprecated since", to fit the line length.

This is desirable (to me) because
- it's more compact: I don't see a good reason for these declarations taking up more space than needed;
as I understand it, deprecated lemmas are not supposed to be used in mathlib anyway
- putting the date on the same line as the attribute makes it easier to discover un-dated deprecations;
they also ease writing a tool to replace these by a machine-readable version using leanprover/lean4#3968
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. tech debt Tracking cross-cutting technical debt, see e.g. the "Technical debt counters" stream on zulip

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants