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

Rollup of 12 pull requests #40513

Closed
wants to merge 31 commits into from
Closed

Rollup of 12 pull requests #40513

wants to merge 31 commits into from

Commits on Mar 9, 2017

  1. Configuration menu
    Copy the full SHA
    13341f4 View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2017

  1. Update usages of 'OSX' (and other old names) to 'macOS'.

    As of last year with version 'Sierra', the Mac operating system is now
    called 'macOS'.
    frewsxcv committed Mar 12, 2017
    Configuration menu
    Copy the full SHA
    97a1b6a View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2017

  1. Configuration menu
    Copy the full SHA
    0644773 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6b7b262 View commit details
    Browse the repository at this point in the history
  3. Initial attempt at implementing optimization fuel and re-enabling str…

    …uct field reordering.
    ahicks92 authored and alexcrichton committed Mar 13, 2017
    Configuration menu
    Copy the full SHA
    197e529 View commit details
    Browse the repository at this point in the history
  4. Make a comment better.

    ahicks92 authored and alexcrichton committed Mar 13, 2017
    Configuration menu
    Copy the full SHA
    8f36057 View commit details
    Browse the repository at this point in the history
  5. Tests for -Z fuel=foo=n

    ahicks92 authored and alexcrichton committed Mar 13, 2017
    Configuration menu
    Copy the full SHA
    c2d14fc View commit details
    Browse the repository at this point in the history
  6. UI test for -Z print-fuel=foo

    ahicks92 authored and alexcrichton committed Mar 13, 2017
    Configuration menu
    Copy the full SHA
    3fb94b7 View commit details
    Browse the repository at this point in the history
  7. Adjust wording rust-lang#40301

    projektir committed Mar 13, 2017
    Configuration menu
    Copy the full SHA
    eb203d5 View commit details
    Browse the repository at this point in the history
  8. fix format grammar

    llogiq committed Mar 13, 2017
    Configuration menu
    Copy the full SHA
    adba642 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    5e49f79 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    11d3344 View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2017

  1. Configuration menu
    Copy the full SHA
    8b9b3b6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1545f4e View commit details
    Browse the repository at this point in the history
  3. Remove function invokation parens from documentation links.

    This was never established as a convention we should follow in the 'More
    API Documentation Conventions' RFC:
    
    https://github.com/rust-lang/rfcs/blob/master/text/1574-more-api-documentation-conventions.md
    frewsxcv committed Mar 14, 2017
    Configuration menu
    Copy the full SHA
    e7b0f2b View commit details
    Browse the repository at this point in the history
  4. Cleanup.

    jseyfried committed Mar 14, 2017
    Configuration menu
    Copy the full SHA
    460bf55 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    68c1cc6 View commit details
    Browse the repository at this point in the history
  6. Liberalize attributes.

    jseyfried committed Mar 14, 2017
    Configuration menu
    Copy the full SHA
    839c286 View commit details
    Browse the repository at this point in the history
  7. Add tests.

    jseyfried committed Mar 14, 2017
    Configuration menu
    Copy the full SHA
    85e02bd View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#40346 - jseyfried:path_and_tokenstream_attr…

    …, r=nrc
    
    `TokenStream`-based attributes, paths in attribute and derive macro invocations
    
    This PR
     - refactors `Attribute` to use  `Path` and `TokenStream` instead of `MetaItem`.
     - supports macro invocation paths for attribute procedural macros.
       - e.g. `#[::foo::attr_macro] struct S;`, `#[cfg_attr(all(), foo::attr_macro)] struct S;`
     - supports macro invocation paths for derive procedural macros.
       - e.g. `#[derive(foo::Bar, super::Baz)] struct S;`
     - supports arbitrary tokens as arguments to attribute procedural macros.
       - e.g. `#[foo::attr_macro arbitrary + tokens] struct S;`
     - supports using arbitrary tokens in "inert attributes" with derive procedural macros.
       - e.g. `#[derive(Foo)] struct S(#[inert arbitrary + tokens] i32);`
    where `#[proc_macro_derive(Foo, attributes(inert))]`
    
    r? @nrc
    frewsxcv authored Mar 14, 2017
    Configuration menu
    Copy the full SHA
    b6c26ef View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#40377 - camlorn:optimization_fuel, r=eddyb

    Implement optimization fuel and re-enable struct field reordering
    
    See [this discussion](https://internals.rust-lang.org/t/rolling-out-or-unrolling-struct-field-reorderings/4485) for background.
    
    This pull request adds two new compilation options: `-Z print-fuel=crate` prints the optimization fuel used by a crate and `-Z fuel=crate=n` sets the optimization fuel for a crate.
    
    It also turns field reordering back on.  There is no way to test this feature without something consuming fuel.  We can roll this back if we want, but then the optimization fuel bits will be dead code.
    
    The one notable absence from this PR is a test case.  I'm not sure how to do one that's worth having.  The only thing I can think of to test is `-Z fuel=foo=0`.  The problem with other tests is that either (1) they're so big that future optimizations will apply, thus breaking them or (2) we don't know which order the optimizations will be applied in, so we can't guess the message that will be printed.  If someone has a useful proposal for a good test, I certainly want to add one.
    frewsxcv authored Mar 14, 2017
    Configuration menu
    Copy the full SHA
    a72b876 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#40387 - tbu-:pr_doc_ptr_write2, r=steveklabnik

    Reword the non-dropping of `src` for `ptr::write{,_unaligned}`
    
    @niconii Is it OK if I put your wording into the documentation?
    CC @nagisa
    frewsxcv authored Mar 14, 2017
    Configuration menu
    Copy the full SHA
    5d36784 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#40433 - mattico:test-issue-29595, r=estebank

    Add test for issue rust-lang#29595
    
    Closes rust-lang#29595
    
    Couldn't get this to run locally, all the compile-fail tests are ignored... let's see what Travis says.
    frewsxcv authored Mar 14, 2017
    Configuration menu
    Copy the full SHA
    8f2ff57 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#40456 - frewsxcv:frewsxcv-docs-function-par…

    …ens, r=GuillaumeGomez
    
    Remove function invokation parens from documentation links.
    
    This was never established as a convention we should follow in the 'More
    API Documentation Conventions' RFC:
    
    https://github.com/rust-lang/rfcs/blob/master/text/1574-more-api-documentation-conventions.md
    frewsxcv authored Mar 14, 2017
    Configuration menu
    Copy the full SHA
    2853a9b View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#40457 - frewsxcv:frewsxcv-macos, r=stevekla…

    …bnik
    
    Update usages of 'OSX' (and other old names) to 'macOS'.
    
    As of last year with version 'Sierra', the Mac operating system is now
    called 'macOS'.
    frewsxcv authored Mar 14, 2017
    Configuration menu
    Copy the full SHA
    70511e7 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#40466 - projektir:outdated_docs_highlightin…

    …g, r=steveklabnik
    
    Remove doc about highlighting code in other languages rust-lang#40301
    
    This doesn't appear to be true any longer, so removing it to avoid confusion. See rust-lang#40301
    
    Thoughts:
    - may be a good idea to remove "Let's discuss the details of these code blocks.", as there's not much being discussed at this point;
    - does `text` still work?
    
    r? @steveklabnik
    frewsxcv authored Mar 14, 2017
    Configuration menu
    Copy the full SHA
    7cf0a09 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#40467 - projektir:readme_docs, r=steveklabnik

    Updating README.md to point to the correct doc location
    frewsxcv authored Mar 14, 2017
    Configuration menu
    Copy the full SHA
    74c16eb View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#40495 - llogiq:format-docs, r=steveklabnik

    fix format grammar
    
    This is just a trivial change to get the escaped squigglies into the grammar.
    
    r? @steveklabnik
    frewsxcv authored Mar 14, 2017
    Configuration menu
    Copy the full SHA
    bd5b868 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#40496 - projektir:docs_number_headings, r=f…

    …rewsxcv
    
    Using X headings rust-lang#39850
    
    Fix for issue rust-lang#39850, the headings should now be 1, 2, and 3.
    frewsxcv authored Mar 14, 2017
    Configuration menu
    Copy the full SHA
    fd699d2 View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#40497 - wesleywiser:fix_sidebar, r=Guillaum…

    …eGomez
    
    Fix sidebar not extending to the bottom of the page
    
    Fixes rust-lang#40459
    frewsxcv authored Mar 14, 2017
    Configuration menu
    Copy the full SHA
    9f2e520 View commit details
    Browse the repository at this point in the history
  19. Rollup merge of rust-lang#40503 - swgillespie:thread-hack-removal, r=…

    …sfackler
    
    std: remove a workaround for privacy limitations
    
    `std::thread::Thread` implements a non-exported `NewThread` trait to allow for internal-only use of `Thread::new`. Nowadays we have `pub(crate)`, which accomplishes the same thing but much more idiomatically.
    
    Rustdoc handles this correctly (I checked and I didn't see `Thread::new` on the rustdoc entry for `Thread` with this change), and the stage1 `rustc` emits the correct error still (I'm assuming that the stage1 compiler uses my `libstd`?):
    
    ```
    $ ./build/x86_64-apple-darwin/stage1/bin/rustc test.rs
    error: method `new` is private
     --> test.rs:4:18
      |
    4 |     let thread = thread::Thread::new(None);
      |                  ^^^^^^^^^^^^^^^^^^^
    
    error: aborting due to previous error
    ```
    frewsxcv authored Mar 14, 2017
    Configuration menu
    Copy the full SHA
    fc1bb24 View commit details
    Browse the repository at this point in the history