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 PRs in the queue; Friday #23337

Merged
merged 22 commits into from
Mar 13, 2015
Merged

Rollup of PRs in the queue; Friday #23337

merged 22 commits into from
Mar 13, 2015

Commits on Feb 3, 2015

  1. Configuration menu
    Copy the full SHA
    bce7a6f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b042ffc View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2015

  1. Avoid passing -L "" to rustc.

    Currently, target.mk passes -L "" when LLVM_STDCPP_LOCATION_$(2) is empty.
    
    This fixes rust-lang#23287.
    rprichard committed Mar 12, 2015
    Configuration menu
    Copy the full SHA
    de52403 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    90fc28d View commit details
    Browse the repository at this point in the history
  3. Update the ways to get a pointer from a box

    Show how to get a pointer without destroying the box.
    Use `boxed::into_raw` instead of `mem::transmute`.
    gkoz committed Mar 12, 2015
    Configuration menu
    Copy the full SHA
    5d9ed0b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ccfc381 View commit details
    Browse the repository at this point in the history
  5. remove mention of specialization from Hash trait

    It is no longer possible to specialize on the `Hasher` because it moved
    to a method-level type parameter.
    apasel422 committed Mar 12, 2015
    Configuration menu
    Copy the full SHA
    ae21b4f View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2015

  1. Configuration menu
    Copy the full SHA
    ebcb1dc View commit details
    Browse the repository at this point in the history
  2. Add an "allocator" attribute to mark functions as allocators

    When this attribute is applied to a function, its return value gets the
    noalias attribute, which is how you tell LLVM that the function returns
    a "new" pointer that doesn't alias anything accessible to the caller,
    i.e. it acts like a memory allocator.
    
    Plain malloc doesn't need this attribute because LLVM already knows
    about malloc and adds the attribute itself.
    dotdash committed Mar 13, 2015
    Configuration menu
    Copy the full SHA
    0942803 View commit details
    Browse the repository at this point in the history
  3. rustdoc: Fix ICE with cross-crate default impls

    This adds a special code path for impls which are listed as default impls to
    ensure that they're loaded correctly.
    alexcrichton committed Mar 13, 2015
    Configuration menu
    Copy the full SHA
    4e25765 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#23307 - michaelwoerister:lldb-vec-pp-bug, r…

    …=alexcrichton
    
     Fixes rust-lang#22656. Also adds a nice pretty printer for `Vec`.
    Manishearth committed Mar 13, 2015
    Configuration menu
    Copy the full SHA
    7d2ee7a View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#23310 - michaelwoerister:gdb-std-pp, r=alex…

    …crichton
    
     ```rust
    Rust:  let slice: &[i32] = &[0, 1, 2, 3];
    GDB:   $1 = &[i32](len: 4) = {0, 1, 2, 3}
    
    Rust:  let vec = vec![4, 5, 6, 7];
    GDB:   $2 = Vec<u64>(len: 4, cap: 4) = {4, 5, 6, 7}
    
    Rust:  let str_slice = \"IAMA string slice!\";
    GDB:   $3 = \"IAMA string slice!\"
    
    Rust:  let string = \"IAMA string!\".to_string();
    GDB:   $4 = \"IAMA string!\"
    ```
    Neat!
    Manishearth committed Mar 13, 2015
    Configuration menu
    Copy the full SHA
    6354387 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#23325 - brson:beta, r=alexcrichton

     This is the second time I've made this typo.
    Manishearth committed Mar 13, 2015
    Configuration menu
    Copy the full SHA
    99ce371 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#23328 - alexcrichton:rustdoc-default-impl, …

    …r=brson
    
     This adds a special code path for impls which are listed as default impls to
    ensure that they're loaded correctly.
    Manishearth committed Mar 13, 2015
    Configuration menu
    Copy the full SHA
    da054a5 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#23312 - gkoz:ptr_from_box_docs, r=steveklabnik

     Show how to get a pointer without destroying the box.
    Use `boxed::into_raw` instead of `mem::transmute`.
    
    I removed the `let my_num: *const i32 = mem::transmute(my_num);` case altogether because we own the box, a `*mut` pointer is good anywhere a `*const` is needed, `from_raw` takes a mutable pointer and casting from a `*const` caused an ICE.
    Manishearth committed Mar 13, 2015
    Configuration menu
    Copy the full SHA
    b00c310 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#23317 - tanadeau:fix-formatting-and-grammar…

    …, r=steveklabnik
    
     Fixed grammar errors (incorrect uses of commas and \"you're\" instead of \"your\") and broke up a long line.
    
    r? @steveklabnik
    Manishearth committed Mar 13, 2015
    Configuration menu
    Copy the full SHA
    63bdfbf View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#23321 - apasel422:hash, r=alexcrichton

     It is no longer possible to specialize on the `Hasher` because it moved to a method-level type parameter.
    Manishearth committed Mar 13, 2015
    Configuration menu
    Copy the full SHA
    63cd9f9 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#23322 - dotdash:jemalloc_attrs, r=brson

     When this attribute is applied to a function, its return value gets the
    noalias attribute, which is how you tell LLVM that the function returns
    a \"new\" pointer that doesn't alias anything accessible to the caller,
    i.e. it acts like a memory allocator.
    
    Plain malloc doesn't need this attribute because LLVM already knows
    about malloc and adds the attribute itself.
    Manishearth committed Mar 13, 2015
    Configuration menu
    Copy the full SHA
    d0f98fc View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#23324 - rprichard:fix-freebsd, r=brson

     Currently, target.mk passes -L \"\" when LLVM_STDCPP_LOCATION_$(2) is empty.
    
    This fixes rust-lang#23287.
    Manishearth committed Mar 13, 2015
    Configuration menu
    Copy the full SHA
    0e4b8d6 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#21468 - sanxiyn:dead-variant, r=

     This implements a wish suggested in rust-lang#17410, detecting enum variants that are never constructed, even in the presence of `#[derive(Clone)]`. The implementation is general and not specific to `#[derive(Clone)]`.
    
    r? @jakub-
    Manishearth committed Mar 13, 2015
    Configuration menu
    Copy the full SHA
    0d37323 View commit details
    Browse the repository at this point in the history
  14. Fix def -> PathResolution

    Manishearth committed Mar 13, 2015
    Configuration menu
    Copy the full SHA
    825f49a View commit details
    Browse the repository at this point in the history
  15. rm unused import

    Manishearth committed Mar 13, 2015
    Configuration menu
    Copy the full SHA
    40b6464 View commit details
    Browse the repository at this point in the history