]> git.lizzy.rs Git - rust.git/log
rust.git
10 years agolibsyntax: Remove `@str` from the interner
Patrick Walton [Sat, 1 Feb 2014 00:42:33 +0000 (16:42 -0800)]
libsyntax: Remove `@str` from the interner

10 years agotest: Remove `@str` from the test suite
Patrick Walton [Sat, 1 Feb 2014 00:20:57 +0000 (16:20 -0800)]
test: Remove `@str` from the test suite

10 years agolibrustc: Remove one more `@str` from librustc
Patrick Walton [Sat, 1 Feb 2014 00:17:48 +0000 (16:17 -0800)]
librustc: Remove one more `@str` from librustc

10 years agolibsyntax: Remove an `@str` in pretty printing
Patrick Walton [Sat, 1 Feb 2014 00:14:42 +0000 (16:14 -0800)]
libsyntax: Remove an `@str` in pretty printing

10 years agolibsyntax: Remove the `interner_get` function and all uses
Patrick Walton [Sat, 1 Feb 2014 00:10:06 +0000 (16:10 -0800)]
libsyntax: Remove the `interner_get` function and all uses

10 years agolibrustc: Remove uses of `interner_get` in librustc
Patrick Walton [Sat, 1 Feb 2014 00:03:55 +0000 (16:03 -0800)]
librustc: Remove uses of `interner_get` in librustc

10 years agolibsyntax: Remove uses of `token::ident_to_str()`
Patrick Walton [Fri, 31 Jan 2014 23:30:19 +0000 (15:30 -0800)]
libsyntax: Remove uses of `token::ident_to_str()`

10 years agolibsyntax: Remove many uses of `token::ident_to_str`
Patrick Walton [Fri, 31 Jan 2014 23:26:59 +0000 (15:26 -0800)]
libsyntax: Remove many uses of `token::ident_to_str`

10 years agolibrustc: Remove uses of `token::ident_to_str()` from librustc
Patrick Walton [Fri, 31 Jan 2014 23:17:42 +0000 (15:17 -0800)]
librustc: Remove uses of `token::ident_to_str()` from librustc

10 years agolibrustc: Get rid of `ident_to_str` calls in resolve
Patrick Walton [Fri, 31 Jan 2014 21:48:49 +0000 (13:48 -0800)]
librustc: Get rid of `ident_to_str` calls in resolve

10 years agolibrustc: Get rid of calls to `token::ident_to_str` in debug info
Patrick Walton [Fri, 31 Jan 2014 21:15:53 +0000 (13:15 -0800)]
librustc: Get rid of calls to `token::ident_to_str` in debug info

10 years agolibrustc: De-`@str` `ident()` and `str_of()`
Patrick Walton [Fri, 31 Jan 2014 20:46:23 +0000 (12:46 -0800)]
librustc: De-`@str` `ident()` and `str_of()`

10 years agolibrustc: De-`@str` the LLVM symbol list
Patrick Walton [Fri, 31 Jan 2014 20:42:39 +0000 (12:42 -0800)]
librustc: De-`@str` the LLVM symbol list

10 years agolibrustc: De-`@str` type short names
Patrick Walton [Fri, 31 Jan 2014 20:36:00 +0000 (12:36 -0800)]
librustc: De-`@str` type short names

10 years agolibrustc: De-`@str` liveness
Patrick Walton [Fri, 31 Jan 2014 20:33:42 +0000 (12:33 -0800)]
librustc: De-`@str` liveness

10 years agolibrustc: De-`@str` symbol hashing
Patrick Walton [Fri, 31 Jan 2014 20:31:46 +0000 (12:31 -0800)]
librustc: De-`@str` symbol hashing

10 years agolibrustc: De-`@str` debuginfo
Patrick Walton [Fri, 31 Jan 2014 20:28:56 +0000 (12:28 -0800)]
librustc: De-`@str` debuginfo

10 years agolibrustc: De-`@str` resolve
Patrick Walton [Fri, 31 Jan 2014 20:25:11 +0000 (12:25 -0800)]
librustc: De-`@str` resolve

10 years agolibrustc: Remove a bunch of `@str` from the compiler around metadata
Patrick Walton [Fri, 31 Jan 2014 20:17:03 +0000 (12:17 -0800)]
librustc: Remove a bunch of `@str` from the compiler around metadata
handling

10 years agolibsyntax: Fix tests.
Patrick Walton [Fri, 31 Jan 2014 02:46:19 +0000 (18:46 -0800)]
libsyntax: Fix tests.

10 years agolibsyntax: De-`@str` `MacroDef`
Patrick Walton [Fri, 31 Jan 2014 00:07:26 +0000 (16:07 -0800)]
libsyntax: De-`@str` `MacroDef`

10 years agolibrustc: De-`@str` `NameAndSpan`
Patrick Walton [Thu, 30 Jan 2014 23:53:09 +0000 (15:53 -0800)]
librustc: De-`@str` `NameAndSpan`

10 years agolibrustc: Fix merge fallout.
Patrick Walton [Tue, 21 Jan 2014 18:08:10 +0000 (10:08 -0800)]
librustc: Fix merge fallout.

10 years agolibsyntax: Remove `ident_to_str` from the parser, which was returning
Patrick Walton [Thu, 16 Jan 2014 02:38:34 +0000 (18:38 -0800)]
libsyntax: Remove `ident_to_str` from the parser, which was returning
`@str` values

10 years agolibsyntax: De-`@str` `get_single_str_from_tts`
Patrick Walton [Thu, 16 Jan 2014 02:33:33 +0000 (18:33 -0800)]
libsyntax: De-`@str` `get_single_str_from_tts`

10 years agolibsyntax: Remove all `@str` from the AST
Patrick Walton [Thu, 16 Jan 2014 02:30:40 +0000 (18:30 -0800)]
libsyntax: Remove all `@str` from the AST

10 years agolibsyntax: Make float literals not use `@str`
Patrick Walton [Thu, 16 Jan 2014 01:15:39 +0000 (17:15 -0800)]
libsyntax: Make float literals not use `@str`

10 years agolibsyntax: De-`@str` pathnames
Patrick Walton [Thu, 16 Jan 2014 00:42:51 +0000 (16:42 -0800)]
libsyntax: De-`@str` pathnames

10 years agolibrustc: Stop using `@str` for source.
Patrick Walton [Thu, 16 Jan 2014 00:26:20 +0000 (16:26 -0800)]
librustc: Stop using `@str` for source.

10 years agolibsyntax: Remove the unnecessary `src` field from the lexer
Patrick Walton [Thu, 16 Jan 2014 00:01:14 +0000 (16:01 -0800)]
libsyntax: Remove the unnecessary `src` field from the lexer

10 years agolibrustc: Fix merge fallout.
Patrick Walton [Mon, 13 Jan 2014 23:06:50 +0000 (15:06 -0800)]
librustc: Fix merge fallout.

10 years agolibsyntax: De-`@str` `to_source`
Patrick Walton [Sat, 11 Jan 2014 01:20:07 +0000 (17:20 -0800)]
libsyntax: De-`@str` `to_source`

10 years agolibsyntax: De-`@str` literal strings in the AST
Patrick Walton [Fri, 10 Jan 2014 22:02:36 +0000 (14:02 -0800)]
libsyntax: De-`@str` literal strings in the AST

10 years agolibsyntax: Introduce an `InternedString` type to reduce `@str` in the
Patrick Walton [Wed, 8 Jan 2014 18:35:15 +0000 (10:35 -0800)]
libsyntax: Introduce an `InternedString` type to reduce `@str` in the
compiler and use it for attributes

10 years agoauto merge of #11930 : bjz/rust/next_power_of_two, r=huonw
bors [Sat, 1 Feb 2014 12:11:21 +0000 (04:11 -0800)]
auto merge of #11930 : bjz/rust/next_power_of_two, r=huonw

10 years agoauto merge of #11963 : alexcrichton/rust/fix-rustpkg, r=brson
bors [Sat, 1 Feb 2014 08:46:23 +0000 (00:46 -0800)]
auto merge of #11963 : alexcrichton/rust/fix-rustpkg, r=brson

Right now the bots are all injecting a libstd version, so all the rustpkg tests
are passing. All rustpkg compilations will fail unless the version number is
explicitly given because rustpkg attempts to exactly guess the target file name.
Switch back to using a pattern match in order to unbreak tests.

Closes #11852

10 years agoauto merge of #11789 : pongad/rust/master, r=kballard
bors [Sat, 1 Feb 2014 07:31:28 +0000 (23:31 -0800)]
auto merge of #11789 : pongad/rust/master, r=kballard

All tests passing. #5268

10 years agoauto merge of #11965 : alexcrichton/rust/issue-7385, r=alexcrichton
bors [Sat, 1 Feb 2014 06:21:38 +0000 (22:21 -0800)]
auto merge of #11965 : alexcrichton/rust/issue-7385, r=alexcrichton

I've verified that it works on osx x86_64

Closes #7385

Rolled up PRs:

Closes #11898
Closes #11934
Closes #11942
Closes #11952
Closes #11960
Closes #11966
Closes #11953

Closed issues:

Closes #4063
Closes #7911

10 years agoFixing tests
Alex Crichton [Sat, 1 Feb 2014 06:11:18 +0000 (22:11 -0800)]
Fixing tests

10 years agoRemove the need to count lang items
Alex Crichton [Wed, 8 Jan 2014 04:39:15 +0000 (20:39 -0800)]
Remove the need to count lang items

This solves horrible diffs where all you do is renumber literally everything.

10 years agoTest for null buffer in CString.len()/.iter() and fail
Kevin Ballard [Thu, 30 Jan 2014 23:29:36 +0000 (15:29 -0800)]
Test for null buffer in CString.len()/.iter() and fail

Also change .as_str() to fail on null buffer.

10 years agoRemove the obsolete handler for `impl A;`.
Huon Wilson [Fri, 31 Jan 2014 14:46:30 +0000 (01:46 +1100)]
Remove the obsolete handler for `impl A;`.

This is has been obsolete for quite a while now (including a release),
so removing the special handling seems fine. (The error message is quite
good still anyway.)

Fixes #9580.

10 years agoAdd test for sensible #[start] error message.
Huon Wilson [Fri, 31 Jan 2014 13:42:02 +0000 (00:42 +1100)]
Add test for sensible #[start] error message.

Fixes #9575.

10 years agoAdd test cases for #4063.
OGINO Masanori [Wed, 29 Jan 2014 16:04:14 +0000 (01:04 +0900)]
Add test cases for #4063.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
10 years agomark the minimum supported Linux kernel version
Daniel Micay [Fri, 31 Jan 2014 14:58:00 +0000 (09:58 -0500)]
mark the minimum supported Linux kernel version

This is just taken from the binary itself. It would be nice to mark the
minimum glibc version too, and the corresponding RHEL/CentOS version.

10 years agomark Windows 8 as supported
Daniel Micay [Fri, 31 Jan 2014 14:53:17 +0000 (09:53 -0500)]
mark Windows 8 as supported

10 years agobump minimum supported OS X version to 10.7
Daniel Micay [Fri, 31 Jan 2014 14:50:44 +0000 (09:50 -0500)]
bump minimum supported OS X version to 10.7

Closes #11927
Closes #10842
Closes #2024

10 years agoAdd test case for issue 7911
JeremyLetang [Wed, 29 Jan 2014 00:54:19 +0000 (19:54 -0500)]
Add test case for issue 7911

10 years agoFix minor doc typos
Virgile Andreani [Thu, 30 Jan 2014 18:29:35 +0000 (19:29 +0100)]
Fix minor doc typos

10 years agoUn-xfail test for 7385
Alex Crichton [Sat, 1 Feb 2014 00:54:45 +0000 (16:54 -0800)]
Un-xfail test for 7385

I've verified that it works on osx x86_64

Closes #7385

10 years agoAdded minmax function.
Michael Darakananda [Sat, 25 Jan 2014 06:40:54 +0000 (22:40 -0800)]
Added minmax function.
Tests ok

10 years agoauto merge of #11768 : nikomatsakis/rust/issue-11385-cell-and-variance, r=pnkfelix
bors [Sat, 1 Feb 2014 03:36:41 +0000 (19:36 -0800)]
auto merge of #11768 : nikomatsakis/rust/issue-11385-cell-and-variance, r=pnkfelix

Introduce marker types for indicating variance and for opting out
of builtin bounds.

Fixes #10834.
Fixes #11385.
cc #5922.

r? @pnkfelix (since you reviewed the variance inference in the first place)

10 years agoauto merge of #11885 : bnoordhuis/rust/issue11694, r=alexcrichton
bors [Sat, 1 Feb 2014 02:21:41 +0000 (18:21 -0800)]
auto merge of #11885 : bnoordhuis/rust/issue11694, r=alexcrichton

EINVAL means that the requested stack size is either not a multiple
of the system page size or that it's smaller than PTHREAD_STACK_MIN.
Figure out what the case is, fix it up and retry.  If it still fails,
give up, like before.

Suggestions for future improvements:

  * don't fail!() but instead signal a condition, or
  * silently ignore the error and use a default sized stack.

Fixes #11694.

The first two commits put the framework in place, the third one contains the meat.

10 years agoIntroduce marker types for indicating variance and for opting out
Niko Matsakis [Wed, 22 Jan 2014 19:03:02 +0000 (14:03 -0500)]
Introduce marker types for indicating variance and for opting out
of builtin bounds.

Fixes #10834.
Fixes #11385.
cc #5922.

10 years agoMove int and uint overflow tests into macros
Brendan Zabarauskas [Thu, 30 Jan 2014 12:55:34 +0000 (23:55 +1100)]
Move int and uint overflow tests into macros

10 years agoRemove free-standing div functions in std::uint
Brendan Zabarauskas [Thu, 30 Jan 2014 11:39:58 +0000 (22:39 +1100)]
Remove free-standing div functions in std::uint

10 years agoRemove some unused imports
Brendan Zabarauskas [Thu, 30 Jan 2014 10:18:30 +0000 (21:18 +1100)]
Remove some unused imports

10 years agoMake next_power_of_two generic for unsigned integers
Brendan Zabarauskas [Thu, 30 Jan 2014 05:35:17 +0000 (16:35 +1100)]
Make next_power_of_two generic for unsigned integers

Also rename `next_power_of_two_opt` to `checked_next_power_of_two`.

10 years agoFix rustpkg tests with --disable-inject-std-version
Alex Crichton [Fri, 31 Jan 2014 23:56:37 +0000 (15:56 -0800)]
Fix rustpkg tests with --disable-inject-std-version

Right now the bots are all injecting a libstd version, so all the rustpkg tests
are passing. All rustpkg compilations will fail unless the version number is
explicitly given because rustpkg attempts to exactly guess the target file name.
Switch back to using a pattern match in order to unbreak tests.

Closes #11852

10 years agoauto merge of #11810 : Armavica/rust/issue-11645, r=alexcrichton
bors [Fri, 31 Jan 2014 23:11:32 +0000 (15:11 -0800)]
auto merge of #11810 : Armavica/rust/issue-11645, r=alexcrichton

The doc-generating tool comments out the lines that match `/$# /` (note the space), which is not what is wanted here. And it lets live the lines matching `/$#[^ ]/`. But we still want to see a space. So I replaced the normal space by a non breakable one, which fools the parser into displaying the line.

10 years agoauto merge of #11832 : jfager/rust/r5900, r=alexcrichton
bors [Fri, 31 Jan 2014 21:06:39 +0000 (13:06 -0800)]
auto merge of #11832 : jfager/rust/r5900, r=alexcrichton

I tried a couple of different ways to squash this, and still don't think this is ideal, but I wanted to get it out for feedback.

Closes #5900
Closes #9942

There are a few scenarios where the compiler tries to evaluate CastExprs without the corresponding types being available yet in the type context:  https://github.com/mozilla/rust/issues/10618, https://github.com/mozilla/rust/issues/5900, https://github.com/mozilla/rust/issues/9942

This PR takes the approach of having eval_const_expr_partial's CastExpr arm fall back to a limited ast_ty_to_ty call that only checks for (a subset of) valid const types, when the direct type lookup fails.  It's kind of hacky, so I understand if you don't want to take this as is.  I'd need a little mentoring to get this into better shape, as figuring out the proper fix has been a little daunting. I'm also happy if someone else wants to pick this up and run with it.

This closes 5900 and 9942, but only moves the goalposts a little on 10618, which now falls over in a later phase of the compiler.

10 years agoauto merge of #11955 : alexcrichton/rust/fix-unwinding-on-mac-64, r=cmr
bors [Fri, 31 Jan 2014 19:21:33 +0000 (11:21 -0800)]
auto merge of #11955 : alexcrichton/rust/fix-unwinding-on-mac-64, r=cmr

I believe that this is leading to lots of failures on the bots.

cc #11954

10 years agoDisable fp elim on mac64
Alex Crichton [Fri, 31 Jan 2014 18:18:13 +0000 (10:18 -0800)]
Disable fp elim on mac64

I believe that this is leading to lots of failures on the bots.

cc #11954

10 years agoauto merge of #11917 : thestinger/rust/intrinsic, r=alexcrichton
bors [Fri, 31 Jan 2014 18:01:48 +0000 (10:01 -0800)]
auto merge of #11917 : thestinger/rust/intrinsic, r=alexcrichton

10 years agoauto merge of #11933 : kini/rust/patch-1, r=alexcrichton
bors [Fri, 31 Jan 2014 16:46:34 +0000 (08:46 -0800)]
auto merge of #11933 : kini/rust/patch-1, r=alexcrichton

Text refers to "the type shown earlier", when the type in
question was not in fact shown earlier.  I assume this is
an artifact of an earlier revision.

10 years agoauto merge of #11929 : FlaPer87/rust/issue-11681, r=huonw
bors [Fri, 31 Jan 2014 13:36:31 +0000 (05:36 -0800)]
auto merge of #11929 : FlaPer87/rust/issue-11681, r=huonw

closes #11681

10 years agoUse __pthread_get_minstack() when available.
Ben Noordhuis [Wed, 29 Jan 2014 17:19:23 +0000 (18:19 +0100)]
Use __pthread_get_minstack() when available.

glibc >= 2.15 has a __pthread_get_minstack() function that returns
PTHREAD_STACK_MIN plus however many bytes are needed for thread-local
storage.  Use it when it's available because just PTHREAD_STACK_MIN is
not enough in applications that have big thread-local storage
requirements.

Fixes #6233.

10 years agoRetry on EINVAL from pthread_attr_setstacksize()
Ben Noordhuis [Tue, 28 Jan 2014 12:21:31 +0000 (13:21 +0100)]
Retry on EINVAL from pthread_attr_setstacksize()

Enforce that the stack size is > RED_ZONE + PTHREAD_STACK_MIN.  If the
call to pthread_attr_setstacksize() subsequently fails with EINVAL, it
means that the platform requires the stack size to be a multiple of the
page size.  In that case, round up to the nearest page and retry.

Fixes #11694.

10 years agoAdd libc::consts::os::posix01::PTHREAD_STACK_MIN
Ben Noordhuis [Tue, 28 Jan 2014 10:48:30 +0000 (11:48 +0100)]
Add libc::consts::os::posix01::PTHREAD_STACK_MIN

Represents the minimum size of a thread's stack.  As such, it's both
platform and architecture-specific.

I put it under posix01 even though it predates POSIX.1-2001 by some
years.  I believe it was first formalized in SUSv2.  I doubt anyone
cares, though.

10 years agoauto merge of #11918 : omasanori/rust/reduce-warnings, r=alexcrichton
bors [Fri, 31 Jan 2014 12:21:29 +0000 (04:21 -0800)]
auto merge of #11918 : omasanori/rust/reduce-warnings, r=alexcrichton

Moving forward to green waterfall.

10 years agoauto merge of #11947 : alexcrichton/rust/osx-unwind, r=brson
bors [Fri, 31 Jan 2014 07:51:28 +0000 (23:51 -0800)]
auto merge of #11947 : alexcrichton/rust/osx-unwind, r=brson

On OSX 32-bit, the private fields are 5 words long, not 2. I found this
segfaulting before this change, and after this change it no longer segfaulted.

10 years agoFix the size of the _Unwind_Exception struct
Alex Crichton [Fri, 31 Jan 2014 04:58:04 +0000 (20:58 -0800)]
Fix the size of the _Unwind_Exception struct

On OSX 32-bit, the private fields are 5 words long, not 2. I found this
segfaulting before this change, and after this change it no longer segfaulted.

10 years agoauto merge of #11784 : eminence/rust/fix_run_tests, r=alexcrichton
bors [Fri, 31 Jan 2014 02:11:30 +0000 (18:11 -0800)]
auto merge of #11784 : eminence/rust/fix_run_tests, r=alexcrichton

This test is designed to ensure that running a non-existent executable
results in a correct error message (FileNotFound in this case of this
test).  However, if you try to run an executable that doesn't exist, and
that requires searching through the $PATH, and one of the $PATH components
is not readable, then a PermissionDenied error will be returned, instead
of FileNotFound.

Using an absolute path skips the $PATH search logic in exec, thus by-passing the logic in exec that would have returned a PermissionDenied

In the specific case of my machine, /usr/bin/games was part of $PATH, but my user account wasn't in the games group (thus being unable to read /usr/bin/games)

See the man pages for execv and execve for more details.

I've tested this on Linux and OSX, and I am fairly certain that there will be no problems on Windows

10 years agoauto merge of #11759 : nathanielherman/rust/master, r=alexcrichton
bors [Thu, 30 Jan 2014 23:46:28 +0000 (15:46 -0800)]
auto merge of #11759 : nathanielherman/rust/master, r=alexcrichton

For #5172

10 years agoMake size_of, align_of, and element_offset functions return u64 instead of uint in...
Nathaniel Herman [Thu, 30 Jan 2014 22:19:19 +0000 (17:19 -0500)]
Make size_of, align_of, and element_offset functions return u64 instead of uint in trans::machine (per #5172)

10 years agoauto merge of #11895 : xales/rust/libstd, r=alexcrichton
bors [Thu, 30 Jan 2014 21:36:41 +0000 (13:36 -0800)]
auto merge of #11895 : xales/rust/libstd, r=alexcrichton

Fixes #11814

10 years agoauto merge of #11217 : eddyb/rust/generic-default-type-params, r=cmr
bors [Thu, 30 Jan 2014 18:41:47 +0000 (10:41 -0800)]
auto merge of #11217 : eddyb/rust/generic-default-type-params, r=cmr

10 years agoImplement default type parameters in generics.
Eduard Burtescu [Thu, 30 Jan 2014 17:28:02 +0000 (19:28 +0200)]
Implement default type parameters in generics.

10 years agoauto merge of #11914 : FlaPer87/rust/issue-6157, r=alexcrichton
bors [Thu, 30 Jan 2014 15:06:27 +0000 (07:06 -0800)]
auto merge of #11914 : FlaPer87/rust/issue-6157, r=alexcrichton

closes #6157

10 years agoFix inconsistency in tutorial.md
Keshav Kini [Thu, 30 Jan 2014 14:36:49 +0000 (08:36 -0600)]
Fix inconsistency in tutorial.md

Text refers to "the type shown earlier", when the type in
question was not in fact shown earlier.  I assume this is
an artifact of an earlier revision.

10 years agoauto merge of #11911 : kballard/rust/empty-functional-update, r=pcwalton
bors [Thu, 30 Jan 2014 13:06:30 +0000 (05:06 -0800)]
auto merge of #11911 : kballard/rust/empty-functional-update, r=pcwalton

Fixes #8972

10 years agoauto merge of #11909 : thestinger/rust/tydesc, r=pcwalton
bors [Thu, 30 Jan 2014 11:36:25 +0000 (03:36 -0800)]
auto merge of #11909 : thestinger/rust/tydesc, r=pcwalton

10 years agoAdd test case for issue #11681
Flavio Percoco [Thu, 30 Jan 2014 11:17:58 +0000 (12:17 +0100)]
Add test case for issue #11681

10 years agoauto merge of #11907 : sanxiyn/rust/simd-shift, r=thestinger
bors [Thu, 30 Jan 2014 09:56:23 +0000 (01:56 -0800)]
auto merge of #11907 : sanxiyn/rust/simd-shift, r=thestinger

For the purpose of deciding whether to truncate or extend the right hand side of bit shifts, use the size of the element type for SIMD vector types.

Fix #11900.

10 years agoauto merge of #11853 : alexcrichton/rust/up-llvm, r=brson
bors [Thu, 30 Jan 2014 07:46:26 +0000 (23:46 -0800)]
auto merge of #11853 : alexcrichton/rust/up-llvm, r=brson

This upgrade brings commit by @eddyb to help optimizations of virtual calls in
a few places (https://github.com/llvm-mirror/llvm/commit/6d2bd95) as well as a
commit by @c-a to *greatly* improve the runtime of the optimization passes
(https://github.com/rust-lang/llvm/pull/3).

Nice work to these guys!

10 years agoUpgrade LLVM
Alex Crichton [Mon, 27 Jan 2014 20:45:48 +0000 (12:45 -0800)]
Upgrade LLVM

This upgrade brings commit by @eddyb to help optimizations of virtual calls in
a few places (https://github.com/llvm-mirror/llvm/commit/6d2bd95) as well as a
commit by @c-a to *greatly* improve the runtime of the optimization passes
(https://github.com/rust-lang/llvm/pull/3).

Nice work to these guys!

10 years agoauto merge of #11839 : typelist/rust/issue3008, r=huonw
bors [Thu, 30 Jan 2014 06:21:29 +0000 (22:21 -0800)]
auto merge of #11839 : typelist/rust/issue3008, r=huonw

It was possible to trigger a stack overflow in rustc because the routine used to verify enum representability,
type_structurally_contains, would recurse on inner types until hitting the original type. The overflow condition was when a different structurally recursive type (enum or struct) was contained in the type being checked.

I suspect my solution isn't as efficient as it could be. I pondered adding a cache of previously-seen types to avoid duplicating work (if enums A and B both contain type C, my code goes through C twice), but I didn't want to do anything that may not be necessary.

I'm a new contributor, so please pay particular attention to any unidiomatic code, misuse of terminology, bad naming of tests, or similar horribleness :)

Updated to verify struct representability as well.

Fixes #3008.
Fixes #3779.

10 years agoConsider types that contain fixed-length-zero vectors of themselves as non-representa...
Johannes Muenzel [Thu, 30 Jan 2014 05:22:39 +0000 (00:22 -0500)]
Consider types that contain fixed-length-zero vectors of themselves as non-representable until #11924 is resolved

10 years agoauto merge of #11672 : bjz/rust/remove-times, r=brson
bors [Thu, 30 Jan 2014 04:06:36 +0000 (20:06 -0800)]
auto merge of #11672 : bjz/rust/remove-times, r=brson

`Times::times` was always a second-class loop because it did not support the `break` and `continue` operations. Its playful appeal (which I liked) was then lost after `do` was disabled for closures. It's time to let this one go.

10 years agoRemove Times trait
Brendan Zabarauskas [Thu, 30 Jan 2014 00:20:34 +0000 (11:20 +1100)]
Remove Times trait

`Times::times` was always a second-class loop because it did not support the `break` and `continue` operations. Its playful appeal was then lost after `do` was disabled for closures. It's time to let this one go.

10 years agoAdd compile-fail tests for non-representable structs and enums
Johannes Muenzel [Tue, 28 Jan 2014 06:29:22 +0000 (01:29 -0500)]
Add compile-fail tests for non-representable structs and enums

10 years agoCheck enum and struct representability properly (issues #3008 and #3779)
Johannes Muenzel [Tue, 28 Jan 2014 06:28:50 +0000 (01:28 -0500)]
Check enum and struct representability properly (issues #3008 and #3779)

10 years agoRemove seldom-used std::reference functions.
xales [Wed, 29 Jan 2014 02:05:57 +0000 (21:05 -0500)]
Remove seldom-used std::reference functions.

10 years agoRemove double-use of logging.
xales [Wed, 29 Jan 2014 00:56:06 +0000 (19:56 -0500)]
Remove double-use of logging.

10 years agoRename std::borrow to std::reference.
xales [Wed, 29 Jan 2014 00:29:10 +0000 (19:29 -0500)]
Rename std::borrow to std::reference.

Fixes #11814

10 years agoauto merge of #11893 : Armavica/rust/copyable-cloneable, r=huonw
bors [Thu, 30 Jan 2014 01:01:39 +0000 (17:01 -0800)]
auto merge of #11893 : Armavica/rust/copyable-cloneable, r=huonw

I found awkward to have `MutableCloneableVector` and `CloneableIterator` on the one hand, and `CopyableVector` etc. on the other hand.

The concerned traits are:
* `CopyableVector` --> `CloneableVector`
* `OwnedCopyableVector` --> `OwnedCloneableVector`
* `ImmutableCopyableVector` --> `ImmutableCloneableVector`
* `CopyableTuple` --> `CloneableTuple`

10 years agoremove a layer of indirection from most intrinsics
Daniel Micay [Wed, 29 Jan 2014 23:44:14 +0000 (18:44 -0500)]
remove a layer of indirection from most intrinsics

10 years agoAppend ; to #[allow(dead_code)].
OGINO Masanori [Wed, 29 Jan 2014 22:15:30 +0000 (07:15 +0900)]
Append ; to #[allow(dead_code)].

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
10 years agoPrefix _ to unused variables.
OGINO Masanori [Wed, 29 Jan 2014 21:10:13 +0000 (06:10 +0900)]
Prefix _ to unused variables.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
10 years agoRemove unused imports.
OGINO Masanori [Wed, 29 Jan 2014 21:06:18 +0000 (06:06 +0900)]
Remove unused imports.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>