1. 19 1月, 2014 9 次提交
    • 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 29 次提交
  3. 17 1月, 2014 2 次提交
    • B
      auto merge of #11585 : nikomatsakis/rust/issue-3511-rvalue-lifetimes, r=pcwalton · 4098327b
      bors 提交于
      Major changes:
      
      - Define temporary scopes in a syntax-based way that basically defaults
        to the innermost statement or conditional block, except for in
        a `let` initializer, where we default to the innermost block. Rules
        are documented in the code, but not in the manual (yet).
        See new test run-pass/cleanup-value-scopes.rs for examples.
      - Refactors Datum to better define cleanup roles.
      - Refactor cleanup scopes to not be tied to basic blocks, permitting
        us to have a very large number of scopes (one per AST node).
      - Introduce nascent documentation in trans/doc.rs covering datums and
        cleanup in a more comprehensive way.
      
      r? @pcwalton
      4098327b
    • N
      Adjust comments in test case · b520c2f2
      Niko Matsakis 提交于
      b520c2f2