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 9 pull requests #61016

Closed
wants to merge 24 commits into from
Closed

Commits on May 6, 2019

  1. convert custom try macro to ?

    hellow554 committed May 6, 2019
    Configuration menu
    Copy the full SHA
    af6ace6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5458b65 View commit details
    Browse the repository at this point in the history

Commits on May 20, 2019

  1. Avoid symbol interning in file_metadata.

    This commit changes `created_files` so it uses strings directly as keys,
    rather than symbols derived from the strings. This avoids the cost of
    having to do the hash table lookups to produce the symbols from the
    strings.
    
    The commit also uses `entry` to avoid doing a repeated hash table lookup
    (`get` + `insert`).
    
    Note that PR rust-lang#60467 improved this code somewhat; this is a further
    improvement.
    nnethercote committed May 20, 2019
    Configuration menu
    Copy the full SHA
    c5d9401 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a7e1431 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    178b753 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d320c7c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    419ca9d View commit details
    Browse the repository at this point in the history

Commits on May 21, 2019

  1. Configuration menu
    Copy the full SHA
    4e37785 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e186d3f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5ea5fe3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    dd94dc3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    61735ab View commit details
    Browse the repository at this point in the history
  6. Add doc comment

    topecongiro committed May 21, 2019
    Configuration menu
    Copy the full SHA
    b07dbe1 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    1f1a917 View commit details
    Browse the repository at this point in the history
  8. update doc comment

    RalfJung committed May 21, 2019
    Configuration menu
    Copy the full SHA
    a2168b0 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#60581 - hellow554:fix_60580, r=alexcrichton

    convert custom try macro to `?`
    
    resolves rust-lang#60580
    
    r? @frewsxcv
    Centril committed May 21, 2019
    Configuration menu
    Copy the full SHA
    0650084 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#60963 - blkerby:boxed_docs, r=alexcrichton

    Update boxed::Box docs on memory layout
    
    The existing docs for the `Box` type state that "the way `Box` allocates and releases memory is unspecified", and that therefore the only valid pointer to pass to `Box::from_raw` is one obtained from `Box::into_raw`. This is inconsistent with the module-level docs which specify,
    
    > It is valid to convert both ways between a Box and a raw pointer allocated with the Global allocator, given that the Layout used with the allocator is correct for the type. More precisely, a value: *mut T that has been allocated with the Global allocator with Layout::for_value(&*value) may be converted into a box using Box::<T>::from_raw(value). Conversely, the memory backing a value: *mut T obtained from Box::<T>::into_raw may be deallocated using the Global allocator with Layout::for_value(&*value).
    
    This pull request updates the docs for `Box` to make them consistent with the module-level docs and adds some examples of how to use the global allocator in conjunction with `Box::from_raw` and `Box::into_raw`.
    Centril committed May 21, 2019
    Configuration menu
    Copy the full SHA
    253c26b View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#60973 - nnethercote:fix-file_metadata-more,…

    … r=michaelwoerister
    
    Avoid symbol interning in `file_metadata`.
    
    This commit changes `created_files` so it uses strings directly as keys,
    rather than symbols derived from the strings. This avoids the cost of
    having to do the hash table lookups to produce the symbols from the
    strings.
    
    The commit also uses `entry` to avoid doing a repeated hash table lookup
    (`get` + `insert`).
    
    Note that PR rust-lang#60467 improved this code somewhat; this is a further
    improvement.
    
    r? @davidtwco
    Centril committed May 21, 2019
    Configuration menu
    Copy the full SHA
    9e11b48 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#60982 - estebank:fix-60976, r=petrochenkov

    Do not fail on child without DefId
    
    Addresses rust-lang#60976, leaving open to come up with a repro case.
    Centril committed May 21, 2019
    Configuration menu
    Copy the full SHA
    d063b74 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#60991 - spastorino:local-decls-push, r=oli-obk

    LocalDecl push returns Local len
    
    r? @oli-obk
    Centril committed May 21, 2019
    Configuration menu
    Copy the full SHA
    d18b4c1 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#60995 - topecongiro:parser-from-stream-and-…

    …base-dir, r=michaelwoerister
    
    Add stream_to_parser_with_base_dir
    
    This PR adds `stream_to_parser_with_base_dir`, which creates a parser from a token stream and a base directory.
    
    Context: I would like to parse `cfg_if!` macro and get a list of modules defined inside it from rustfmt so that rustfmt can format those modules (cc rust-lang/rustfmt#3253). To do so, I need to create a parser from `TokenStream` and set the directory of `Parser` to the same directory as the parent directory of a file which contains `cfg_if!` invocation. AFAIK there is no way to achieve this, and hence this PR.
    
    Alternatively, I could change the visibility of `Parser.directory` from `crate` to `pub` so that the value can be modified after initializing a parser. I don't have a preference over either approach (or others, as long as it works).
    Centril committed May 21, 2019
    Configuration menu
    Copy the full SHA
    e0aaa72 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#60998 - RalfJung:static_assert, r=Centril

    static_assert: make use of anonymous constants
    Centril committed May 21, 2019
    Configuration menu
    Copy the full SHA
    c778205 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#61005 - michaelwoerister:error-pgo-windows-…

    …unwind, r=zackmdavis
    
    Emit error when trying to use PGO in conjunction with unwinding on Windows.
    
    This PR makes `rustc` emit an error when trying use PGO in conjunction with `-Cpanic=unwind` on Windows, isn't supported by LLVM yet. The error messages points to rust-lang#61002, which documents this known limitation.
    Centril committed May 21, 2019
    Configuration menu
    Copy the full SHA
    18d728c View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#61006 - RalfJung:maybe-uninit, r=Centril

    adjust deprecation date of mem::uninitialized
    
    In rust-lang#60445 we [decided](rust-lang#60445 (comment)) that we'd deprecate for 1.38 instead of 1.40, but I forgot to adjust for that.
    Centril committed May 21, 2019
    Configuration menu
    Copy the full SHA
    c6427e3 View commit details
    Browse the repository at this point in the history