1. 13 4月, 2016 4 次提交
    • B
      Auto merge of #32803 - eddyb:mir-debuginfo, r=nikomatsakis · 7c27cce9
      bors 提交于
      Initial implementation of debuginfo in MIR trans.
      
      Progress is made towards #31005, but several issues remain, such as #32790.
      7c27cce9
    • B
      Auto merge of #32590 - alexcrichton:rustbuild-tidy-checks, r=brson · a43eb4e7
      bors 提交于
      rustbuild: Migrate tidy checks to Rust
      
      This commit rewrites all of the tidy checks we have, namely:
      
      * featureck
      * errorck
      * tidy
      * binaries
      
      into Rust under a new `tidy` tool inside of the `src/tools` directory. This at
      the same time deletes all the corresponding Python tidy checks so we can be sure
      to only have one source of truth for all the tidy checks.
      
      cc #31590
      a43eb4e7
    • A
      tidy: Add a check to ensure Cargo.toml is in sync · 7bfaeaaf
      Alex Crichton 提交于
      This verifies that the crates listed in the `[dependencies]` section of
      `Cargo.toml` are a subset of the crates listed in `lib.rs` for our in-tree
      crates. This should help ensure that when we refactor crates over time we keep
      these dependency lists in sync.
      7bfaeaaf
    • B
      Auto merge of #31963 - barosl:rename-doc, r=alexcrichton · a4f781e4
      bors 提交于
      Describe more platform-specific behaviors of `std::fs::rename`
      
      I did some tests myself regarding the situation when both `from` and `to` exist, and the results were:
      
      On Linux:
      
      `from` | `to` | Result
      ---- | ---- | ----
      Directory | Directory | Ok
      Directory | File | Error
      File | Directory | Error
      File | File | Ok
      
      On Windows:
      
      `from` | `to` | Result
      ---- | ---- | ----
      Directory | Directory | Error
      Directory | File | Ok
      File | Directory | Error
      File | File | Ok
      
      This is a bit against the official MSDN documentation, which says "(`MOVEFILE_REPLACE_EXISTING`) cannot be used if `lpNewFileName` or `lpExistingFileName` names a directory." As evidenced above, `lpExistingFileName` *can* be a directory.
      
      I also mentioned the atomicity of the operation.
      
      Fixes #31301.
      a4f781e4
  2. 12 4月, 2016 15 次提交
    • A
      rustbuild: Migrate tidy checks to Rust · 9dd3c54a
      Alex Crichton 提交于
      This commit rewrites all of the tidy checks we have, namely:
      
      * featureck
      * errorck
      * tidy
      * binaries
      
      into Rust under a new `tidy` tool inside of the `src/tools` directory. This at
      the same time deletes all the corresponding Python tidy checks so we can be sure
      to only have one source of truth for all the tidy checks.
      
      cc #31590
      9dd3c54a
    • B
      Auto merge of #32811 - alexcrichton:check-lints, r=nrc · 93300061
      bors 提交于
      rustdoc: Fix testing no_run code blocks
      
      This was a regression introduced by #31250 where the compiler deferred returning
      the results of compilation a little too late (after the `Stop` check was looked
      at). This commit alters the stop point to first try to return an erroneous
      `result` and only if it was successful return the sentinel `Err(0)`.
      
      Closes #31576
      93300061
    • B
      Auto merge of #32804 - alexcrichton:stabilize-1.9, r=brson · bed32d83
      bors 提交于
      std: Stabilize APIs for the 1.9 release
      
      This commit applies all stabilizations, renamings, and deprecations that the
      library team has decided on for the upcoming 1.9 release. All tracking issues
      have gone through a cycle-long "final comment period" and the specific APIs
      stabilized/deprecated are:
      
      Stable
      
      * `std::panic`
      * `std::panic::catch_unwind` (renamed from `recover`)
      * `std::panic::resume_unwind` (renamed from `propagate`)
      * `std::panic::AssertUnwindSafe` (renamed from `AssertRecoverSafe`)
      * `std::panic::UnwindSafe` (renamed from `RecoverSafe`)
      * `str::is_char_boundary`
      * `<*const T>::as_ref`
      * `<*mut T>::as_ref`
      * `<*mut T>::as_mut`
      * `AsciiExt::make_ascii_uppercase`
      * `AsciiExt::make_ascii_lowercase`
      * `char::decode_utf16`
      * `char::DecodeUtf16`
      * `char::DecodeUtf16Error`
      * `char::DecodeUtf16Error::unpaired_surrogate`
      * `BTreeSet::take`
      * `BTreeSet::replace`
      * `BTreeSet::get`
      * `HashSet::take`
      * `HashSet::replace`
      * `HashSet::get`
      * `OsString::with_capacity`
      * `OsString::clear`
      * `OsString::capacity`
      * `OsString::reserve`
      * `OsString::reserve_exact`
      * `OsStr::is_empty`
      * `OsStr::len`
      * `std::os::unix::thread`
      * `RawPthread`
      * `JoinHandleExt`
      * `JoinHandleExt::as_pthread_t`
      * `JoinHandleExt::into_pthread_t`
      * `HashSet::hasher`
      * `HashMap::hasher`
      * `CommandExt::exec`
      * `File::try_clone`
      * `SocketAddr::set_ip`
      * `SocketAddr::set_port`
      * `SocketAddrV4::set_ip`
      * `SocketAddrV4::set_port`
      * `SocketAddrV6::set_ip`
      * `SocketAddrV6::set_port`
      * `SocketAddrV6::set_flowinfo`
      * `SocketAddrV6::set_scope_id`
      * `<[T]>::copy_from_slice`
      * `ptr::read_volatile`
      * `ptr::write_volatile`
      * The `#[deprecated]` attribute
      * `OpenOptions::create_new`
      
      Deprecated
      
      * `std::raw::Slice` - use raw parts of `slice` module instead
      * `std::raw::Repr` - use raw parts of `slice` module instead
      * `str::char_range_at` - use slicing plus `chars()` plus `len_utf8`
      * `str::char_range_at_reverse` - use slicing plus `chars().rev()` plus `len_utf8`
      * `str::char_at` - use slicing plus `chars()`
      * `str::char_at_reverse` - use slicing plus `chars().rev()`
      * `str::slice_shift_char` - use `chars()` plus `Chars::as_str`
      * `CommandExt::session_leader` - use `before_exec` instead.
      
      Closes #27719
      cc #27751 (deprecating the `Slice` bits)
      Closes #27754
      Closes #27780
      Closes #27809
      Closes #27811
      Closes #27830
      Closes #28050
      Closes #29453
      Closes #29791
      Closes #29935
      Closes #30014
      Closes #30752
      Closes #31262
      cc #31398 (still need to deal with `before_exec`)
      Closes #31405
      Closes #31572
      Closes #31755
      Closes #31756
      bed32d83
    • B
      Describe more platform-specific behaviors of `std::fs::rename` · bcbc9e53
      Barosl Lee 提交于
      Fixes #31301.
      bcbc9e53
    • B
      Auto merge of #32711 - marcusklaas:try-shorthand-span-fix, r=nagisa · 28c9fdaf
      bors 提交于
      Fix the span for try shorthand expressions
      
      My five character contribution to the rust parser! Fixes https://github.com/rust-lang/rust/issues/32709.
      28c9fdaf
    • B
      Auto merge of #32882 - steveklabnik:rollup, r=steveklabnik · c0221c88
      bors 提交于
      Rollup of 9 pull requests
      
      - Successful merges: #32768, #32802, #32815, #32823, #32849, #32854, #32862, #32870, #32873
      - Failed merges:
      c0221c88
    • M
      Fix the span for try shorthand expressions · 05e4116a
      Marcus Klaas 提交于
      05e4116a
    • E
      tests: update for MIR debuginfo. · 373b6ec9
      Eduard Burtescu 提交于
      373b6ec9
    • E
      trans: initial implementation of MIR debuginfo. · ce8d4a21
      Eduard Burtescu 提交于
      ce8d4a21
    • E
      mir: store the span of a scope in the ScopeData. · f680c623
      Eduard Burtescu 提交于
      f680c623
    • E
      4e6b1786
    • E
    • E
      35a6e6a0
    • E
      mir: print the scope and span for variables. · a563711b
      Eduard Burtescu 提交于
      a563711b
    • A
      rustdoc: Fix testing no_run code blocks · 42bcb404
      Alex Crichton 提交于
      This was a regression introduced by #31250 where the compiler deferred returning
      the results of compilation a little too late (after the `Stop` check was looked
      at). This commit alters the stop point to first try to return an erroneous
      `result` and only if it was successful return the sentinel `Err(0)`.
      
      Closes #31576
      42bcb404
  3. 11 4月, 2016 19 次提交
    • A
      std: Stabilize APIs for the 1.9 release · 552eda70
      Alex Crichton 提交于
      This commit applies all stabilizations, renamings, and deprecations that the
      library team has decided on for the upcoming 1.9 release. All tracking issues
      have gone through a cycle-long "final comment period" and the specific APIs
      stabilized/deprecated are:
      
      Stable
      
      * `std::panic`
      * `std::panic::catch_unwind` (renamed from `recover`)
      * `std::panic::resume_unwind` (renamed from `propagate`)
      * `std::panic::AssertUnwindSafe` (renamed from `AssertRecoverSafe`)
      * `std::panic::UnwindSafe` (renamed from `RecoverSafe`)
      * `str::is_char_boundary`
      * `<*const T>::as_ref`
      * `<*mut T>::as_ref`
      * `<*mut T>::as_mut`
      * `AsciiExt::make_ascii_uppercase`
      * `AsciiExt::make_ascii_lowercase`
      * `char::decode_utf16`
      * `char::DecodeUtf16`
      * `char::DecodeUtf16Error`
      * `char::DecodeUtf16Error::unpaired_surrogate`
      * `BTreeSet::take`
      * `BTreeSet::replace`
      * `BTreeSet::get`
      * `HashSet::take`
      * `HashSet::replace`
      * `HashSet::get`
      * `OsString::with_capacity`
      * `OsString::clear`
      * `OsString::capacity`
      * `OsString::reserve`
      * `OsString::reserve_exact`
      * `OsStr::is_empty`
      * `OsStr::len`
      * `std::os::unix::thread`
      * `RawPthread`
      * `JoinHandleExt`
      * `JoinHandleExt::as_pthread_t`
      * `JoinHandleExt::into_pthread_t`
      * `HashSet::hasher`
      * `HashMap::hasher`
      * `CommandExt::exec`
      * `File::try_clone`
      * `SocketAddr::set_ip`
      * `SocketAddr::set_port`
      * `SocketAddrV4::set_ip`
      * `SocketAddrV4::set_port`
      * `SocketAddrV6::set_ip`
      * `SocketAddrV6::set_port`
      * `SocketAddrV6::set_flowinfo`
      * `SocketAddrV6::set_scope_id`
      * `<[T]>::copy_from_slice`
      * `ptr::read_volatile`
      * `ptr::write_volatile`
      * The `#[deprecated]` attribute
      * `OpenOptions::create_new`
      
      Deprecated
      
      * `std::raw::Slice` - use raw parts of `slice` module instead
      * `std::raw::Repr` - use raw parts of `slice` module instead
      * `str::char_range_at` - use slicing plus `chars()` plus `len_utf8`
      * `str::char_range_at_reverse` - use slicing plus `chars().rev()` plus `len_utf8`
      * `str::char_at` - use slicing plus `chars()`
      * `str::char_at_reverse` - use slicing plus `chars().rev()`
      * `str::slice_shift_char` - use `chars()` plus `Chars::as_str`
      * `CommandExt::session_leader` - use `before_exec` instead.
      
      Closes #27719
      cc #27751 (deprecating the `Slice` bits)
      Closes #27754
      Closes #27780
      Closes #27809
      Closes #27811
      Closes #27830
      Closes #28050
      Closes #29453
      Closes #29791
      Closes #29935
      Closes #30014
      Closes #30752
      Closes #31262
      cc #31398 (still need to deal with `before_exec`)
      Closes #31405
      Closes #31572
      Closes #31755
      Closes #31756
      552eda70
    • S
      Rollup merge of #32873 - jethrogb:patch-2, r=steveklabnik · 55e90bbd
      Steve Klabnik 提交于
      Match signed/unsigned integer type docs
      
      * Copy documentation from signed implementation to unsigned implementation, where necessary.
      
      A few functions had elaborate docs in the signed version but not in the unsigned version. This probably happenned because the signed version is at the top and the author didn't realize they had to update the documentation in both locations.
      
      * Use signed integers in signed documentation, where possible.
      
      r? @steveklabnik
      55e90bbd
    • S
      Rollup merge of #32870 - jethrogb:patch-1, r=GuillaumeGomez · 24c5c277
      Steve Klabnik 提交于
      Fix Windows UNC paths in std::path docs
      24c5c277
    • S
      Rollup merge of #32862 - raphlinus:master, r=bluss · c5842837
      Steve Klabnik 提交于
      Bit-magic for faster is_char_boundary
      
      The asm generated for b < 128 || b >= 192 is not ideal, as it computes
      both sub-inequalities. This patch replaces it with bit magic.
      
      Fixes #32471
      c5842837
    • S
      Rollup merge of #32854 - GuillaumeGomez:result_doc, r=steveklabnik · 7ba7e02b
      Steve Klabnik 提交于
      Add some missing commas and missing titles/formatting
      
      Fixes #29373.
      
      r? @steveklabnik
      7ba7e02b
    • S
      Rollup merge of #32849 - jseyfried:import_resolution_diagnostics, r=eddyb · c9c85099
      Steve Klabnik 提交于
      resolve: import resolution diagnostics
      
      This improves the diagnostics for failing import resolutions (fixes #32833).
      r? @EddyB
      c9c85099
    • S
      Rollup merge of #32823 - pravic:target-json, r=alexcrichton · 9989a95f
      Steve Klabnik 提交于
      Read "is-like-msvc" target option from JSON
      
      This is in reference to #32818.
      9989a95f
    • S
      Rollup merge of #32815 - allonsy:master, r=GuillaumeGomez · b5fc27cc
      Steve Klabnik 提交于
      Adds data race in docs
      
      Thanks for all your hard work!
      This is in reference to #32733
      I know there has been a discussion about this on PR #32538 so you are welcome to keep the code as is or merge my documentation in.
      Let me know what you think and/or if you want me to modify anything!
      b5fc27cc
    • S
      Rollup merge of #32802 - nikomatsakis:issue-32505, r=eddyb · 47cc0369
      Steve Klabnik 提交于
      add regression test for #32505
      
      Fixes #32505
      
      r? @EddyB
      47cc0369
    • S
      Rollup merge of #32768 - GuillaumeGomez:slice_doc, r=steveklabnik · 7eeb8c4e
      Steve Klabnik 提交于
      Add doc examples for Iter and IterMut
      
      Fixes #29374.
      
      r? @steveklabnik
      7eeb8c4e
    • B
      Auto merge of #32850 - jseyfried:add_tests, r=alexcrichton · b622c3e0
      bors 提交于
      resolve: Add regression tests for fixed issues
      
      This adds regression tests for fixed issues in resolve (closes #22146, closes #24883, closes #26930).
      r? @EddyB
      b622c3e0
    • B
      Auto merge of #32880 - Manishearth:fix, r=GuillaumeGomez · 87e2eb14
      bors 提交于
      Review fixes for #32878
      
      This contains review fixes for the PR.
      87e2eb14
    • M
      Tibet does not have a space program. Peru does. · 69095bb0
      Manish Goregaokar 提交于
      69095bb0
    • M
      4805e129
    • G
      Add E0520 error code explanation · 49be3dd3
      Guillaume Gomez 提交于
      49be3dd3
    • J
      Match signed/unsigned integer type docs · ed218f62
      jethrogb 提交于
      * Copy documentation from signed implementation to unsigned implementation, where necessary.
      * Use signed integers in signed documentation, where possible.
      ed218f62
    • B
      Auto merge of #32806 - brson:fix-features, r=alexcrichton · 23a7d30f
      bors 提交于
      Set the version number for stabilization of braced_empty_structs
      
      and augmented_assignment to 1.8.0.
      
      Per the comments, the numbers in this table reflect the "current
      status".
      
      cc @rust-lang/libs @rust-lang/lang
      
      Discovered this while hunting for 1.8 features. I'm afraid there may be more of these that are incorrect and we may have created a mess.
      23a7d30f
    • B
      Auto merge of #32816 - eddyb:variadic-fn-item, r=Aatch · 924da295
      bors 提交于
      Blacklist fn item types from being used with variadic functions.
      
      Fixes #32201 by adding fn types to the variadic blacklist which currently includes `bool`, `i8`, `u8`, `i16`, `u16` and `f32`.
      924da295
    • J
      Fix Windows UNC paths in std::path docs · 0fa0a6b6
      jethrogb 提交于
      0fa0a6b6
  4. 10 4月, 2016 1 次提交
    • R
      Bit-magic for faster is_char_boundary · b2db9734
      Raph Levien 提交于
      The asm generated for b < 128 || b >= 192 is not ideal, as it computes
      both sub-inequalities. This patch replaces it with bit magic.
      
      Fixes #32471
      b2db9734
  5. 09 4月, 2016 1 次提交