1. 24 9月, 2013 1 次提交
  2. 22 9月, 2013 1 次提交
  3. 21 9月, 2013 1 次提交
    • A
      Invert --cfg debug to --cfg ndebug · 833a64d7
      Alex Crichton 提交于
      Many people will be very confused that their debug! statements aren't working
      when they first use rust only to learn that they should have been building with
      `--cfg debug` the entire time. This inverts the meaning of the flag to instead
      of enabling debug statements, now it disables debug statements.
      
      This way the default behavior is a bit more reasonable, and requires less
      end-user configuration. Furthermore, this turns on debug by default when
      building the rustc compiler.
      833a64d7
  4. 20 9月, 2013 3 次提交
  5. 19 9月, 2013 5 次提交
  6. 18 9月, 2013 4 次提交
    • J
      Remove and replace cond! Closes #9282. · 47576313
      Jimmy Zelinskie 提交于
      47576313
    • D
      Added support for a `\0` escape sequence. · 604667fa
      Daniel Rosenwasser 提交于
      This commit adds support for `\0` escapes in character and string literals.
      
      Since `\0` is equivalent to `\x00`, this is a direct translation to the latter
      escape sequence. Future builds will be able to compile using `\0` directly.
      
      Also updated the grammar specification and added a test for NUL characters.
      604667fa
    • B
      pp: also print bounds in paths with no generic params · 823ebb14
      Benjamin Herr 提交于
      Since 3b6314c3 the pretty printer seems to only print trait bounds for
      `ast::ty_path(...)`s that have a generics arguments list. That seems
      wrong, so let's always print them.
      
      Closes #9253, un-xfails test for #7673.
      823ebb14
    • A
      Prevent a rare linkage issue with an xcrate static · 9adcbac3
      Alex Crichton 提交于
      If a static is flagged as address_insignificant, then for LLVM to actually
      perform the relevant optimization it must have an internal linkage type. What
      this means, though, is that the static will not be available to other crates.
      Hence, if you have a generic function with an inner static, it will fail to link
      when built as a library because other crates will attempt to use the inner
      static externally.
      
      This gets around the issue by inlining the static into the metadata. The same
      relevant optimization is then applied separately in the external crate. What
      this ends up meaning is that all statics tagged with #[address_insignificant]
      will appear at most once per crate (by value), but they could appear in multiple
      crates.
      
      This should be the last blocker for using format! ...
      9adcbac3
  7. 17 9月, 2013 4 次提交
  8. 16 9月, 2013 4 次提交
    • M
      Corrected a few small style issues · 0635cb75
      Marvin Löbel 提交于
      Split up test function a bit
      0635cb75
    • M
      Add an SendStr type · 76c3e8a3
      Marvin Löbel 提交于
      A SendStr is a string that can hold either a ~str or a &'static str.
      This can be useful as an optimization when an allocation is sometimes needed but the common case is statically known.
      
      Possible use cases include Maps with both static and owned keys, or propagating error messages across task boundaries.
      
      SendStr implements most basic traits in a way that hides the fact that it is an enum; in particular things like order and equality are only determined by the content of the wrapped strings.
      
      Replaced std::rt:logging::SendableString with SendStr
      Added tests for using an SendStr as key in Hash- and Treemaps
      76c3e8a3
    • A
      Resume inlining globals across crates · 01070289
      Alex Crichton 提交于
      In #8185 cross-crate condition handlers were fixed by ensuring that globals
      didn't start appearing in different crates with different addressed. An
      unfortunate side effect of that pull request is that constants weren't inlined
      across crates (uint::bits is unknown to everything but libstd).
      
      This commit fixes this inlining by using the `available_eternally` linkage
      provided by LLVM. It partially reverts #8185, and then adds support for this
      linkage type. The main caveat is that not all statics could be inlined into
      other crates. Before this patch, all statics were considered "inlineable items",
      but an unfortunate side effect of how we deal with `&static` and `&[static]`
      means that these two cases cannot be inlined across crates. The translation of
      constants was modified to propogate this condition of whether a constant
      should be considered inlineable into other crates.
      
      Closes #9036
      01070289
    • S
      Ignore failing tests on Android · 942bc316
      Seo Sanghyeon 提交于
      942bc316
  9. 15 9月, 2013 4 次提交
    • B
      Remove {uint,int,u64,i64,...}::from_str,from_str_radix · 85223412
      blake2-ppc 提交于
      Remove these in favor of the two traits themselves and the wrapper
      function std::from_str::from_str.
      
      Add the function std::num::from_str_radix in the corresponding role for
      the FromStrRadix trait.
      85223412
    • A
      Guarantee that statics have unique names · 1da4488d
      Alex Crichton 提交于
      While they may have the same name within various scopes, this changes static
      names to use path_pretty_name to append some hash information at the end of the
      symbol. We're then guaranteed that each static has a unique NodeId, so this
      NodeId is as the "hash" of the pretty name.
      
      Closes #9188
      1da4488d
    • D
      remove old internal iterator range tests · a05c4a1e
      Daniel Micay 提交于
      The cases they test are well covered in the `std::iter` tests.
      a05c4a1e
    • B
      Use std::iter::range_step · ad74fde6
      blake2-ppc 提交于
      Use the iterator version instead of the old uint::/int::range_step
      functions.
      ad74fde6
  10. 14 9月, 2013 2 次提交
    • A
      Remove all usage of change_dir_locked · 0af2bd82
      Alex Crichton 提交于
      While usage of change_dir_locked is synchronized against itself, it's not
      synchronized against other relative path usage, so I'm of the opinion that it
      just really doesn't help in running tests. In order to prevent the problems that
      have been cropping up, this completely removes the function.
      
      All existing tests (except one) using it have been moved to run-pass tests where
      they get their own process and don't need to be synchronized with anyone else.
      
      There is one now-ignored rustpkg test because when I moved it to a run-pass test
      apparently run-pass isn't set up to have 'extern mod rustc' (it ends up having
      linkage failures).
      0af2bd82
    • A
      Move glob tests to a run-pass test · a7215dd2
      Alex Crichton 提交于
      The normal unit tests cannot change the current working directory because it
      messes with the other tests which depend on a particular working directory.
      a7215dd2
  11. 13 9月, 2013 4 次提交
  12. 12 9月, 2013 7 次提交