1. 27 1月, 2016 8 次提交
    • B
      Auto merge of #31020 - regexident:fix_16884, r=brson · aba11b32
      bors 提交于
      Changes error message from displaying first found missing constructor witness to showing up to 10, if necessary.
      
      Fixes issue #16884.
      aba11b32
    • B
      Auto merge of #30859 - aliclark:musl-nx-issue, r=brson · a186eb2f
      bors 提交于
      This explicitly adds an option telling the linker on these platforms to make the stack and heap non-executable (should already be the case for Windows, and likely OS X).
      
      Without this option there is some risk of accidentally losing NX protection, as the linker will not enable NX if any of the binary's constituent objects don't contain the .note.GNU-stack header.
      
      We're not aware of any users who would want a binary with executable stack or heap, but in future this could be made possible by passing a flag to disable the protection, which would also help document the fact to the crate's users.
      
      Edit: older discussion of previous quickfix to add a .note.GNU-stack header to libunwind's assembly:
      
      Short term solution for issue #30824 to ensure that object files generated from assembler contain the .note.GNU-stack header.
      
      When this header is not present in any constituent object files, the linker refrains from making the stack NX in the final executable.
      
      Further actions:
      
      I'll try to get this change merged in with upstream too, and then update these instructions to just compile the fixed version.
      
      It seems a good idea to use issue #30824 or some other issue to add a test that similar security regressions can be automatically caught in future.
      a186eb2f
    • B
      Auto merge of #30487 - jonas-schievink:more-attrs-lint-fixes, r=alexcrichton · b694d1b1
      bors 提交于
      `LateContext` already does this, looks like this was just forgotten in #29850.
      
      Found while investigating #30326 (but doesn't fix it)
      b694d1b1
    • B
      Auto merge of #31120 - alexcrichton:attribute-deny-warnings, r=brson · 4b615854
      bors 提交于
      This commit removes the `-D warnings` flag being passed through the makefiles to
      all crates to instead be a crate attribute. We want these attributes always
      applied for all our standard builds, and this is more amenable to Cargo-based
      builds as well.
      
      Note that all `deny(warnings)` attributes are gated with a `cfg(stage0)`
      attribute currently to match the same semantics we have today
      4b615854
    • B
      Auto merge of #31081 - alexcrichton:stabilize-hasher, r=aturon · a9e139b6
      bors 提交于
      This commit implements the stabilization of the custom hasher support intended
      for 1.7 but left out due to some last-minute questions that needed some
      decisions. A summary of the actions done in this PR are:
      
      Stable
      
      * `std::hash::BuildHasher`
      * `BuildHasher::Hasher`
      * `BuildHasher::build_hasher`
      * `std::hash::BuildHasherDefault`
      * `HashMap::with_hasher`
      * `HashMap::with_capacity_and_hasher`
      * `HashSet::with_hasher`
      * `HashSet::with_capacity_and_hasher`
      * `std::collections::hash_map::RandomState`
      * `RandomState::new`
      
      Deprecated
      
      * `std::collections::hash_state`
      * `std::collections::hash_state::HashState` - this trait was also moved into
        `std::hash` with a reexport here to ensure that we can have a blanket impl to
        prevent immediate breakage on nightly. Note that this is unstable in both
        location.
      * `HashMap::with_hash_state` - renamed
      * `HashMap::with_capacity_and_hash_state` - renamed
      * `HashSet::with_hash_state` - renamed
      * `HashSet::with_capacity_and_hash_state` - renamed
      
      Closes #27713
      a9e139b6
    • A
      Fix warnings during tests · cb343c33
      Alex Crichton 提交于
      The deny(warnings) attribute is now enabled for tests so we need to weed out
      these warnings as well.
      cb343c33
    • B
      Auto merge of #30402 - jooert:prettypanic, r=alexcrichton · 13b5edab
      bors 提交于
      This splits the output of panics into two lines as proposed in #15239 and adds a
      note about how to get a backtrace. Because the default panic message consists of
      multiple lines now, this changes the test runner's failure output to not indent
      the first line anymore.
      
      Fixes #15239 and fixes #11704.
      13b5edab
    • A
      std: Stabilize custom hasher support in HashMap · 1fa0be2b
      Alex Crichton 提交于
      This commit implements the stabilization of the custom hasher support intended
      for 1.7 but left out due to some last-minute questions that needed some
      decisions. A summary of the actions done in this PR are:
      
      Stable
      
      * `std::hash::BuildHasher`
      * `BuildHasher::Hasher`
      * `BuildHasher::build_hasher`
      * `std::hash::BuildHasherDefault`
      * `HashMap::with_hasher`
      * `HashMap::with_capacity_and_hasher`
      * `HashSet::with_hasher`
      * `HashSet::with_capacity_and_hasher`
      * `std::collections::hash_map::RandomState`
      * `RandomState::new`
      
      Deprecated
      
      * `std::collections::hash_state`
      * `std::collections::hash_state::HashState` - this trait was also moved into
        `std::hash` with a reexport here to ensure that we can have a blanket impl to
        prevent immediate breakage on nightly. Note that this is unstable in both
        location.
      * `HashMap::with_hash_state` - renamed
      * `HashMap::with_capacity_and_hash_state` - renamed
      * `HashSet::with_hash_state` - renamed
      * `HashSet::with_capacity_and_hash_state` - renamed
      
      Closes #27713
      1fa0be2b
  2. 26 1月, 2016 31 次提交
  3. 25 1月, 2016 1 次提交