1. 19 1月, 2014 12 次提交
    • M
      Squashed commit of the following: · 1a8a901f
      musitdev 提交于
      commit d00623d60afd460755b749ad5f94935f756f29d2
      Author: musitdev <philippe.delrieu@free.fr>
      Date:   Sat Jan 4 22:31:40 2014 +0100
      
          correct last comments.
      
      commit ef09d6b6d1eebbd7c713c9dad96ed7bfc19dd884
      Author: musitdev <philippe.delrieu@free.fr>
      Date:   Thu Jan 2 20:28:53 2014 +0100
      
          update with the last remarks.
      
      commit 46a028fe1fcdc2a7dcdd78a63001793eff614349
      Author: musitdev <philippe.delrieu@free.fr>
      Date:   Thu Jan 2 10:17:18 2014 +0100
      
          wrap example code in main function.
      
      commit 2472901929bef09786b7aef8ca7c89fbe67d8e3e
      Author: musitdev <philippe.delrieu@free.fr>
      Date:   Mon Dec 30 19:32:46 2013 +0100
      
          Correct code to compile.
      
      commit ed96b2223176781743e984af0e19abcb82150f1f
      Author: musitdev <philippe.delrieu@free.fr>
      Date:   Thu Dec 5 11:32:28 2013 +0100
      
          Correct the comment based on the PR comment.
          Change init call to new to reflect last change.
      
      commit 38b0390c3533a16f822a6df5f90b907bd8ed6edc
      Author: musitdev <philippe.delrieu@free.fr>
      Date:   Wed Dec 4 22:34:25 2013 +0100
      
          correct from_utf8_owned call.
      
      commit 08bed4c5f4fadf93ec457b605a1a1354323d2f5c
      Author: musitdev <philippe.delrieu@free.fr>
      Date:   Wed Dec 4 22:12:41 2013 +0100
      
          correct code '''
      
      commit 02fddcbe2ab37fe842872691105bc4c5cff5abb5
      Author: musitdev <philippe.delrieu@free.fr>
      Date:   Wed Dec 4 13:25:54 2013 +0100
      
          correct typing error
      
      commit b26830b8ddb49f551699e791832ed20640a0fafc
      Author: musitdev <philippe.delrieu@free.fr>
      Date:   Wed Dec 4 13:18:39 2013 +0100
      
          pass make check
      
      commit e87c4f53286122efd0d2364ea45600d4fa4d5744
      Author: musitdev <philippe.delrieu@free.fr>
      Date:   Wed Dec 4 10:47:24 2013 +0100
      
          Add Json example and documentation.
      1a8a901f
    • B
      auto merge of #11615 : adwhit/rust/master, r=cmr · 6d552117
      bors 提交于
      This is my first patch so feedback appreciated!
      
      Bug when initialising `bitv:Bitv::new(int,bool)` when `bool=true`. It created a `Bitv` with underlying representation `!0u` rather than the actual desired bit layout ( e.g. `11111111` instead of `00001111`). This works OK because a size attribute is included which keeps access to legal bounds.  However when using `BitvSet::from_bitv(Bitv)`, we then find that `bitvset.contains(i)` can return true when `i` should not in fact be in the set.
      
      ```
      let bs = BitvSet::from_bitv(Bitv::new(100, true));
      assert!(!bs.contains(&127)) //fails
      ```
      
      The fix is to create the correct representation by treating various cases separately and using a bitshift `(1<<nbits) - 1` to generate correct number of `1`s where necessary.
      6d552117
    • B
      auto merge of #11567 : divtxt/rust/master, r=cmr · 1a9641bf
      bors 提交于
      I found the boxes diagram in the tutorial misleading about how the enum worked.
      
      The current diagram makes it seem that there is a separate Cons struct when there is only one type of struct for the  List type, and Nil is drawn almost as if it's not consuming memory.
      
      I'm aware of the optimization that happens for this enum which takes advantage of the fact that pointer cannot be null but this is an implementation detail and not the only one that applies here.  I can add a note below the diagram mentioning this if you like.
      1a9641bf
    • B
      auto merge of #11311 : hdima/rust/vim-syntax-spell-check, r=cmr · dbce62c6
      bors 提交于
      Add `@Spell` clusters to Vim syntax highlighting file to do spell checking only inside comments and strings
      dbce62c6
    • B
      auto merge of #11632 : brson/rust/issue-11602, r=huonw · c0578b4a
      bors 提交于
      c0578b4a
    • B
      auto merge of #11620 : alexcrichton/rust/rustc-silent, r=brson · d0f6ef08
      bors 提交于
      This commit re-works how the monitor() function works and how it both receives
      and transmits errors. There are a few cases in which the compiler can abort:
      
      1. A normal compiler error. In this case, the compiler raises a FatalError as
         the failure value of the task. If this happens, then the monitor task does
         nothing. It ignores all stderr output of the child task and it also
         suppresses the failure message of the main task itself. This means that on a
         normal compiler error just the error message itself is printed.
      
      2. A normal internal compiler error. These are invoked from sess.span_bug() and
         friends. In these cases, they follow the same path (raising a FatalError),
         but they will also print an ICE message which has a URL to go report a bug.
      
      3. An actual compiler bug. This happens whenever anything calls fail!() instead
         of going through the session itself. In this case, we print out stuff about
         RUST_LOG=2 and we by default capture all stderr and print via warn!() so it's
         only printed out with the RUST_LOG var set.
      d0f6ef08
    • B
      auto merge of #11607 : alexcrichton/rust/issue-9957, r=cmr · b5a110c7
      bors 提交于
      For `use` statements, this means disallowing qualifiers when in functions and
      disallowing `priv` outside of functions.
      
      For `extern mod` statements, this means disallowing everything everywhere. It
      may have been envisioned for `pub extern mod foo` to be a thing, but it
      currently doesn't do anything (resolve doesn't pick it up), so better to err on
      the side of forwards-compatibility and forbid it entirely for now.
      
      Closes #9957
      b5a110c7
    • B
      auto merge of #11606 : alexcrichton/rust/issue-9259, r=brson · c5d05acf
      bors 提交于
      This must have been fixed in some recent trans refactor/rewrite, hurray!
      
      Closes #9259
      c5d05acf
    • A
      Add a test for closed issue #9259 · 4d5da45e
      Alex Crichton 提交于
      This must have been fixed in some recent trans refactor/rewrite, hurray!
      
      Closes #9259
      4d5da45e
    • A
      rustc: Clean up error reporting · 27843133
      Alex Crichton 提交于
      This commit re-works how the monitor() function works and how it both receives
      and transmits errors. There are a few cases in which the compiler can abort:
      
      1. A normal compiler error. In this case, the compiler raises a FatalError as
         the failure value of the task. If this happens, then the monitor task does
         nothing. It ignores all stderr output of the child task and it also
         suppresses the failure message of the main task itself. This means that on a
         normal compiler error just the error message itself is printed.
      
      2. A normal internal compiler error. These are invoked from sess.span_bug() and
         friends. In these cases, they follow the same path (raising a FatalError),
         but they will also print an ICE message which has a URL to go report a bug.
      
      3. An actual compiler bug. This happens whenever anything calls fail!() instead
         of going through the session itself. In this case, we print out stuff about
         RUST_LOG=2 and we by default capture all stderr and print via warn!() so it's
         only printed out with the RUST_LOG var set.
      27843133
    • A
      Forbid unnecessary visibility on view items · 4a78364d
      Alex Crichton 提交于
      For `use` statements, this means disallowing qualifiers when in functions and
      disallowing `priv` outside of functions.
      
      For `extern mod` statements, this means disallowing everything everywhere. It
      may have been envisioned for `pub extern mod foo` to be a thing, but it
      currently doesn't do anything (resolve doesn't pick it up), so better to err on
      the side of forwards-compatibility and forbid it entirely for now.
      
      Closes #9957
      4a78364d
    • B
      auto merge of #11619 : adridu59/rust/patch-md, r=cmr · f3f2e697
      bors 提交于
      Noticeably necroes #10892.
      Also closes #11559.
      
      r? @alexcrichton
      f3f2e697
  2. 18 1月, 2014 28 次提交