Skip to content

Remove obsolete no_stack_check attribute and test #34915

Closed

Description

@infinity0

Here is the start of the failure

failures:

---- [debuginfo-gdb] debuginfo-gdb/function-prologue-stepping-no-stack-check.rs stdout ----


executing armv7-unknown-linux-gnueabihf/stage2/bin/rustc /home/infinity0/rust/src/test/debuginfo/function-prologue-stepping-no-stack-check.rs -L armv7-unknown-linux-gnueabihf/test/debuginfo-gdb/ --target=armv7-unknown-linux-gnueabihf -L armv7-unknown-linux-gnueabihf/test/debuginfo-gdb/function-prologue-stepping-no-stack-check.stage2-armv7-unknown-linux-gnueabihf.debuginfo-gdb.libaux -C prefer-dynamic -o armv7-unknown-linux-gnueabihf/test/debuginfo-gdb/function-prologue-stepping-no-stack-check.stage2-armv7-unknown-linux-gnueabihf -C link-args=-Wl,-z,relro --cfg rtopt -C rpath -L armv7-unknown-linux-gnueabihf/rt -g
------stdout------------------------------

------stderr------------------------------
/home/infinity0/rust/src/test/debuginfo/function-prologue-stepping-no-stack-check.rs:253:1: 253:18 warning: unused attribute, #[warn(unused_attributes)] on by default
/home/infinity0/rust/src/test/debuginfo/function-prologue-stepping-no-stack-check.rs:253 #[no_stack_check]
                                                                                         ^~~~~~~~~~~~~~~~~
/home/infinity0/rust/src/test/debuginfo/function-prologue-stepping-no-stack-check.rs:270:1: 270:18 warning: unused attribute, #[warn(unused_attributes)] on by default
/home/infinity0/rust/src/test/debuginfo/function-prologue-stepping-no-stack-check.rs:270 #[no_stack_check]
                                                                                         ^~~~~~~~~~~~~~~~~
[..] many of these, basically one for every instance of no_stack_check in the file

After this basically everything is broken which you can see in more detail here. However, I see that no_stack_check isn't used in the code anywhere any more - there is only one grep result for stack[-_]check that excludes this test itself, and one of them says this:

src/libsyntax/feature_gate.rs-    // Not used any more, but we can't feature gate it
src/libsyntax/feature_gate.rs:    ("no_stack_check", Normal, Ungated),

So I wonder if this test should just be gotten rid of?

Activity

  1. nagisa commented on Jul 19, 2016

    @nagisa
    Member

    The test probably should go.

  2. nagisa commented on Jul 19, 2016

    @nagisa
    Member

    I think its also a time to deprecate the attribute by now. cc @rust-lang/compiler @rust-lang/lang

  3. added
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    on Jul 19, 2016
  4. michaelwoerister commented on Jul 19, 2016

    @michaelwoerister
    Member

    If the attribute doesn't have any effect anymore, the test case should be removed (while making sure that's it's still possible to break on a function, which might mean that we have to write another test case if that isn't covered anywhere else).

  5. infinity0 commented on Jul 21, 2016

    @infinity0
    ContributorAuthor

    fwiw, this test does pass on x86, x86-64 and even arm64

  6. pnkfelix commented on Jul 21, 2016

    @pnkfelix
    Contributor

    It seems odd that the test is failing in this context, but not in the other targets that @infinity0 mentioned.

    Nonetheless, the compiler team concluded we should:

    1. kill this test,
    2. kill this attribute,
    3. kill any compiler flag that exposing a similar thingie.
  7. added
    E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
    on Jul 21, 2016
  8. nikomatsakis commented on Jul 21, 2016

    @nikomatsakis
    Contributor

    I'll happily mentor someone to do this.

  9. added
    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
    on Jul 22, 2016
  10. changed the title [-]debuginfo/function-prologue-stepping-no-stack-check fails on armv7 hf[/-] [+]Delete obsolete no_stack_check attribute and test[/+] on Jul 22, 2016
  11. changed the title [-]Delete obsolete no_stack_check attribute and test[/-] [+]Remove obsolete no_stack_check attribute and test[/+] on Jul 22, 2016
  12. abhijeetbhagat commented on Jul 23, 2016

    @abhijeetbhagat
    Contributor

    I can work on this.

  13. abhijeetbhagat commented on Jul 25, 2016

    @abhijeetbhagat
    Contributor

    So this is as simple as just deleting /src/test/debuginfo/function-prologue-stepping-regular.rs and removing this:
    // Not used any more, but we can't feature gate it
    ("no_stack_check", Normal, Ungated),
    from /src/libsyntax/feature_gate.rs ?

  14. 6 remaining items

  15. pmatos commented on Sep 23, 2016

    @pmatos

    What's still missing here?

  16. lambda-fairy commented on Oct 22, 2016

    @lambda-fairy
    Contributor

    @pmatos AFAIK, the only thing left to do is have -C no-stack-check print a deprecation warning when used. There was a pull request for this at #35156, but it was closed due to inactivity.

  17. added a commit that references this issue on Nov 9, 2016
  18. mgattozzi commented on Jan 13, 2017

    @mgattozzi
    Contributor

    This issue should be closed now right? It mentions in the release notes of #38966 that this has been fixed and it seems like #34915 was the one that closed the issue.

  19. michaelwoerister commented on Jan 13, 2017

    @michaelwoerister
    Member

    @mgattozzi Yes, looks like it. Thanks for the reminder!

  20. nagisa commented on Jan 13, 2017

    @nagisa
    Member

    No. We still need to remove the flag. Please reopen.

  21. michaelwoerister commented on Jan 13, 2017

    @michaelwoerister
    Member

    Oh, I thought the issue was just about the test, sorry.

  22. danobi commented on Feb 25, 2017

    @danobi
    Contributor

    This issue was fixed in PR #37636. I believe this should be closed.

  23. nikomatsakis commented on Mar 2, 2017

    @nikomatsakis
    Contributor

    per @danobi's comment, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions