Skip to content

[backport] no longer warns on calls to vampire macros #3602

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
merged 1 commit into from
Mar 22, 2014

Conversation

xeno-by
Copy link
Contributor

@xeno-by xeno-by commented Mar 5, 2014

As eloquently elaborated and cleverly named by Travis Brown, macros
defined in structural types are useful:
http://meta.plasm.us/posts/2013/07/12/vampire-methods-for-structural-types/.

However, since such macros are on the intersection of a number of language
features, as usual, there are bugs.

This commit fixes an unwanted interaction of macros defined in structural
types with the scala.language.reflectiveCalls guard. Since macro calls
aren't going to be carried to runtime, there's no need to warn about them.

As eloquently elaborated and cleverly named by Travis Brown, macros
defined in structural types are useful:
http://meta.plasm.us/posts/2013/07/12/vampire-methods-for-structural-types/.

However, since such macros are on the intersection of a number of language
features, as usual, there are bugs.

This commit fixes an unwanted interaction of macros defined in structural
types with the scala.language.reflectiveCalls guard. Since macro calls
aren't going to be carried to runtime, there's no need to warn about them.
@xeno-by xeno-by added this to the 2.10.5-RC1 milestone Mar 5, 2014
@xeno-by
Copy link
Contributor Author

xeno-by commented Mar 5, 2014

review @retronym

@soc
Copy link
Contributor

soc commented Mar 6, 2014

I first read "An eloquently elaborated and cleverly named Travis Brown [...]" ... looks good to me otherwise. :-)

@xeno-by xeno-by added the tested label Mar 10, 2014
@xeno-by
Copy link
Contributor Author

xeno-by commented Mar 22, 2014

Ping @retronym

retronym added a commit that referenced this pull request Mar 22, 2014
[backport] no longer warns on calls to vampire macros
@retronym retronym merged commit daa77d1 into scala:2.10.x Mar 22, 2014
@retronym
Copy link
Member

LGTM

retronym added a commit to retronym/scala that referenced this pull request Mar 22, 2014
Merged with `-s ours`, all commits in cbb88ac...daa77d1 where
backports to 2.10.x or changes to the 2.10.x build.

    git log --graph --oneline --decorate $MB...origin/2.10.x
    *   daa77d1 (origin/pr/3648, origin/2.10.x) Merge pull request scala#3602 from xeno-by/topic/backport-vampire-warni
    |\
    | * db300d4 (xenoby/topic/backport-vampire-warning, origin/pr/3602) [backport] no longer warns on calls to vam
    * |   43e06be Merge pull request scala#3643 from gkossakowski/2.10.5-nightlies
    |\ \
    | |/
    |/|
    | * a16e003 (origin/pr/3643) Bump version to 2.10.5 for nightly builds.
    |/
    *   b66a396 (tag: v2.10.4-RC3, tag: v2.10.4, xenoby/2.10.x, huit/2.10.x) Merge pull request scala#3491 from retrony
    |\
    | * 5f4011e (retronym/backport/7902, origin/pr/3491) [backport] SI-7902 Fix spurious kind error due to an unit
    |/
    *   5720e97 Merge pull request scala#3430 from som-snytt/issue/8205-backport
    |\
    | * 8ee165c (origin/pr/3430) SI-8205 [nomaster] backport test pos.lineContent
    *   50453ce Merge pull request scala#3415 from xeno-by/topic/reify210x
    |\
    | * d167f14 (origin/pr/3415) [nomaster] corrects an error in reify’s documentation
    |/
    *   6557570 Merge pull request scala#3359 from huitseeker/issue/VarianceAdaptations
    |\
    | * 806b6e4 (origin/pr/3359, huit/issue/VarianceAdaptations) Backports library changes related to SI-6566 from
    * d9ee69f Merge pull request scala#3367 from retronym/backport/3363
    * ff13742 (retronym/backport/3363, origin/pr/3367) [nomaster] SI-8146 Fix non-deterministic <:< for deeply nes
    * cbb88ac [nomaster] Update MiMa and use new wildcard filter
@xeno-by xeno-by deleted the topic/backport-vampire-warning branch April 9, 2014 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants