- 24 9月, 2013 1 次提交
-
-
由 Patrick Walton 提交于
-
- 22 9月, 2013 1 次提交
-
-
由 Brian Anderson 提交于
-
- 21 9月, 2013 1 次提交
-
-
由 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.
-
- 20 9月, 2013 3 次提交
-
-
由 Felix S. Klock II 提交于
-
由 Felix S. Klock II 提交于
-
由 Evgeny Sologubov 提交于
-
- 19 9月, 2013 5 次提交
-
-
由 Chris Morgan 提交于
This is for consistency in naming conventions. - ``std::num::Float::NaN()`` is changed to ``nan()``; - ``std::num::Float.is_NaN()`` is changed to ``is_nan()``; and - ``std::num::strconv::NumStrConv::NaN()`` is changed to ``nan()``. Fixes #9319.
-
由 Marvin Löbel 提交于
Some minor api and doc adjustments
-
由 Chris Morgan 提交于
This is the second of two parts of #8991, now possible as a new snapshot has been made. (The first part implemented the unreachable!() macro; it was #8992, 6b7b8f26.) ``std::util::unreachable()`` is removed summarily; any code which used it should now use the ``unreachable!()`` macro. Closes #9312. Closes #8991.
-
由 Luqman Aden 提交于
-
由 Alex Crichton 提交于
This is more consistent with other parts of the language and it also makes it easier to use in situations where format string is massive.
-
- 18 9月, 2013 4 次提交
-
-
由 Jimmy Zelinskie 提交于
-
由 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.
-
由 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.
-
由 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! ...
-
- 17 9月, 2013 4 次提交
-
-
由 Vadim Chugunov 提交于
These really should have been marked xfail-win32, but that doesn't exist, so xfail-fast it is.
-
由 Huon Wilson 提交于
Closes #2074. Closes #5008. Closes #7519. Closes #7673. Closes #7770. Closes #8171.
-
由 Daniel Micay 提交于
-
由 Tim Chevalier 提交于
Closes #4208
-
- 16 9月, 2013 4 次提交
-
-
由 Marvin Löbel 提交于
Split up test function a bit
-
由 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
-
由 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
-
由 Seo Sanghyeon 提交于
-
- 15 9月, 2013 4 次提交
-
-
由 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.
-
由 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
-
由 Daniel Micay 提交于
The cases they test are well covered in the `std::iter` tests.
-
由 blake2-ppc 提交于
Use the iterator version instead of the old uint::/int::range_step functions.
-
- 14 9月, 2013 2 次提交
-
-
由 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).
-
由 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.
-
- 13 9月, 2013 4 次提交
-
-
由 Alex Crichton 提交于
Closes #9123
-
由 Erick Tryzelaar 提交于
Options are not numeric types, so it doesn't make sense for them to implement Zero.
-
由 Erick Tryzelaar 提交于
Vecs are not numeric types, so it doesn't make sense for them to implement Zero.
-
由 Brian Anderson 提交于
-
- 12 9月, 2013 7 次提交
-
-
由 Alex Crichton 提交于
Closes #9119
-
由 Alex Crichton 提交于
The purpose of this macro is to further reduce the number of allocations which occur when dealing with formatting strings. This macro will perform all of the static analysis necessary to validate that a format string is safe, and then it will wrap up the "format string" into an opaque struct which can then be passed around. Two safe functions are added (write/format) which take this opaque argument structure, unwrap it, and then call the unsafe version of write/format (in an unsafe block). Other than these two functions, it is not intended for anyone to ever look inside this opaque struct. The macro looks a bit odd, but mostly because of rvalue lifetimes this is the only way for it to be safe that I know of. Example use-cases of this are: * third-party libraries can use the default formatting syntax without any forced allocations * the fail!() macro can avoid allocating the format string * the logging macros can avoid allocation any strings
-
由 John Clements 提交于
-
由 SiegeLord 提交于
-
由 SiegeLord 提交于
-
由 SiegeLord 提交于
-
由 SiegeLord 提交于
-