1. 04 4月, 2018 4 次提交
  2. 03 4月, 2018 10 次提交
  3. 02 4月, 2018 13 次提交
  4. 01 4月, 2018 9 次提交
    • B
      Auto merge of #49478 - Phlosioneer:fix-windows-file-not-found, r=petrochenkov · d2235f20
      bors 提交于
      Fix escaped backslash in windows file not found message
      
      When a module is declared, but no matching file exists, rustc gives
      an error like `help: name the file either foo.rs or foo/mod.rs inside
      the directory "src/bar"`. However, at on windows, the backslash was
      double-escaped when naming the directory.
      
      It did this because the string was printed in debug mode (`"{:?}"`) to
      surround it with quotes. However, it should just be printed like any
      other directory in an error message and surrounded by escaped quotes,
      rather than relying on the debug print to add quotes (`"\"{}\""`).
      
      I also checked the test suite to see if this output is being correctly tested. It's not - it only tests up to the word "directory". Presumably this is so that the test is not dependent on its exact position in the source tree. I don't know a better way to test this, unless the test suite supports regex?
      d2235f20
    • M
      Remove filetime dep from build_helper · 86915ddf
      Mark Simulacrum 提交于
      86915ddf
    • B
      Auto merge of #49418 - frewsxcv:frewsxcv-network-order, r=TimNN · cb1f8986
      bors 提交于
      Clarify network byte order conversions for integer / IP address conversions.
      
      Opened primarily to address https://github.com/rust-lang/rust/issues/48819.
      
      Also added a few other conversion docs/examples.
      cb1f8986
    • B
      Auto merge of #49545 - alexcrichton:proc-macro-fixes, r=eddyb · 85f00984
      bors 提交于
      proc_macro: Tweak doc comments and negative literals
      
      This commit tweaks the tokenization of a doc comment to use `#[doc = "..."]`
      like `macro_rules!` does (instead of treating it as a `Literal` token).
      Additionally it fixes treatment of negative literals in the compiler, for
      exapmle `Literal::i32(-1)`. The current fix is a bit of a hack around the
      current compiler implementation, providing a fix at the proc-macro layer rather
      than the libsyntax layer.
      
      Closes #48889
      85f00984
    • B
      Auto merge of #49530 - petrhosek:empty-extra-flags, r=cramertj · 804d8c88
      bors 提交于
      Only include space in RUSTFLAGS extra flags if not empty
      
      When the RUSTFLAGS_STAGE_{1,2} is not set, including a space means
      the string will always be non-empty and RUSTFLAGS will be always be
      reset which breaks other ways of setting these such as through config
      in CARGO_HOME.
      804d8c88
    • B
      Auto merge of #49522 - mbrubeck:fs_read, r=SimonSapin · 9ceaa567
      bors 提交于
      Rename fs::read_string to read_to_string and stabilize
      
      As approved in https://github.com/rust-lang/rust/issues/46588#issuecomment-377530365
      
      Closes #46588.
      9ceaa567
    • B
      Auto merge of #49527 - petrhosek:fast-submodules, r=alexcrichton · 2b499440
      bors 提交于
      Handle fast-submodules option correctly
      
      This option was introduced in 72cb109b, but it uses two different
      spellings (`fast-submodule` in `bootstrap.py` vs `fast-submodules` in
      `config.toml.example`) and isn't handled by Rust bootstrap which means
      that any attempt to set this flag fails.
      2b499440
    • A
      proc_macro: Tweak doc comments and negative literals · ec1a8f08
      Alex Crichton 提交于
      This commit tweaks the tokenization of a doc comment to use `#[doc = "..."]`
      like `macro_rules!` does (instead of treating it as a `Literal` token).
      Additionally it fixes treatment of negative literals in the compiler, for
      exapmle `Literal::i32(-1)`. The current fix is a bit of a hack around the
      current compiler implementation, providing a fix at the proc-macro layer rather
      than the libsyntax layer.
      ec1a8f08
    • B
      Auto merge of #49521 - mbrubeck:fs_read_write_bytes, r=TimNN · 517f2402
      bors 提交于
      fs_read_write_bytes stabilized in 1.26.0
      
      Fix the stabilization attributes from #49422 because it merged before 1.26 branched to beta.
      
      r? @TimNN
      517f2402
  5. 31 3月, 2018 4 次提交