- 21 2月, 2014 1 次提交
-
-
由 bors 提交于
-
- 20 2月, 2014 29 次提交
-
-
由 bors 提交于
Fix generic Drop impls with trait bounds. Fixes #4252.
-
由 bors 提交于
Fixes #12333. I also re-enabled the *function-arg-initialization* test case, so if it passes again, fixes #12021.
-
由 bors 提交于
The new methodology can be found in the re-worded comment, but the gist of it is that -C prefer-dynamic doesn't turn off static linkage. The error messages should also be a little more sane now. Closes #12133
-
由 bors 提交于
The fairness yield mistakenly called `Local::take()` which meant that it would only work if a local task was available. In theory sending on a channel (or calling try_recv) requires no runtime because it never blocks, so there's no reason it shouldn't support such a use case. Closes #12391
-
由 bors 提交于
I don't think `extra` is a good/meaningful name for a library. `libextra` should disappear, and we move all of its sub modules out of it. This PR is just one of that steps: move `extra::test` to `libtest`. I didn't add `libtest` to doc index, because it's an internal library currently. **Update:** All comments addressed. All tests passed. Rebased and squashed.
-
由 bors 提交于
On windows, the GetEnvironmentVariable function will return the necessary buffer size if the buffer provided was too small. This case previously fell through the checks inside of fill_utf16_buf_and_decode, tripping an assertion in the `slice` method. This adds an extra case for when the return value is >= the buffer size, in which case we assume the return value as the new buffer size and try again. Closes #12376
-
由 Liigo Zhuang 提交于
-
由 bors 提交于
Closes #12383. Test suite did not capture this and can't as long as it is in the same module hierarchy. This is probably something that should be addressed in the future.
-
由 bors 提交于
Preparatory work for removing unique vectors from the language, which is itself preparatory work for dynamically sized types. r? @brson
-
由 bors 提交于
These can all be done by implicit or explicit &T -> *T casts, which are more restricted and so are safer.
-
由 Alex Crichton 提交于
The fairness yield mistakenly called `Local::take()` which meant that it would only work if a local task was available. In theory sending on a channel (or calling try_recv) requires no runtime because it never blocks, so there's no reason it shouldn't support such a use case. Closes #12391
-
由 Patrick Walton 提交于
Preparatory work for removing unique vectors from the language, which is itself preparatory work for dynamically sized types.
-
由 bors 提交于
See the commits
-
由 bors 提交于
-
由 Eduard Burtescu 提交于
-
由 kud1ing 提交于
-
由 Eduard Burtescu 提交于
-
由 Eduard Burtescu 提交于
-
由 bors 提交于
It is sometimes useful to parse just the path portion of a URL (path, query string and fragment) rather than the entire URL. In theory I could have made Url embed a Path, but that would be a breaking change and I assume that Servo uses this API. I would be happy to update the PR to embed Path in Url if that's what people wanted.
-
由 bors 提交于
-
由 Corey Richardson 提交于
This is mostly useful for working on rustc, when one is unfamiliar with the AST a particular construct will produce. It's a -Z flag as it's very much for debugging. Closes #10485
-
由 bors 提交于
When creating a staticlib, it unzips all static archives it finds and then inserts the files manually into the output file. This process is done through `ar`, and `ar` doesn't like if you specify you want to add files and you don't give it any files. This case arose whenever you linked to an archive that didn't have any contents or all of the contents were filtered out. This just involved ignoring the case where the number of inputs we have is 0, because we don't have any files to add anyway.
-
由 bors 提交于
-
由 Alex Crichton 提交于
The new methodology can be found in the re-worded comment, but the gist of it is that -C prefer-dynamic doesn't turn off static linkage. The error messages should also be a little more sane now. Closes #12133
-
由 Michael Woerister 提交于
-
由 Michael Woerister 提交于
-
由 Michael Woerister 提交于
debuginfo: Move test case from run-pass to debug-info directory so it does not interfere with RUSTFLAGS=-g
-
由 Michael Woerister 提交于
-
由 Alex Crichton 提交于
On windows, the GetEnvironmentVariable function will return the necessary buffer size if the buffer provided was too small. This case previously fell through the checks inside of fill_utf16_buf_and_decode, tripping an assertion in the `slice` method. This adds an extra case for when the return value is >= the buffer size, in which case we assume the return value as the new buffer size and try again. Closes #12376
-
- 19 2月, 2014 10 次提交
-
-
由 bors 提交于
Changed the docs for std::mem to clarify the fact that the size functions return sizes in bytes.
-
由 Huon Wilson 提交于
These can all be done by implicit or explicit &T -> *T casts, which are more restricted and so are safer.
-
由 bors 提交于
Currently, the format_args! macro and its downstream macros in turn expand to series of let statements, one for each of its arguments, and then the invocation of the macro function. If one or more of the arguments are RefCell's, the enclosing statement for the temporary of the let is the let itself, which leads to scope problem. This patch changes let's to a match expression. Closes #12239.
-
由 Eduard Bopp 提交于
Closes #12383.
-
由 Edward Wang 提交于
Currently, the format_args! macro and its downstream macros in turn expand to series of let statements, one for each of its arguments, and then the invocation of the macro function. If one or more of the arguments are RefCell's, the enclosing statement for the temporary of the let is the let itself, which leads to scope problem. This patch changes let's to a match expression. Closes #12239.
-
由 bors 提交于
Closes #11692. Instead of returning the original expression, a dummy expression (with identical span) is returned. This prevents infinite loops of failed expansions as well as odd double error messages in certain situations. This is a slightly better fix than #12197, because it does not produce a double error and also fixes a few other cases where an infinite loop could happen. This does not fix the other issue in #11692 (non-builtin macros not being recognised when expanded inside macros), which I think should be moved into a separate issue.
-
由 bors 提交于
The 'do' keyword was deprecated in 0.10 #11868 , and is keep as reserved keyword #12157 . So the tutorial part about it doesn't make sense. The spawning explanation was move into '15.2 Closure compatibility'.
-
由 bors 提交于
Commits have the details
-
由 Alex Crichton 提交于
When building up our path cache, we don't plaster over a path which was previously inserted if we're inserting a non-public-item thing. Closes #11678
-
由 Alex Crichton 提交于
Useful for getting the link to a method or function. Closes #10332
-