1. 05 12月, 2014 2 次提交
    • B
      auto merge of #19303 : nodakai/rust/libsyntax-reject-dirs, r=alexcrichton · 361baabb
      bors 提交于
      On *BSD systems, we can `open(2)` a directory and directly `read(2)` from it due to an old tradition.  We should avoid doing so by explicitly calling `fstat(2)` to check the type of the opened file.
      
      Opening a directory as a module file can't always be avoided.  Even when there's no "path" attribute trick involved, there can always be a *directory* named `my_module.rs`.
      
      Incidentally, remove unnecessary mutability of `&self` from `io::fs::File::stat()`.
      361baabb
    • B
      auto merge of #18980 : erickt/rust/reader, r=erickt · d9c7c00b
      bors 提交于
      This continues the work @thestinger started in #18885 (which hasn't landed yet, so wait for that to land before landing this one). Instead of adding more methods to `BufReader`, this just allows a `&[u8]` to be used directly as a `Reader`. It also adds an impl of `Writer` for `&mut [u8]`.
      d9c7c00b
  2. 04 12月, 2014 25 次提交
  3. 03 12月, 2014 12 次提交
  4. 02 12月, 2014 1 次提交