1. 20 6月, 2014 18 次提交
  2. 19 6月, 2014 22 次提交
    • H
      rustdoc: add the ability to run tests with --test. · 11bdeea7
      Huon Wilson 提交于
      This adds the `test_harness` directive that runs a code block using the
      test runner, to allow for `#[test]` items to be demonstrated and still
      tested (currently they are just stripped and not even compiled, let
      alone run).
      11bdeea7
    • H
      rustdoc: refactor code block language info into a struct. · a17b0421
      Huon Wilson 提交于
      Fields have names, unlike an anonymous tuple.
      a17b0421
    • B
      auto merge of #14830 : luqmana/rust/cmtrttcbctto, r=nikomatsakis · bb06790c
      bors 提交于
      Fixes #14399.
      bb06790c
    • B
      auto merge of #14400 : kballard/rust/lexer_crlf_handling, r=cmr · f8c9aec3
      bors 提交于
      The lexer already ignores CRLF in between tokens, but it doesn't
      properly handle carriage returns inside strings and doc comments. Teach
      it to treat CRLF as LF inside these tokens, and to disallow carriage
      returns that are not followed by linefeeds. This includes handling an
      escaped CRLF inside a regular string token the same way it handles an
      escaped LF.
      
      This is technically a breaking change, as bare carriage returns are no
      longer allowed, and CRLF sequences are now treated as LF inside strings
      and doc comments, but it's very unlikely to actually affect any
      real-world code.
      
      This change is necessary to have Rust code compile on Windows the same
      way it does on Unix. The mozilla/rust repository explicitly sets eol=lf
      for Rust source files, but other Rust repositories don't. Notably,
      rust-http cannot be compiled on Windows without converting the CRLF line
      endings back to LF.
      
      [breaking-change]
      f8c9aec3
    • K
      Handle CRLF properly in the lexer · 8a8e497a
      Kevin Ballard 提交于
      The lexer already ignores CRLF in between tokens, but it doesn't
      properly handle carriage returns inside strings and doc comments. Teach
      it to treat CRLF as LF inside these tokens, and to disallow carriage
      returns that are not followed by linefeeds. This includes handling an
      escaped CRLF inside a regular string token the same way it handles an
      escaped LF.
      
      This is technically a breaking change, as bare carriage returns are no
      longer allowed, and CRLF sequences are now treated as LF inside strings
      and doc comments, but it's very unlikely to actually affect any
      real-world code.
      
      This change is necessary to have Rust code compile on Windows the same
      way it does on Unix. The mozilla/rust repository explicitly sets eol=lf
      for Rust source files, but other Rust repositories don't. Notably,
      rust-http cannot be compiled on Windows without converting the CRLF line
      endings back to LF.
      
      [breaking-change]
      8a8e497a
    • B
      auto merge of #15014 : brson/rust/all-crates-experimental, r=cmr · f05cd6e0
      bors 提交于
      This creates a stability baseline for all crates that we distribute that are not `std`. In general, all library code must start as experimental and progress in stages to become stable.
      f05cd6e0
    • B
      3770c42a
    • A
      Merge conflicts from the rollup · 2c3bf883
      Alex Crichton 提交于
      Closes #14480 (vim: Add :RustRun and associated commands)
      Closes #14917 (Deprecate free-standing endian conversions in favor of methods on Int. Merge Bitwise into Int and add more bit operations.)
      Closes #14981 (librustc: Use expr_ty_adjusted in trans_overloaded_call.)
      Closes #14989 (std::task - Revamp TaskBuilder API)
      Closes #14997 (Reject double moves out of array elements)
      Closes #14998 (Vim: highlight escapes for byte literals.)
      Closes #15002 (Fix FIXME #5275)
      Closes #15004 (Fix #14865)
      Closes #15007 (debuginfo: Add test case for issue #14411.)
      Closes #15012 ((doc) Change search placeholder text.)
      Closes #15013 (Update compiler-rt.)
      Closes #15017 (Deprecate the bytes!() macro.)
      2c3bf883
    • S
      Revert bytes!() docstring change, and fix a typo. · 72f0d453
      Simon Sapin 提交于
      72f0d453
    • S
      Deprecate the bytes!() macro. · 108b8b6d
      Simon Sapin 提交于
      Replace its usage with byte string literals, except in `bytes!()` tests.
      Also add a new snapshot, to be able to use the new b"foo" syntax.
      
      The src/etc/2014-06-rewrite-bytes-macros.py script automatically
      rewrites `bytes!()` invocations into byte string literals.
      Pass it filenames as arguments to generate a diff that you can inspect,
      or `--apply` followed by filenames to apply the changes in place.
      Diffs can be piped into `tip` or `pygmentize -l diff` for coloring.
      108b8b6d
    • L
      Update compiler-rt to work for non-v7 arm. · abf7e933
      Luqman Aden 提交于
      abf7e933
    • Z
      (doc) Change search placeholder text. · ba863c81
      Zach Pomerantz 提交于
      Update placeholder text to make keyboard shortcuts more apparent.
      ba863c81
    • M
      debuginfo: Add test case for issue 14411. · 7cfdfa6e
      Michael Woerister 提交于
      7cfdfa6e
    • E
      Fix #14865 · b1df9aa1
      Edward Wang 提交于
      Fixes a codegen bug which generates illegal non-terminated LLVM block
      when there are wildcard pattern with guard and enum patterns in a match
      expression. Also refactors the code a little.
      
      Closes #14865
      b1df9aa1
    • P
      Fix FIXME #5275 · bde851e9
      Piotr Jawniak 提交于
      Issue #5275 was closed, but there still was a FIXME for it.
      bde851e9
    • C
      Vim: highlight invalid characters in char literals. · b0dff7a1
      Chris Morgan 提交于
      b0dff7a1
    • C
      Vim: highlight escapes for byte literals. · 31dfcf9d
      Chris Morgan 提交于
      31dfcf9d
    • C
      Reject double moves out of array elements · 90f7e3a6
      Cameron Zwarich 提交于
      Fixes #14986.
      90f7e3a6
    • A
      Fallout from TaskBuilder changes · f9934955
      Aaron Turon 提交于
      This commit brings code downstream of libstd up to date with the new
      TaskBuilder API.
      f9934955
    • A
      Revamp TaskBuilder API · a23511a6
      Aaron Turon 提交于
      This patch consolidates and cleans up the task spawning APIs:
      
      * Removes the problematic `future_result` method from `std::task::TaskBuilder`,
        and adds a `try_future` that both spawns the task and returns a future
        representing its eventual result (or failure).
      
      * Removes the public `opts` field from `TaskBuilder`, instead adding appropriate
        builder methods to configure the task.
      
      * Adds extension traits to libgreen and libnative that add methods to
        `TaskBuilder` for spawning the task as a green or native thread.
      
      Previously, there was no way to benefit from the `TaskBuilder` functionality and
      also set the scheduler to spawn within.
      
      With this change, all task spawning scenarios are supported through the
      `TaskBuilder` interface.
      
      Closes #3725.
      
      [breaking-change]
      a23511a6
    • L
      8e9e17d1
    • B
      Update doc comment for Int trait · ae7006e3
      Brendan Zabarauskas 提交于
      ae7006e3