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] - feat: blacklist compiler definitions in shake #11981

Closed
wants to merge 7 commits into from

Conversation

digama0
Copy link
Member

@digama0 digama0 commented Apr 7, 2024

@Ruben-VandeVelde Ruben-VandeVelde added awaiting-review The author would like community review of the PR awaiting-CI labels Apr 7, 2024
@fpvandoorn
Copy link
Member

bors merge

@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 Apr 7, 2024
mathlib-bors bot pushed a commit that referenced this pull request Apr 7, 2024
As [reported on Zulip](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/Point.26Click.20library.20rewrite.20tactic/near/431717134).



Co-authored-by: Mario Carneiro <di.gama@gmail.com>
Co-authored-by: Ruben Van de Velde <65514131+Ruben-VandeVelde@users.noreply.github.com>
@mathlib-bors
Copy link

mathlib-bors bot commented Apr 7, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat: blacklist compiler definitions in shake [Merged by Bors] - feat: blacklist compiler definitions in shake Apr 7, 2024
@mathlib-bors mathlib-bors bot closed this Apr 7, 2024
@mathlib-bors mathlib-bors bot deleted the shake_blacklist branch April 7, 2024 13:23
Louddy pushed a commit that referenced this pull request Apr 15, 2024
As [reported on Zulip](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/Point.26Click.20library.20rewrite.20tactic/near/431717134).



Co-authored-by: Mario Carneiro <di.gama@gmail.com>
Co-authored-by: Ruben Van de Velde <65514131+Ruben-VandeVelde@users.noreply.github.com>
atarnoam pushed a commit that referenced this pull request Apr 16, 2024
As [reported on Zulip](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/Point.26Click.20library.20rewrite.20tactic/near/431717134).



Co-authored-by: Mario Carneiro <di.gama@gmail.com>
Co-authored-by: Ruben Van de Velde <65514131+Ruben-VandeVelde@users.noreply.github.com>
mathlib-bors bot pushed a commit that referenced this pull request Apr 18, 2024
* [x] Depends on: #11981

This adds a `--explain` flag to `shake` which will say, for each module in which it reports unnecessary imports, why all of the imports it is suggesting (as well as all the imports it does not recommend to remove) are required, in the form:
```
$ lake exe shake --explain
...
./././Mathlib/Tactic/Eqns.lean:
  remove #[Std.CodeAction.Attr, Std.Tactic.Lint.Basic]
  add #[Lean.Elab.InfoTree.Main, Lean.Elab.Exception]
  note: Mathlib.Tactic.Eqns requires Lean.Meta.Eqns
    because initFn✝ refers to Lean.Meta.EqnsExtState.map
  note: Mathlib.Tactic.Eqns requires Std.Lean.NameMapAttribute
    because eqnsAttribute refers to Lean.NameMapExtension
  note: Mathlib.Tactic.Eqns requires Lean.Elab.InfoTree.Main
    because initFn✝ refers to Lean.Elab.resolveGlobalConstNoOverloadWithInfo
  note: Mathlib.Tactic.Eqns requires Lean.Elab.Exception
    because initFn✝ refers to Lean.Elab.throwUnsupportedSyntax
```



Co-authored-by: Mario Carneiro <di.gama@gmail.com>
uniwuni pushed a commit that referenced this pull request Apr 19, 2024
As [reported on Zulip](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/Point.26Click.20library.20rewrite.20tactic/near/431717134).



Co-authored-by: Mario Carneiro <di.gama@gmail.com>
Co-authored-by: Ruben Van de Velde <65514131+Ruben-VandeVelde@users.noreply.github.com>
uniwuni pushed a commit that referenced this pull request Apr 19, 2024
* [x] Depends on: #11981

This adds a `--explain` flag to `shake` which will say, for each module in which it reports unnecessary imports, why all of the imports it is suggesting (as well as all the imports it does not recommend to remove) are required, in the form:
```
$ lake exe shake --explain
...
./././Mathlib/Tactic/Eqns.lean:
  remove #[Std.CodeAction.Attr, Std.Tactic.Lint.Basic]
  add #[Lean.Elab.InfoTree.Main, Lean.Elab.Exception]
  note: Mathlib.Tactic.Eqns requires Lean.Meta.Eqns
    because initFn✝ refers to Lean.Meta.EqnsExtState.map
  note: Mathlib.Tactic.Eqns requires Std.Lean.NameMapAttribute
    because eqnsAttribute refers to Lean.NameMapExtension
  note: Mathlib.Tactic.Eqns requires Lean.Elab.InfoTree.Main
    because initFn✝ refers to Lean.Elab.resolveGlobalConstNoOverloadWithInfo
  note: Mathlib.Tactic.Eqns requires Lean.Elab.Exception
    because initFn✝ refers to Lean.Elab.throwUnsupportedSyntax
```



Co-authored-by: Mario Carneiro <di.gama@gmail.com>
callesonne pushed a commit that referenced this pull request Apr 22, 2024
As [reported on Zulip](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/Point.26Click.20library.20rewrite.20tactic/near/431717134).



Co-authored-by: Mario Carneiro <di.gama@gmail.com>
Co-authored-by: Ruben Van de Velde <65514131+Ruben-VandeVelde@users.noreply.github.com>
callesonne pushed a commit that referenced this pull request Apr 22, 2024
* [x] Depends on: #11981

This adds a `--explain` flag to `shake` which will say, for each module in which it reports unnecessary imports, why all of the imports it is suggesting (as well as all the imports it does not recommend to remove) are required, in the form:
```
$ lake exe shake --explain
...
./././Mathlib/Tactic/Eqns.lean:
  remove #[Std.CodeAction.Attr, Std.Tactic.Lint.Basic]
  add #[Lean.Elab.InfoTree.Main, Lean.Elab.Exception]
  note: Mathlib.Tactic.Eqns requires Lean.Meta.Eqns
    because initFn✝ refers to Lean.Meta.EqnsExtState.map
  note: Mathlib.Tactic.Eqns requires Std.Lean.NameMapAttribute
    because eqnsAttribute refers to Lean.NameMapExtension
  note: Mathlib.Tactic.Eqns requires Lean.Elab.InfoTree.Main
    because initFn✝ refers to Lean.Elab.resolveGlobalConstNoOverloadWithInfo
  note: Mathlib.Tactic.Eqns requires Lean.Elab.Exception
    because initFn✝ refers to Lean.Elab.throwUnsupportedSyntax
```



Co-authored-by: Mario Carneiro <di.gama@gmail.com>
Jun2M pushed a commit that referenced this pull request Apr 24, 2024
* [x] Depends on: #11981

This adds a `--explain` flag to `shake` which will say, for each module in which it reports unnecessary imports, why all of the imports it is suggesting (as well as all the imports it does not recommend to remove) are required, in the form:
```
$ lake exe shake --explain
...
./././Mathlib/Tactic/Eqns.lean:
  remove #[Std.CodeAction.Attr, Std.Tactic.Lint.Basic]
  add #[Lean.Elab.InfoTree.Main, Lean.Elab.Exception]
  note: Mathlib.Tactic.Eqns requires Lean.Meta.Eqns
    because initFn✝ refers to Lean.Meta.EqnsExtState.map
  note: Mathlib.Tactic.Eqns requires Std.Lean.NameMapAttribute
    because eqnsAttribute refers to Lean.NameMapExtension
  note: Mathlib.Tactic.Eqns requires Lean.Elab.InfoTree.Main
    because initFn✝ refers to Lean.Elab.resolveGlobalConstNoOverloadWithInfo
  note: Mathlib.Tactic.Eqns requires Lean.Elab.Exception
    because initFn✝ refers to Lean.Elab.throwUnsupportedSyntax
```



Co-authored-by: Mario Carneiro <di.gama@gmail.com>
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

3 participants