klutzy
7eb35bc2a9
test: Convert Window path to MSYS path
...
When MSYS shell executes program, if its arguments look like MSYS paths,
MSYS automatically converts them into Windows paths.
For example, `/c/path:/d/path` becomes `C:\path;D:\path`.
However, if there is only one path e.g. `/c/path`, it becomes `C:/path`.
maketest.py reverts the behavior to reduce confusion between MSYS and
Windows, but it didn't handle the `/c/path` case. This patch fixes the
issue.
Fixes #15297
Fixes #15250
2014-08-23 16:19:07 +09:00
nham
9a43492f59
Improve TwoWaySearcher comments.
2014-08-22 22:34:14 -04:00
bors
2e5aea65cd
auto merge of #16667 : retep998/rust/master, r=pcwalton
2014-08-23 01:40:48 +00:00
bors
75396b2a06
auto merge of #16663 : Gankro/rust/heapify, r=alexcrichton
...
Heapify is O(n), extend as currently implemented is O(nlogn). No brainer.
Currently investigating whether extend can just be implemented as a local heapify.
2014-08-22 23:55:50 +00:00
bors
594371bb67
auto merge of #16658 : jauhien/rust/fix-llvm, r=thestinger
...
Upstream LLVM from VCS already has version 3.6,
configure fixed appropriately to allow building with it
2014-08-22 22:10:47 +00:00
bors
d0104d04fd
auto merge of #16659 : brson/rust/slowparse, r=alexcrichton
...
Note that this contains a 9.5MB test file, but it should compress thoroughly.
2014-08-22 20:25:49 +00:00
P1start
fde41a3f70
Add support for trailing commas in more places
...
This lets the parser understand trailing commas in method calls, method
definitions, enum variants, and type parameters.
Closes #14240 .
Closes #15887 .
2014-08-23 07:23:51 +12:00
Luqman Aden
30ab05aeb5
librustc: Properly tag upvars in proc's to stop misleading unused_mut warnings.
2014-08-22 10:18:22 -07:00
bors
58bb603ea7
auto merge of #16651 : vks/rust/fix-bitv-bench, r=alexcrichton
...
Fixes #12118 .
(I sneaked in an unrelated one-character whitespace fix I spotted while reviewing some benchmarks, if that is not okay, I can create a separate pull request for that.)
2014-08-22 17:05:48 +00:00
klutzy
a3d77e616b
configure: Recognize i686 build on msys2
2014-08-23 01:47:37 +09:00
bors
36789fbbc5
auto merge of #16656 : luqmana/rust/ucmla, r=pcwalton
...
Gets rid of a FIXME in `base::get_fn_llvm_attributes`.
r? @pcwalton
2014-08-22 15:20:48 +00:00
bors
c9cf3b3cc4
auto merge of #16655 : pcwalton/rust/unboxed-closures-unboxing-shims, r=luqmana
...
Closes #16591 .
r? @luqmana
2014-08-22 13:35:51 +00:00
bors
b9326ca91c
auto merge of #16653 : steveklabnik/rust/module_wording, r=alexcrichton
...
@kimundi was a bit worried this was misleading.
2014-08-22 11:50:58 +00:00
bors
19a44c73c2
auto merge of #16647 : vhbit/rust/ios-build-fixes, r=alexcrichton
2014-08-22 09:05:53 +00:00
bors
5fe5e3947b
auto merge of #16639 : pcwalton/rust/unboxed-closures-param-resolution, r=nick29581
...
Closes #16508 .
r? @nick29581
2014-08-22 06:50:56 +00:00
Peter Atashian
be8bd24e31
win64: Add missing #[repr(C)]
...
Signed-off-by: Peter Atashian <retep998@gmail.com>
2014-08-22 00:53:11 -04:00
bors
47b9a6fb41
auto merge of #16616 : pcwalton/rust/unboxed-closure-where-clause, r=nikomatsakis
...
signatures.
Closes #16549 .
Closes #16564 .
r? @pnkfelix
2014-08-22 04:25:56 +00:00
bors
07d86b46a9
auto merge of #16509 : luqmana/rust/uw, r=alexcrichton
...
Fixes #15401 .
2014-08-22 02:40:56 +00:00
Patrick Walton
24a2137269
librustc: Consider where clauses when traversing free regions in
...
signatures.
Closes #16549 .
Closes #16564 .
2014-08-21 19:33:29 -07:00
bors
711d710278
auto merge of #16512 : wickerwaka/rust/getopt-16348, r=brson
...
I don't know if anything else was relying on the old behavior, this seems more correct.
Fixes #16348
If '-F' is allowed to have an optional argument, with the previous version '-FF' would be translated to '-F -F'. In this new version '-FF' translates to '-F' with argument 'F'
2014-08-22 00:56:00 +00:00
Alexis Beingessner
b8dc103a95
make priorityqueue's from_iter use heapify
2014-08-21 20:17:45 -04:00
Brian Anderson
f59cfd9711
Use only 400000 characters to test slow string parsing.
2014-08-21 16:25:04 -07:00
Brian Anderson
a614f2820f
syntax: Test parsing of long binary strings
2014-08-21 16:23:02 -07:00
bors
b43596b43e
auto merge of #16637 : pcwalton/rust/unboxed-closures-expected-tuple, r=pnkfelix
...
code wasn't considering the zero-argument case.
Closes #16168 .
r? @pnkfelix
2014-08-21 23:10:59 +00:00
Brian Anderson
bc7a85de29
syntax: Fix complexity of string parsing. Closes #16624 .
2014-08-21 15:47:39 -07:00
Jauhien Piatlicki
70ea0bb5f5
Fix LLVM version in configure
...
Upstream LLVM from VCS already has version 3.6,
configure fixed appropriately to allow building with it
2014-08-22 00:39:18 +02:00
bors
da796ededa
auto merge of #16635 : steveklabnik/rust/ordering_comment, r=huonw
...
This way people won't try to copy/paste it in.
This is provided as an alternate solution to #16003 . What do you think, @treeman?
2014-08-21 21:25:56 +00:00
bors
c509f79f05
auto merge of #16601 : cybergeek94/rust/master, r=alexcrichton
...
Previously, `PrettyEncoder` indented a magic constant of 2 spaces per level, which may be fine for most uses but in my use case I would like to allow the user to specify the indent step for the outputted JSON in my program.
This is small change that does not break any existing code whatsoever, and does not change the behavior of existing uses. `PrettyEncoder::new()` still uses the default of 2.
I couldn't think of any simple tests for this change. The obvious one would be to check the outputted JSON for the correct number of spaces per indent level, but I think that would be more complex than the actual change itself and test little besides correctness and consistency, which can be verified visually. There's already a test for correct parsing of pretty-printed JSON that should still pass with this change.
2014-08-21 19:40:57 +00:00
Luqman Aden
171c542965
librustc: Mark unboxed closure calls and definitions with appropriate llvm return/argument attributes.
2014-08-21 11:25:47 -07:00
Austin Bonander
1028120c40
Parameterize indent in PrettyEncoder
2014-08-21 11:04:03 -07:00
bors
f92015f71b
auto merge of #16499 : cmr/rust/struct-undef-repr, r=pcwalton
...
r? @pcwalton
2014-08-21 17:30:57 +00:00
Patrick Walton
6049b628ad
librustc: Create unboxing shims as necessary for unboxed closures.
...
Closes #16591 .
2014-08-21 10:05:28 -07:00
Corey Richardson
01d2efaffe
Fix FFI guide
2014-08-21 12:58:42 -04:00
Steve Klabnik
f6759924f4
fix module wording in guide
...
@kimundi was a bit worried this was misleading.
2014-08-21 12:14:59 -04:00
bors
4444aec142
auto merge of #16632 : pcwalton/rust/unboxed-closures-euv, r=luqmana
...
expression use visitor.
Closes #16166 .
r? @huonw
2014-08-21 14:40:57 +00:00
Vinzent Steinberg
da5e8cef59
bitv: make sure benchmarks run long enough
...
Previously they were too short (less than 10 ns), so the benchmarker
could not resolve them meaningfully. Now they should run in the order of
100 ns.
2014-08-21 10:09:36 -04:00
Vinzent Steinberg
4d41a4227c
arena: fix a typo
2014-08-21 10:09:36 -04:00
Vinzent Steinberg
c94bf8bb68
bitv: make benchmarks always return a value
...
This makes sure that the benchmarked code does not get optimized away.
Also fixed a typo.
Fixes #12118 .
2014-08-21 10:09:36 -04:00
bors
6f1b1a65ef
auto merge of #16631 : pcwalton/rust/unboxed-closures-wrong-trait, r=huonw
...
the right trait and take the method name into account.
Closes #16599 .
r? @huonw
2014-08-21 12:55:54 +00:00
bors
6de570f817
auto merge of #16487 : steveklabnik/rust/guide_ownership, r=brson
...
Whew. This section was so important, I saved it for last.
/cc @wycats, @nikomatsakis
2014-08-21 09:55:54 +00:00
Valerii Hiora
69fbef1d87
Fixed unwinding for iOS
...
Was broken by Windows adoption
2014-08-21 11:12:57 +03:00
Valerii Hiora
08a3453111
iOS compilation fix
2014-08-21 11:12:46 +03:00
bors
5305f9b894
auto merge of #16362 : nham/rust/std_rand_pi_example, r=huonw
...
Pros:
I like this example because it's concise without being trivial. The Monty Hall example code is somewhat lengthy and possibly inaccessible to those unfamiliar with probability.
Cons:
The Monty Hall example already exists. Do we need another example? Also, this is probably inaccessible to people who don't know basic geometry.
2014-08-21 07:50:55 +00:00
nham
86587224d0
Use unicode pi symbol in pi estimation example. Additional tweaks
2014-08-21 02:42:15 -04:00
nham
348132196a
Surround formula in a 'notrust' code block
2014-08-21 02:08:17 -04:00
bors
20b3313c8c
auto merge of #16471 : EduardoBautista/rust/chapter-14-fixes, r=steveklabnik
...
Just some small fixes for the guide. The cargo stuff is probably because of an update.
2014-08-21 06:05:58 +00:00
bors
e052aa65db
auto merge of #16447 : steveklabnik/rust/guide_vectors_extra, r=brson
...
Can't believe I forgot this!
2014-08-21 04:20:57 +00:00
bors
6063f7981f
auto merge of #16443 : steveklabnik/rust/fix_path_docs, r=kballard
...
Originally discovered here: http://www.reddit.com/r/rust/comments/2dbg3j/hm_unwrap_is_being_renamed_to_assert/cjnxiax
2014-08-21 02:36:00 +00:00
Corey Richardson
21bd17fcc1
Stage #[repr(packed)] in std::rt
2014-08-20 21:02:24 -04:00
Corey Richardson
cf5d28083d
libgreen: use FFI-safe types
2014-08-20 21:02:24 -04:00