]> git.lizzy.rs Git - rust.git/log
rust.git
10 years agorustc: remove typeck::isr_alist.
Eduard Burtescu [Tue, 22 Apr 2014 00:29:03 +0000 (03:29 +0300)]
rustc: remove typeck::isr_alist.

10 years agorustc: de-@ stats.
Eduard Burtescu [Tue, 22 Apr 2014 00:25:56 +0000 (03:25 +0300)]
rustc: de-@ stats.

10 years agorustc: de-@ adt::Repr.
Eduard Burtescu [Tue, 22 Apr 2014 00:03:02 +0000 (03:03 +0300)]
rustc: de-@ adt::Repr.

10 years agorustc: de-@ debuginfo.
Eduard Burtescu [Mon, 21 Apr 2014 23:41:05 +0000 (02:41 +0300)]
rustc: de-@ debuginfo.

10 years agorustc: de-@ middle::ty.
Eduard Burtescu [Mon, 21 Apr 2014 23:21:52 +0000 (02:21 +0300)]
rustc: de-@ middle::ty.

10 years agorustc: remove ty::Impl.
Eduard Burtescu [Mon, 21 Apr 2014 09:04:35 +0000 (12:04 +0300)]
rustc: remove ty::Impl.

10 years agorustc: de-@ ty::type_err.
Eduard Burtescu [Sun, 20 Apr 2014 17:19:58 +0000 (20:19 +0300)]
rustc: de-@ ty::type_err.

10 years agorustc: de-@ param_substs.
Eduard Burtescu [Sun, 20 Apr 2014 17:04:57 +0000 (20:04 +0300)]
rustc: de-@ param_substs.

10 years agorustc: de-@ mono_id.
Eduard Burtescu [Sun, 20 Apr 2014 16:29:56 +0000 (19:29 +0300)]
rustc: de-@ mono_id.

10 years agorustc: slightly optimize make_mono_id to not clone lots of vectors.
Eduard Burtescu [Sun, 20 Apr 2014 16:09:11 +0000 (19:09 +0300)]
rustc: slightly optimize make_mono_id to not clone lots of vectors.

10 years agorustc: remove obsolete monomorphization modes.
Eduard Burtescu [Sun, 20 Apr 2014 12:43:37 +0000 (15:43 +0300)]
rustc: remove obsolete monomorphization modes.

10 years agorustc: de-@ ty::ParamBounds.
Eduard Burtescu [Sun, 20 Apr 2014 12:11:18 +0000 (15:11 +0300)]
rustc: de-@ ty::ParamBounds.

10 years agorustc: de-@ trans::_match.
Eduard Burtescu [Sun, 20 Apr 2014 11:36:50 +0000 (14:36 +0300)]
rustc: de-@ trans::_match.

10 years agorustc: de-@ metadata::cstore.
Eduard Burtescu [Thu, 17 Apr 2014 12:06:25 +0000 (15:06 +0300)]
rustc: de-@ metadata::cstore.

10 years agorustc: de-@ mem_categorization.
Eduard Burtescu [Tue, 15 Apr 2014 10:15:56 +0000 (13:15 +0300)]
rustc: de-@ mem_categorization.

10 years agorustc: de-@ borrowck.
Eduard Burtescu [Mon, 14 Apr 2014 19:34:42 +0000 (22:34 +0300)]
rustc: de-@ borrowck.

10 years agorustc: de-@ resolve.
Eduard Burtescu [Mon, 14 Apr 2014 08:30:59 +0000 (11:30 +0300)]
rustc: de-@ resolve.

10 years agorustc: de-@ lint.
Eduard Burtescu [Mon, 14 Apr 2014 19:32:38 +0000 (22:32 +0300)]
rustc: de-@ lint.

10 years agorustc: de-@ freevars.
Eduard Burtescu [Mon, 14 Apr 2014 14:43:57 +0000 (17:43 +0300)]
rustc: de-@ freevars.

10 years agorustc: de-@ some RefCell's.
Eduard Burtescu [Tue, 22 Apr 2014 16:06:43 +0000 (19:06 +0300)]
rustc: de-@ some RefCell's.

10 years agoauto merge of #13638 : alexcrichton/rust/fix-windows-tcp-timeout-bug, r=brson
bors [Tue, 22 Apr 2014 15:41:32 +0000 (08:41 -0700)]
auto merge of #13638 : alexcrichton/rust/fix-windows-tcp-timeout-bug, r=brson

When a uv_tcp_t is closed in libuv, it will still invoke the pending connect_cb,
and I thought that it would always call it with ECANCELED, but it turns out that
sometimes we'll get a different error code instead. Handle this case by checking
to see if the request's data is NULL and bail out if so (the timeout expired).

10 years agoauto merge of #13657 : edwardw/rust/ppaux-ice, r=alexcrichton
bors [Tue, 22 Apr 2014 14:31:43 +0000 (07:31 -0700)]
auto merge of #13657 : edwardw/rust/ppaux-ice, r=alexcrichton

Closes #13599

10 years agorustc: de-@ lang_items.
Eduard Burtescu [Thu, 10 Apr 2014 13:58:20 +0000 (16:58 +0300)]
rustc: de-@ lang_items.

10 years agorustc: make MemCategorizationContext immutable.
Eduard Burtescu [Thu, 10 Apr 2014 13:43:26 +0000 (16:43 +0300)]
rustc: make MemCategorizationContext immutable.

10 years agorustc: remove unused errors_reported field from regionck.
Eduard Burtescu [Thu, 10 Apr 2014 13:29:31 +0000 (16:29 +0300)]
rustc: remove unused errors_reported field from regionck.

10 years agorustc: de-@ ty::AutoAdjustment.
Eduard Burtescu [Thu, 10 Apr 2014 13:26:26 +0000 (16:26 +0300)]
rustc: de-@ ty::AutoAdjustment.

10 years agorustc: de-@ method and vtable maps.
Eduard Burtescu [Thu, 10 Apr 2014 11:04:45 +0000 (14:04 +0300)]
rustc: de-@ method and vtable maps.

10 years agorustc: move the method and vtable maps into ty::ctxt.
Eduard Burtescu [Wed, 9 Apr 2014 15:18:40 +0000 (18:18 +0300)]
rustc: move the method and vtable maps into ty::ctxt.

10 years agoFixed typo in tutorial
Adolfo Ochagavía [Tue, 22 Apr 2014 13:46:54 +0000 (14:46 +0100)]
Fixed typo in tutorial

Replaced "len" by "length", to match the given code example.

10 years agoauto merge of #13583 : FlaPer87/rust/special-unsafe, r=nikomatsakis
bors [Tue, 22 Apr 2014 13:21:33 +0000 (06:21 -0700)]
auto merge of #13583 : FlaPer87/rust/special-unsafe, r=nikomatsakis

This patch adds a special rule for `Unsafe<T>` and makes it `Share`
regardless of whether T is `Share`.

[breaking-change]

Closes #13125

cc @nikomatsakis

10 years agoSpecialize kinds inference for `Unsafe<T>`
Flavio Percoco [Thu, 17 Apr 2014 20:02:16 +0000 (22:02 +0200)]
Specialize kinds inference for `Unsafe<T>`

This patch adds a special rule for `Unsafe<T>` and makes it `Share`
regardless of whether T is `Share`.

[breaking-change]

Closes #13125

10 years agoauto merge of #13653 : jbcrail/rust/fix-comment-mistakes, r=alexcrichton
bors [Tue, 22 Apr 2014 12:06:33 +0000 (05:06 -0700)]
auto merge of #13653 : jbcrail/rust/fix-comment-mistakes, r=alexcrichton

10 years agoauto merge of #13646 : cgaebel/rust/hashmap-cleanup, r=alexcrichton
bors [Tue, 22 Apr 2014 10:16:33 +0000 (03:16 -0700)]
auto merge of #13646 : cgaebel/rust/hashmap-cleanup, r=alexcrichton

I went through the HashMap module, fixed spelling mistakes, minor inefficiencies, added tests, and other trivial changes. Hopefully this won't be a controversial PR.

10 years agoauto merge of #13630 : alexcrichton/rust/correct-green-bounds, r=brson
bors [Tue, 22 Apr 2014 09:06:35 +0000 (02:06 -0700)]
auto merge of #13630 : alexcrichton/rust/correct-green-bounds, r=brson

These were mistakenly not updated as part of the removal of the Send bound by
default on procedures.

cc #13629

10 years agoFix ICE when reporting closure and proc mismatch
Edward Wang [Mon, 21 Apr 2014 15:26:29 +0000 (23:26 +0800)]
Fix ICE when reporting closure and proc mismatch

Closes #13599

10 years agoauto merge of #13618 : yuriks/rust/lru-cache, r=brson
bors [Tue, 22 Apr 2014 06:01:39 +0000 (23:01 -0700)]
auto merge of #13618 : yuriks/rust/lru-cache, r=brson

Just a few space saving optimizations that end up making the code less cluttered too. I'd like to someone to review the last commit closely, I don't have much experience with writing unsafe code, I had someone walk me through how to use cast::forget in IRC.

10 years agoauto merge of #13587 : adrientetar/rust/more-docs, r=brson
bors [Tue, 22 Apr 2014 04:46:38 +0000 (21:46 -0700)]
auto merge of #13587 : adrientetar/rust/more-docs, r=brson

- Use Fira Sans for headlines, Heuristica for the body (Adobe Utopia derivative). Both are licensed under the SIL OFL license. (I didn't include BoldItalic because it is sparingly used.)
- Split TOC into 2 columns for the docs except manual (too tall, too wide to be readable).
- Some fixes to rustdoc, bring styles in coherency with eachother
- A few tweaks

Two examples: [modified tutorial](http://adrientetar.legtux.org/cached/rust-docs/tutorial.htm) and [modified manual](http://adrientetar.legtux.org/cached/rust-docs/manual.htm).

Rustdoc got some fixes, here is [modified `enum.FileType`](http://adrientetar.legtux.org/cached/rust-docs/enum.FileType.htm), [modified `std`](http://adrientetar.legtux.org/cached/rust-docs/std.htm) and [modified `std::io`](http://adrientetar.legtux.org/cached/rust-docs/io.htm).

#13484, #13485 follow-up.

cc @brson

10 years agostr: Inline `only_ascii` in string iterators.
Patrick Walton [Tue, 22 Apr 2014 03:58:34 +0000 (20:58 -0700)]
str: Inline `only_ascii` in string iterators.

Was killing performance of selector matching in Servo.

10 years agoUpdate the "Additional tutorials" link
Brendan McLoughlin [Tue, 22 Apr 2014 01:47:22 +0000 (21:47 -0400)]
Update the "Additional tutorials" link

10 years agoauto merge of #13435 : edwardw/rust/span, r=brson
bors [Tue, 22 Apr 2014 01:41:35 +0000 (18:41 -0700)]
auto merge of #13435 : edwardw/rust/span, r=brson

When reporting "consider removing this semicolon" hint message, the
offending semicolon may come from macro call site instead of macro
itself. Using the more appropriate span makes the hint more helpful.

Closes #13428.

10 years agoJust some general cleanup in the HashMap module
Clark Gaebel [Mon, 21 Apr 2014 23:07:59 +0000 (19:07 -0400)]
Just some general cleanup in the HashMap module

I went through the HashMap module, fixed spelling mistakes, minor
inefficiencies, added tests, and other trivial changes.

10 years agoauto merge of #13631 : alexcrichton/rust/fix-mk-cross, r=brson
bors [Mon, 21 Apr 2014 23:06:32 +0000 (16:06 -0700)]
auto merge of #13631 : alexcrichton/rust/fix-mk-cross, r=brson

Instead of passing through CC which may have things like ccache and other
arguments (when using clang) this commit filters out the necessary arguments
from CC to pass the right linker to rustc.

Closes #13562

10 years agofix and improve shootout-chameneos-redux
Guillaume Pinot [Mon, 21 Apr 2014 21:06:59 +0000 (23:06 +0200)]
fix and improve shootout-chameneos-redux

* fix official shootout test (spacing)
* use libgreen to improve performances
* simplify and modernize code
* remove warnings

10 years agoauto merge of #13656 : TeXitoi/rust/shootout-threadring-rewrite, r=alexcrichton
bors [Mon, 21 Apr 2014 20:06:32 +0000 (13:06 -0700)]
auto merge of #13656 : TeXitoi/rust/shootout-threadring-rewrite, r=alexcrichton

* simplify the code
* remove trace to satisfy official shootout test
* use libgreen to improve performances

10 years agoauto merge of #13553 : aochagavia/rust/pr, r=alexcrichton
bors [Mon, 21 Apr 2014 17:01:38 +0000 (10:01 -0700)]
auto merge of #13553 : aochagavia/rust/pr, r=alexcrichton

Now it is possible to specify run-flags in tests. For example, by using `run-flags: --bench` the Bencher is run.

10 years agoshootout-threadring rewrite
Guillaume Pinot [Mon, 21 Apr 2014 14:05:57 +0000 (16:05 +0200)]
shootout-threadring rewrite

* simplify the code
* remove trace to satisfy official shootout test
* use libgreen to improve performances

10 years agoauto merge of #13652 : erickt/rust/master, r=alexcrichton
bors [Mon, 21 Apr 2014 07:01:35 +0000 (00:01 -0700)]
auto merge of #13652 : erickt/rust/master, r=alexcrichton

10 years agoauto merge of #13650 : gmjosack/rust/master, r=alexcrichton
bors [Mon, 21 Apr 2014 05:26:33 +0000 (22:26 -0700)]
auto merge of #13650 : gmjosack/rust/master, r=alexcrichton

Feels strange to have the order be arbitrary here. Order them the same.

10 years agoFix misspellings in comments.
Joseph Crail [Mon, 21 Apr 2014 04:49:39 +0000 (00:49 -0400)]
Fix misspellings in comments.

10 years agofix copyright message based on `make check`
Ryan Mulligan [Mon, 21 Apr 2014 03:07:55 +0000 (20:07 -0700)]
fix copyright message based on `make check`

10 years agoremove meaningless sentence and update copyright.
Ryan Mulligan [Mon, 21 Apr 2014 01:54:16 +0000 (18:54 -0700)]
remove meaningless sentence and update copyright.

10 years agoFix call order to be the same as definition order
Gary M. Josack [Mon, 21 Apr 2014 01:02:21 +0000 (18:02 -0700)]
Fix call order to be the same as definition order

10 years agoauto merge of #13647 : alexcrichton/rust/issue-13641, r=pcwalton
bors [Sun, 20 Apr 2014 23:26:26 +0000 (16:26 -0700)]
auto merge of #13647 : alexcrichton/rust/issue-13641, r=pcwalton

This gives a better NOTE error message when a privacy error is encountered with
a static method. Previously no note was emitted (due to lack of support), but
now a note is emitted indicating that the struct/enum itself is private.

Closes #13641

10 years agoauto merge of #13639 : alexcrichton/rust/rustdoc-tuple-fields, r=sfackler
bors [Sun, 20 Apr 2014 22:06:29 +0000 (15:06 -0700)]
auto merge of #13639 : alexcrichton/rust/rustdoc-tuple-fields, r=sfackler

The fields of tuple structs recently gained the ability to have privacy
associated with them, but rustdoc was not updated accodingly. This moves the
struct field filtering to the rendering phase in order to preserve the ordering
of struct fields to allow tuple structs to have their private fields printed as
underscores.

Closes #13594

10 years agoauto merge of #13636 : nick29581/rust/ty_vec, r=pcwalton
bors [Sun, 20 Apr 2014 20:46:30 +0000 (13:46 -0700)]
auto merge of #13636 : nick29581/rust/ty_vec, r=pcwalton

Refactors all uses of ty_vec and associated things to remove the vstore abstraction (still used for strings, for now). Pointers to vectors are stored as ty_rptr or ty_uniq wrapped around a ty_vec. There are no user-facing changes. Existing behaviour is preserved by special-casing many instances of pointers containing vectors. Hopefully with DST most of these hacks will go away. For now it is useful to leave them hanging around rather than abstracting them into a method or something.

Closes #13554.

10 years agorustdoc: Display tuple structs correctly
Alex Crichton [Sun, 20 Apr 2014 05:24:52 +0000 (22:24 -0700)]
rustdoc: Display tuple structs correctly

The fields of tuple structs recently gained the ability to have privacy
associated with them, but rustdoc was not updated accodingly. This moves the
struct field filtering to the rendering phase in order to preserve the ordering
of struct fields to allow tuple structs to have their private fields printed as
underscores.

Closes #13594

10 years agorustc: Improve errors on private static methods
Alex Crichton [Sun, 20 Apr 2014 19:07:15 +0000 (12:07 -0700)]
rustc: Improve errors on private static methods

This gives a better NOTE error message when a privacy error is encountered with
a static method. Previously no note was emitted (due to lack of support), but
now a note is emitted indicating that the struct/enum itself is private.

Closes #13641

10 years agoauto merge of #13410 : alexcrichton/rust/issue-12278, r=pcwalton
bors [Sun, 20 Apr 2014 18:41:29 +0000 (11:41 -0700)]
auto merge of #13410 : alexcrichton/rust/issue-12278, r=pcwalton

This commit removes the compiler support for floating point modulus operations,
as well as from the language. An implementation for this operator is now
required to be provided by libraries.

Floating point modulus is rarely used, doesn't exist in C, and is always lowered
to an fmod library call by LLVM, and LLVM is considering removing support
entirely.

Closes #12278

10 years agoauto merge of #13643 : aochagavia/rust/pr-2, r=alexcrichton
bors [Sun, 20 Apr 2014 17:21:32 +0000 (10:21 -0700)]
auto merge of #13643 : aochagavia/rust/pr-2, r=alexcrichton

Fixed a typo in the documentation of std::mem, and refactored a function to use match instead of if.

Also added a FIXME to the benchmarks at the end of the file stating that they should be moved to another place, because they have nothing to do with `mem` (see https://github.com/mozilla/rust/issues/13642)

10 years agorustc: feature gates errors should use the new attribute syntax
Erick Tryzelaar [Sun, 20 Apr 2014 14:33:04 +0000 (07:33 -0700)]
rustc: feature gates errors should use the new attribute syntax

10 years agodoc: unifying with rustdoc
Adrien Tétar [Fri, 18 Apr 2014 02:08:34 +0000 (11:08 +0900)]
doc: unifying with rustdoc

Conflicts:
src/doc/rust.md

10 years agoAdded run_flags directive to `compiletest`
Adolfo Ochagavía [Sat, 19 Apr 2014 09:36:00 +0000 (11:36 +0200)]
Added run_flags directive to `compiletest`

Now it is possible to specify run-flags in tests. For example, by using `run-flags: --bench` the Bencher is run.

10 years agoMinor changes in std::mem
aochagavia [Wed, 16 Apr 2014 08:53:09 +0000 (10:53 +0200)]
Minor changes in std::mem

Fixed a typo in the documentation of std::mem, and refactored a function to use match instead of if.

Also added a FIXME to the benchmarks at the end of the file stating that they should be moved to another place, because they have nothing to do with `mem` (see https://github.com/mozilla/rust/issues/13642)

10 years agoauto merge of #13640 : jbcrail/rust/spelling-updates, r=alexcrichton
bors [Sun, 20 Apr 2014 10:06:29 +0000 (03:06 -0700)]
auto merge of #13640 : jbcrail/rust/spelling-updates, r=alexcrichton

10 years agoauto merge of #13635 : richo/rust/no-output-from-serialize, r=sfackler
bors [Sun, 20 Apr 2014 08:51:31 +0000 (01:51 -0700)]
auto merge of #13635 : richo/rust/no-output-from-serialize, r=sfackler

As an aside, it seems like a lint for libraries calling println! might be a useful thing?

10 years agoauto merge of #13633 : TeXitoi/rust/shootout-fannkuch-redux-rewrite, r=alexcrichton
bors [Sun, 20 Apr 2014 07:31:34 +0000 (00:31 -0700)]
auto merge of #13633 : TeXitoi/rust/shootout-fannkuch-redux-rewrite, r=alexcrichton

Less bound checking and parallelisation.  Brute speed improvement
is about 15% faster.

The unsafe block improve the brute speed by about 5%.

10 years agoFix spelling mistakes in documentation and code.
Joseph Crail [Sun, 20 Apr 2014 05:35:14 +0000 (01:35 -0400)]
Fix spelling mistakes in documentation and code.

10 years agoauto merge of #12562 : nick29581/rust/fields, r=nikomatsakis
bors [Sun, 20 Apr 2014 05:26:32 +0000 (22:26 -0700)]
auto merge of #12562 : nick29581/rust/fields, r=nikomatsakis

No subtyping, no interaction with traits. Partially addresses #9912.

10 years agorustuv: Fix a tcp connect timeout bug on windows
Alex Crichton [Sun, 20 Apr 2014 04:39:30 +0000 (21:39 -0700)]
rustuv: Fix a tcp connect timeout bug on windows

When a uv_tcp_t is closed in libuv, it will still invoke the pending connect_cb,
and I thought that it would always call it with ECANCELED, but it turns out that
sometimes we'll get a different error code instead. Handle this case by checking
to see if the request's data is NULL and bail out if so (the timeout expired).

10 years agoAllow inheritance between structs.
Nick Cameron [Mon, 24 Feb 2014 07:17:02 +0000 (20:17 +1300)]
Allow inheritance between structs.

No subtyping, no interaction with traits. Partially addresses #9912.

10 years agoshootout-fannkuch-redux rewrite
Guillaume Pinot [Sat, 19 Apr 2014 23:32:54 +0000 (01:32 +0200)]
shootout-fannkuch-redux rewrite

Less bound checking and parallelisation.  Brute speed improvement
is about 15% faster.

10 years agoserialize: Remove errant println!'s from decode
Richo Healey [Sun, 20 Apr 2014 00:59:04 +0000 (17:59 -0700)]
serialize: Remove errant println!'s from decode

10 years agoRefactor ty_vec represent &[T] as &([T])
Nick Cameron [Wed, 9 Apr 2014 07:15:31 +0000 (19:15 +1200)]
Refactor ty_vec represent &[T] as &([T])

Refactores all uses of ty_vec and associated things to remove the vstore abstraction (still used for strings, for now). Pointers to vectors are stored as ty_rptr or ty_uniq wrapped around a ty_vec. There are no user-facing changes. Existing behaviour is preserved by special-casing many instances of pointers containing vectors. Hopefully with DST most of these hacks will go away. For now it is useful to leave them hanging around rather than abstracting them into a method or something.

Closes #13554.

10 years agoEliminate the need for Options in LruEntry.
Yuri Kunde Schlesner [Fri, 18 Apr 2014 11:44:30 +0000 (08:44 -0300)]
Eliminate the need for Options in LruEntry.

LruEntry nodes previously used Option to encapsulate the key and value
fields. This was used merely as a way avoid having values for the sigil
node. Apart from wasting a few bytes for the discriminant, this
cluttered the rest of the code, since these fields always contained
Some on regular nodes as a class invariant.

The Option wrapping was removed, and the values in the sigil field are
initialized using mem::init, so that they don't contain any real data.

10 years agoauto merge of #13613 : alexcrichton/rust/fix-freebsd-compile, r=brson
bors [Sat, 19 Apr 2014 22:31:28 +0000 (15:31 -0700)]
auto merge of #13613 : alexcrichton/rust/fix-freebsd-compile, r=brson

Ah, the wonders of not being gated on FreeBSD...

10 years agoauto merge of #13610 : jsanders/rust/sender-try-send-docs, r=alexcrichton
bors [Sat, 19 Apr 2014 21:11:28 +0000 (14:11 -0700)]
auto merge of #13610 : jsanders/rust/sender-try-send-docs, r=alexcrichton

I was getting a bit confused by these and (I think) managed to track it down to fallout from #13448 and #13465.

10 years agomk: Pass exact compile to rustc on cross compiles
Alex Crichton [Sat, 19 Apr 2014 20:18:25 +0000 (13:18 -0700)]
mk: Pass exact compile to rustc on cross compiles

Instead of passing through CC which may have things like ccache and other
arguments (when using clang) this commit filters out the necessary arguments
from CC to pass the right linker to rustc.

Closes #13562

10 years agogreen: Fix missing Send bounds on procedures
Alex Crichton [Sat, 19 Apr 2014 18:23:21 +0000 (11:23 -0700)]
green: Fix missing Send bounds on procedures

These were mistakenly not updated as part of the removal of the Send bound by
default on procedures.

cc #13629

10 years agoauto merge of #13628 : alexcrichton/rust/issue-13625, r=thestinger
bors [Sat, 19 Apr 2014 17:56:25 +0000 (10:56 -0700)]
auto merge of #13628 : alexcrichton/rust/issue-13625, r=thestinger

In upgrading LLVM, only rust functions had the "split-stack" attribute added.
This commit changes the addition of LLVM's "split-stack" attribute to *always*
occur and then we remove it sometimes if the "no_split_stack" rust attribute is
present.

Closes #13625

10 years agorustc: Ensure closures are "split-stack"
Alex Crichton [Sat, 19 Apr 2014 17:33:46 +0000 (10:33 -0700)]
rustc: Ensure closures are "split-stack"

In upgrading LLVM, only rust functions had the "split-stack" attribute added.
This commit changes the addition of LLVM's "split-stack" attribute to *always*
occur and then we remove it sometimes if the "no_split_stack" rust attribute is
present.

Closes #13625

10 years agoRewrite paragraph describing difference between try_send and send_opt
James Sanders [Sat, 19 Apr 2014 16:23:15 +0000 (10:23 -0600)]
Rewrite paragraph describing difference between try_send and send_opt

10 years agoauto merge of #13615 : alexcrichton/rust/improve-demangling, r=brson
bors [Sat, 19 Apr 2014 12:41:26 +0000 (05:41 -0700)]
auto merge of #13615 : alexcrichton/rust/improve-demangling, r=brson

Previously, symbols with rust escape sequences (denoted with dollar signs)
weren't demangled if the escape sequence showed up in the middle. This alters
the printing loop to look through the entire string for dollar characters.

10 years agodoc: add webfonts and tweak the styles accordingly
Adrien Tétar [Sat, 12 Apr 2014 19:06:02 +0000 (21:06 +0200)]
doc: add webfonts and tweak the styles accordingly

10 years agoauto merge of #13614 : cgaebel/rust/master, r=brson
bors [Sat, 19 Apr 2014 11:26:28 +0000 (04:26 -0700)]
auto merge of #13614 : cgaebel/rust/master, r=brson

We previously allocated 3x for every HashMap creation and resize. This patch reduces it to 1x.

10 years agoauto merge of #13609 : richo/rust/str-type-vim, r=alexcrichton
bors [Sat, 19 Apr 2014 09:11:30 +0000 (02:11 -0700)]
auto merge of #13609 : richo/rust/str-type-vim, r=alexcrichton

It seems really weird to me when StrSlice and str highlight sanely, but StrBuf doesn't.

I think I added it to the right place.

10 years agoauto merge of #13604 : alexcrichton/rust/connect-timeout, r=brson
bors [Sat, 19 Apr 2014 07:56:30 +0000 (00:56 -0700)]
auto merge of #13604 : alexcrichton/rust/connect-timeout, r=brson

This adds a `TcpStream::connect_timeout` function in order to assist opening
connections with a timeout (cc #13523). There isn't really much design space for
this specific operation (unlike timing out normal blocking reads/writes), so I
am fairly confident that this is the correct interface for this function.

The function is marked #[experimental] because it takes a u64 timeout argument,
and the u64 type is likely to change in the future.

10 years agostd: Add an experimental connect_timeout function
Alex Crichton [Fri, 18 Apr 2014 20:23:56 +0000 (13:23 -0700)]
std: Add an experimental connect_timeout function

This adds a `TcpStream::connect_timeout` function in order to assist opening
connections with a timeout (cc #13523). There isn't really much design space for
this specific operation (unlike timing out normal blocking reads/writes), so I
am fairly confident that this is the correct interface for this function.

The function is marked #[experimental] because it takes a u64 timeout argument,
and the u64 type is likely to change in the future.

10 years agoauto merge of #13608 : tbu-/rust/pr_smallesthello, r=alexcrichton
bors [Sat, 19 Apr 2014 06:36:33 +0000 (23:36 -0700)]
auto merge of #13608 : tbu-/rust/pr_smallesthello, r=alexcrichton

It now hands `puts` a zero-terminated string, like it expects.

Fix #13603.

10 years agoauto merge of #13606 : alexcrichton/rust/better-thread-errors, r=brson
bors [Sat, 19 Apr 2014 05:16:35 +0000 (22:16 -0700)]
auto merge of #13606 : alexcrichton/rust/better-thread-errors, r=brson

On windows, correctly check for errors when spawning threads, and on both
windows and unix handle the error more gracefully rather than printing an opaque
assertion failure.

Closes #13589

10 years agoauto merge of #13607 : brson/rust/to_owned, r=brson
bors [Sat, 19 Apr 2014 01:46:33 +0000 (18:46 -0700)]
auto merge of #13607 : brson/rust/to_owned, r=brson

Continues https://github.com/mozilla/rust/pull/13548

10 years agoReorder Float methods in trait definition and make consistent in impls
Brendan Zabarauskas [Fri, 18 Apr 2014 16:15:09 +0000 (02:15 +1000)]
Reorder Float methods in trait definition and make consistent in impls

10 years agoFix formatting in float implementations
Brendan Zabarauskas [Fri, 18 Apr 2014 15:27:51 +0000 (01:27 +1000)]
Fix formatting in float implementations

10 years agoHave floating point functions take their parameters by value.
Brendan Zabarauskas [Fri, 18 Apr 2014 03:49:37 +0000 (13:49 +1000)]
Have floating point functions take their parameters by value.

Make all of the methods in `std::num::Float` take `self` and their other parameters by value.

Some of the `Float` methods took their parameters by value, and others took them by reference. This standardises them to one convention. The `Float` trait is intended for the built in IEEE 754 numbers only so we don't have to worry about the trait serving types of larger sizes.

[breaking-change]

10 years agoMerge the Round trait into the Float trait
Brendan Zabarauskas [Fri, 18 Apr 2014 02:48:48 +0000 (12:48 +1000)]
Merge the Round trait into the Float trait

Move the rounding functions into the `std::num::Float` trait and then remove `std::num::Round`.

This continues the flattening of the numeric traits tracked in #10387. The aim is to make `std::num` very simple and tied to the built in types, leaving the definition of more complex numeric towers to third-party libraries.

[breaking-change]

10 years agostd: Fix demangling with middle special chars
Alex Crichton [Sat, 19 Apr 2014 00:33:47 +0000 (17:33 -0700)]
std: Fix demangling with middle special chars

Previously, symbols with rust escape sequences (denoted with dollar signs)
weren't demangled if the escape sequence showed up in the middle. This alters
the printing loop to look through the entire string for dollar characters.

10 years agoReplace all ~"" with "".to_owned()
Richo Healey [Wed, 16 Apr 2014 01:17:48 +0000 (18:17 -0700)]
Replace all ~"" with "".to_owned()

10 years agoReduce HashMap allocations.
Clark Gaebel [Thu, 27 Mar 2014 01:58:08 +0000 (21:58 -0400)]
Reduce HashMap allocations.

10 years agoauto merge of #13513 : alexcrichton/rust/up-llvm, r=brson
bors [Sat, 19 Apr 2014 00:11:32 +0000 (17:11 -0700)]
auto merge of #13513 : alexcrichton/rust/up-llvm, r=brson

This is a bit of an interesting upgrade to LLVM. Upstream LLVM has started using C++11 features, so they require a C++11 compiler to build. I've updated all the bots to have a C++11 compiler, and they appear to be building LLVM successfully:

* Linux bots - I added gcc/g++ 4.7 (good enough)
* Android bots - same as the linux ones
* Mac bots - I installed the most recent command line tools for Lion which gives us clang 3.2, but LLVM wouldn't build unless it was explicitly asked to link to `libc++` instead of `libstdc++`. This involved tweaking `mklldeps.py` and the `configure` script to get things to work out
* Windows bots - mingw-w64 has gcc 4.8.1 which is sufficient for building LLVM (hurray!)
* BSD bots - I updated FreeBSD to 10.0 which brought with it a relevant version of clang.

The largest fallout I've seen so far is that the test suite doesn't work at all on FreeBSD 10. We've already stopped gating on FreeBSD due to #13427 (we used to be on freebsd 9), so I don't think this puts us in too bad of a situation. I will continue to attempt to fix FreeBSD and the breakage on there.

The LLVM update brings with it all of the recently upstreamed LLVM patches. We only have one local patch now which is just an optimization, and isn't required to use upstream LLVM. I want to maintain compatibility with LLVM 3.3 and 3.4 while we can, and this upgrade is keeping us up to date with the 3.5 release. Once 3.5 is release we will in theory no longer require a bundled LLVM.

10 years agostd: Fix compiling on FreeBSD
Alex Crichton [Sat, 19 Apr 2014 00:04:18 +0000 (17:04 -0700)]
std: Fix compiling on FreeBSD

Ah, the wonders of not being gated on FreeBSD...

10 years agovim: Add StrBuf as type to hilighting
Richo Healey [Fri, 18 Apr 2014 22:55:12 +0000 (15:55 -0700)]
vim: Add StrBuf as type to hilighting