1. 06 1月, 2015 2 次提交
    • K
      Un-gate macro_rules · c2e26972
      Keegan McAllister 提交于
      c2e26972
    • K
      Modernize macro_rules! invocations · 416137eb
      Keegan McAllister 提交于
      macro_rules! is like an item that defines a macro.  Other items don't have a
      trailing semicolon, or use a paren-delimited body.
      
      If there's an argument for matching the invocation syntax, e.g. parentheses for
      an expr macro, then I think that applies more strongly to the *inner*
      delimiters on the LHS, wrapping the individual argument patterns.
      416137eb
  2. 19 12月, 2014 1 次提交
    • P
      librustc: Always parse `macro!()`/`macro![]` as expressions if not · ddb2466f
      Patrick Walton 提交于
      followed by a semicolon.
      
      This allows code like `vec![1i, 2, 3].len();` to work.
      
      This breaks code that uses macros as statements without putting
      semicolons after them, such as:
      
          fn main() {
              ...
              assert!(a == b)
              assert!(c == d)
              println(...);
          }
      
      It also breaks code that uses macros as items without semicolons:
      
          local_data_key!(foo)
      
          fn main() {
              println("hello world")
          }
      
      Add semicolons to fix this code. Those two examples can be fixed as
      follows:
      
          fn main() {
              ...
              assert!(a == b);
              assert!(c == d);
              println(...);
          }
      
          local_data_key!(foo);
      
          fn main() {
              println("hello world")
          }
      
      RFC #378.
      
      Closes #18635.
      
      [breaking-change]
      ddb2466f
  3. 27 9月, 2014 1 次提交
  4. 30 7月, 2014 1 次提交
  5. 14 4月, 2014 1 次提交
  6. 17 1月, 2014 1 次提交
  7. 12 1月, 2014 1 次提交
    • S
      Tighten up float literal lexing. · 5ea6d020
      SiegeLord 提交于
      Specifically, dissallow setting the number base for every type of float
      literal, not only those that contain the decimal point. This is in line with
      the description in the manual.
      5ea6d020
  8. 11 1月, 2014 1 次提交
  9. 06 1月, 2014 1 次提交
    • A
      Don't abort the process in native::start · eadfe0e3
      Alex Crichton 提交于
      If the main closure failed, then the `exit_code` variable would still be `None`,
      and the `unwrap()` was failing (triggering a process abort). This changes the
      `unwrap()` to an `unwrap_or()` in order to prevent process abort and detect when
      the native task failed.
      eadfe0e3
  10. 04 1月, 2014 1 次提交
    • H
      std: adjust requested stack size for thread-local storage. · f1b5f592
      Huon Wilson 提交于
      If there is a lot of data in thread-local storage some implementations
      of pthreads (e.g. glibc) fail if you don't request a stack large enough
      -- by adjusting for the minimum size we guarantee that our stacks are
      always large enough. Issue #6233.
      f1b5f592
  11. 08 12月, 2013 1 次提交
  12. 06 10月, 2013 1 次提交
  13. 25 9月, 2013 1 次提交
  14. 11 9月, 2013 1 次提交
  15. 17 8月, 2013 1 次提交
  16. 12 7月, 2013 1 次提交
  17. 09 7月, 2013 2 次提交
  18. 11 12月, 2012 1 次提交
  19. 20 1月, 2012 2 次提交
  20. 16 1月, 2012 1 次提交
    • K
      Don't evaluate discriminator value constants when parsing. · e1c50c44
      Kevin Atkinson 提交于
      Remove disr_val from ast::variant_ and always use ty::variant_info
      when the value is needed.  Move what was done during parsing into
      other passes, primary typeck.rs.  This move also correctly type checks
      the disr. value expression; thus, fixing rustc --pretty=typed when
      disr. values are used.
      e1c50c44