]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agosort the existential bounds list in tydecode
Ariel Ben-Yehuda [Sun, 13 Sep 2015 15:22:05 +0000 (18:22 +0300)]
sort the existential bounds list in tydecode

The sort key is a (DefId, Name), which is *not* stable between
runs, so we must re-sort when loading.

Fixes #24063
Fixes #25467
Fixes #27222
Fixes #28377

8 years agoAuto merge of #28135 - jackwilsonv:patch-1, r=steveklabnik
bors [Wed, 2 Sep 2015 19:08:18 +0000 (19:08 +0000)]
Auto merge of #28135 - jackwilsonv:patch-1, r=steveklabnik

Small formatting change

r? @steveklabnik

8 years agoAuto merge of #28165 - mneumann:dragonfly_snapshots, r=alexcrichton
bors [Wed, 2 Sep 2015 17:27:10 +0000 (17:27 +0000)]
Auto merge of #28165 - mneumann:dragonfly_snapshots, r=alexcrichton

@alexcrichton: The snapshot file is here: http://www.ntecs.de/downloads/rust/rust-stage0-2015-08-11-1af31d4-dragonfly-x86_64-08e7dd9d77434b377c0905cc5f8c705b2daf3a0e.tar.bz2.

This is the first part in getting Continuous builds for DragonFly (#16298).

8 years agoAdd snapshot for DragonFly BSD
Michael Neumann [Wed, 2 Sep 2015 16:21:02 +0000 (18:21 +0200)]
Add snapshot for DragonFly BSD

8 years agoAuto merge of #28162 - mneumann:dragonfly_fix_stat, r=alexcrichton
bors [Wed, 2 Sep 2015 14:51:11 +0000 (14:51 +0000)]
Auto merge of #28162 - mneumann:dragonfly_fix_stat, r=alexcrichton

8 years agoAuto merge of #28163 - llogiq:master, r=Manishearth
bors [Wed, 2 Sep 2015 10:20:41 +0000 (10:20 +0000)]
Auto merge of #28163 - llogiq:master, r=Manishearth

8 years agoImproved libfmt_macros code style with clippy
llogiq [Wed, 2 Sep 2015 10:13:10 +0000 (12:13 +0200)]
Improved libfmt_macros code style with clippy

8 years agoFix compile on DragonFly: Replace unknown uint32_t/in64_t by u32/i64.
Michael Neumann [Wed, 2 Sep 2015 08:57:57 +0000 (10:57 +0200)]
Fix compile on DragonFly: Replace unknown uint32_t/in64_t by u32/i64.

8 years agoAuto merge of #28156 - nagisa:binaryheap-debug, r=Gankro
bors [Wed, 2 Sep 2015 06:37:32 +0000 (06:37 +0000)]
Auto merge of #28156 - nagisa:binaryheap-debug, r=Gankro

r? @Gankro

8 years agoAuto merge of #28155 - vchimishuk:doc-rust-inside-other-languages-tab, r=alexcrichton
bors [Wed, 2 Sep 2015 04:55:37 +0000 (04:55 +0000)]
Auto merge of #28155 - vchimishuk:doc-rust-inside-other-languages-tab, r=alexcrichton

Fixed x variable identation. How it was displayed in Firefox before: http://s16.postimg.org/c9448tn0k/Screenshot_from_2015_09_01_17_35_43.jpg

8 years agoAuto merge of #28149 - jakerr:atomic, r=alexcrichton
bors [Wed, 2 Sep 2015 03:13:43 +0000 (03:13 +0000)]
Auto merge of #28149 - jakerr:atomic, r=alexcrichton

Makes the code agree with the comment: 'value answers "am I locked?"'.

8 years agoAuto merge of #28148 - eefriedman:binary_heap, r=alexcrichton
bors [Wed, 2 Sep 2015 01:33:20 +0000 (01:33 +0000)]
Auto merge of #28148 - eefriedman:binary_heap, r=alexcrichton

8 years agoAuto merge of #28132 - arielb1:uninstantiable, r=nikomatsakis
bors [Tue, 1 Sep 2015 23:51:47 +0000 (23:51 +0000)]
Auto merge of #28132 - arielb1:uninstantiable, r=nikomatsakis

It is *very* easy to bypass, and is a relic of a bygone age where the type-checker was *much* less robust.

Fixes #27497

r? @nikomatsakis

8 years agoAuto merge of #28146 - eefriedman:deque_extras, r=alexcrichton
bors [Tue, 1 Sep 2015 22:07:59 +0000 (22:07 +0000)]
Auto merge of #28146 - eefriedman:deque_extras, r=alexcrichton

8 years agoAuto merge of #28130 - alexcrichton:fix-msvc-static-tls-dtor, r=brson
bors [Tue, 1 Sep 2015 19:34:21 +0000 (19:34 +0000)]
Auto merge of #28130 - alexcrichton:fix-msvc-static-tls-dtor, r=brson

Running TLS destructors for a MSVC Windows binary requires the linker doesn't
elide the `_tls_used` or `__tls_used` symbols (depending on the architecture).
This is currently achieved via a `#[link_args]` hack but this only works for
dynamically linked binaries because the link arguments aren't propagated to
statically linked binaries.

This commit alters the strategy to instead emit a volatile load from those
symbols so LLVM can't elide it, forcing the reference to the symbol to stay
alive as long as the callback function stays alive (which we've made sure of
with the `#[linkage]` attribute).

Closes #28111

8 years agostd: Run TLS destructors in a statically linked binary
Alex Crichton [Mon, 31 Aug 2015 17:28:07 +0000 (10:28 -0700)]
std: Run TLS destructors in a statically linked binary

Running TLS destructors for a MSVC Windows binary requires the linker doesn't
elide the `_tls_used` or `__tls_used` symbols (depending on the architecture).
This is currently achieved via a `#[link_args]` hack but this only works for
dynamically linked binaries because the link arguments aren't propagated to
statically linked binaries.

This commit alters the strategy to instead emit a volatile load from those
symbols so LLVM can't elide it, forcing the reference to the symbol to stay
alive as long as the callback function stays alive (which we've made sure of
with the `#[linkage]` attribute).

Closes #28111

8 years agoAuto merge of #28088 - tbu-:pr_fixed_size_array, r=alexcrichton
bors [Tue, 1 Sep 2015 17:39:33 +0000 (17:39 +0000)]
Auto merge of #28088 - tbu-:pr_fixed_size_array, r=alexcrichton

8 years agoImplement Debug for BinaryHeap
Simonas Kazlauskas [Tue, 1 Sep 2015 17:26:51 +0000 (20:26 +0300)]
Implement Debug for BinaryHeap

Fixes #28154

8 years agoAuto merge of #28152 - llogiq:master, r=Manishearth
bors [Tue, 1 Sep 2015 15:44:50 +0000 (15:44 +0000)]
Auto merge of #28152 - llogiq:master, r=Manishearth

This changes a lot of `.to_string()` to `.to_owned()`, removes a few redundant closures, and changes some `match`es to `if let`s.

I'm currently in the process of trying out clippy and acting on its suggestions. I started with compiletest, because we use it to test clippy, too. If this finds positive reception, I may continue refactoring other parts of the rust codebase.

8 years agoSource code style fixed: tab replaced with whitespaces.
Viacheslav Chimishuk [Tue, 1 Sep 2015 14:49:08 +0000 (17:49 +0300)]
Source code style fixed: tab replaced with whitespaces.

8 years agoAuto merge of #28115 - AlexDenisov:patch-1, r=steveklabnik
bors [Tue, 1 Sep 2015 13:51:11 +0000 (13:51 +0000)]
Auto merge of #28115 - AlexDenisov:patch-1, r=steveklabnik

r? @steveklabnik

8 years agorefactored compiletest following clippy's suggestions
llogiq [Tue, 1 Sep 2015 12:43:42 +0000 (14:43 +0200)]
refactored compiletest following clippy's suggestions

8 years agoAuto merge of #28060 - GuillaumeGomez:patch-3, r=Manishearth
bors [Tue, 1 Sep 2015 11:58:28 +0000 (11:58 +0000)]
Auto merge of #28060 - GuillaumeGomez:patch-3, r=Manishearth

Part of #24407

r? @Manishearth

8 years agoAuto merge of #28137 - nrc:remove-non-multi, r=huonw
bors [Tue, 1 Sep 2015 09:12:52 +0000 (09:12 +0000)]
Auto merge of #28137 - nrc:remove-non-multi, r=huonw

This is a [breaking-change] for syntax extension authors. The fix is to use MultiModifier or MultiDecorator, which have the same functionality but are more flexible. Users of syntax extensions are unaffected.

8 years agoReverse AtomicBool value in nomicon example to agree with its comment.
Jake Kerr [Tue, 1 Sep 2015 08:20:04 +0000 (17:20 +0900)]
Reverse AtomicBool value in nomicon example to agree with its comment.

Makes the code agree with the comment: 'value answers "am I locked?"'.

8 years agoAdd missing stability markings to BinaryHeap.
Eli Friedman [Tue, 1 Sep 2015 05:38:34 +0000 (22:38 -0700)]
Add missing stability markings to BinaryHeap.

8 years agoAuto merge of #28136 - huonw:simd, r=alexcrichton
bors [Tue, 1 Sep 2015 07:19:12 +0000 (07:19 +0000)]
Auto merge of #28136 - huonw:simd, r=alexcrichton

I believe everything that doesn't take a constant integer up to SSE4.2
should now be correct (I don't have any reason to believe that those
that do take constant integers are wrong; they're just more complicated
and I just haven't tested them in detail).

(Also, takes out two unused code paths from trans.)

8 years agoAdd missing stability attributes to VecDeque.
Eli Friedman [Tue, 1 Sep 2015 05:24:06 +0000 (22:24 -0700)]
Add missing stability attributes to VecDeque.

8 years agoAuto merge of #28122 - apasel422:issue-28093, r=alexcrichton
bors [Tue, 1 Sep 2015 05:22:48 +0000 (05:22 +0000)]
Auto merge of #28122 - apasel422:issue-28093, r=alexcrichton

closes #28093

8 years agoFix some typos in SSE-AVX intrinsics.
Huon Wilson [Mon, 31 Aug 2015 23:47:58 +0000 (16:47 -0700)]
Fix some typos in SSE-AVX intrinsics.

I believe everything that doesn't take a constant integer up to SSE4.2
should now be correct (I don't have any reason to believe that those
that do take constant integers are wrong; they're just more complicated
and I just haven't tested them in detail).

8 years agoRemove some SIMD codepaths from trans.
Huon Wilson [Mon, 31 Aug 2015 22:06:00 +0000 (15:06 -0700)]
Remove some SIMD codepaths from trans.

8 years agoRemove the Modifier and Decorator kinds of syntax extensions.
Nick Cameron [Tue, 1 Sep 2015 01:16:03 +0000 (13:16 +1200)]
Remove the Modifier and Decorator kinds of syntax extensions.

This is a [breaking-change] for syntax extension authors. The fix is to use MultiModifier or MultiDecorator, which have the same functionality but are more flexible. Users of syntax extensions are unaffected.

8 years agoAuto merge of #28094 - apasel422:extend-hashmap, r=alexcrichton
bors [Tue, 1 Sep 2015 00:32:07 +0000 (00:32 +0000)]
Auto merge of #28094 - apasel422:extend-hashmap, r=alexcrichton

It appears that these impls were left out of #25989 by mistake.

r? @alexcrichton

I'm not sure what the stability markers for these should be.

8 years agoAdd E0439 error explanation
Guillaume Gomez [Fri, 28 Aug 2015 14:57:29 +0000 (16:57 +0200)]
Add E0439 error explanation

8 years agoAdd E0440 error explanation
Guillaume Gomez [Fri, 28 Aug 2015 14:34:03 +0000 (16:34 +0200)]
Add E0440 error explanation

8 years agoAdd E0441 error explanation
Guillaume Gomez [Fri, 28 Aug 2015 14:21:56 +0000 (16:21 +0200)]
Add E0441 error explanation

8 years agoAdd E0443 error explanation
Guillaume Gomez [Fri, 28 Aug 2015 14:13:14 +0000 (16:13 +0200)]
Add E0443 error explanation

8 years agoAdd E0442 error explanation
Guillaume Gomez [Fri, 28 Aug 2015 14:09:46 +0000 (16:09 +0200)]
Add E0442 error explanation

8 years agoComment out unused error codes
Guillaume Gomez [Fri, 28 Aug 2015 13:42:03 +0000 (15:42 +0200)]
Comment out unused error codes

8 years agoAdd E0411 error explanation
Guillaume Gomez [Fri, 28 Aug 2015 13:25:39 +0000 (15:25 +0200)]
Add E0411 error explanation

8 years agoMakes formatting of i32 consistent
Jack Wilson [Mon, 31 Aug 2015 22:52:02 +0000 (15:52 -0700)]
Makes formatting of i32 consistent

8 years agoAuto merge of #28079 - huonw:simd, r=alexcrichton
bors [Mon, 31 Aug 2015 21:34:08 +0000 (21:34 +0000)]
Auto merge of #28079 - huonw:simd, r=alexcrichton

This adds a new Python script (compatible with 2.7 and 3.x) that will consume some JSON files that define a platform's intrinsics. It can output a file that defines the intrinsics in the compiler, or an `extern` block that will import them.

The complexity of the generator is to be DRY: platforms (especially ARM and AArch64) have a lot of repetition with their intrinsics, for different versions with different types, so being able to write it once is nice.

8 years agoremove the is_instantiable check
Ariel Ben-Yehuda [Mon, 31 Aug 2015 20:54:15 +0000 (23:54 +0300)]
remove the is_instantiable check

Fixes #27497

8 years agoDelete unused macros from rustc_platform_intrinsics.
Huon Wilson [Mon, 31 Aug 2015 20:42:09 +0000 (13:42 -0700)]
Delete unused macros from rustc_platform_intrinsics.

8 years agoImplement RFC 839 for `{HashMap, HashSet}`
Andrew Paseltiner [Sun, 30 Aug 2015 01:06:11 +0000 (21:06 -0400)]
Implement RFC 839 for `{HashMap, HashSet}`

It appears that these impls were left out of #25989 by mistake.

8 years agoAuto merge of #28009 - GuillaumeGomez:patch-1, r=Manishearth
bors [Mon, 31 Aug 2015 16:52:46 +0000 (16:52 +0000)]
Auto merge of #28009 - GuillaumeGomez:patch-1, r=Manishearth

r? @Manishearth

8 years agoAuto merge of #28123 - Aatch:fix-silly-tuple-constructor, r=eddyb
bors [Mon, 31 Aug 2015 15:00:48 +0000 (15:00 +0000)]
Auto merge of #28123 - Aatch:fix-silly-tuple-constructor, r=eddyb

This was preventing any side-effects from the expressions from
happening.

Fixes #28114

cc @rust-lang/compiler

8 years agoAuto merge of #28116 - nrc:closure-expand, r=alexcrichton
bors [Mon, 31 Aug 2015 13:10:23 +0000 (13:10 +0000)]
Auto merge of #28116 - nrc:closure-expand, r=alexcrichton

8 years agoTranslate constructor arguments for zero-sized tuple structs
James Miller [Mon, 31 Aug 2015 11:57:41 +0000 (23:57 +1200)]
Translate constructor arguments for zero-sized tuple structs

This was preventing any side-effects from the expressions from
happening.

Fixes #28114

8 years agoAuto merge of #28107 - mneumann:dragonfly_ar, r=alexcrichton
bors [Mon, 31 Aug 2015 11:19:27 +0000 (11:19 +0000)]
Auto merge of #28107 - mneumann:dragonfly_ar, r=alexcrichton

8 years agohide docs for private `collections::btree::Recover` trait
Andrew Paseltiner [Mon, 31 Aug 2015 11:01:07 +0000 (07:01 -0400)]
hide docs for private `collections::btree::Recover` trait

closes #28093

8 years agoAuto merge of #28101 - ijks:24214-str-bytes, r=alexcrichton
bors [Mon, 31 Aug 2015 09:15:55 +0000 (09:15 +0000)]
Auto merge of #28101 - ijks:24214-str-bytes, r=alexcrichton

Specifically, `count`, `last`, and `nth` are implemented to use the
methods of the underlying slice iterator.

Partially closes #24214.

8 years agoImplement `FixedSizeArray` for all fixed size arrays
Tobias Bucher [Sat, 29 Aug 2015 16:30:05 +0000 (18:30 +0200)]
Implement `FixedSizeArray` for all fixed size arrays

Do so by using the fact that fixed size arrays (like `[u8; 8]` can be coerced
to slices `&[u8]`, this is expressed through the trait `Unsize<[T]>` that all
fixed size arrays implement.

8 years agoAuto merge of #27980 - tbu-:pr_cloexec_dup, r=alexcrichton
bors [Mon, 31 Aug 2015 07:24:39 +0000 (07:24 +0000)]
Auto merge of #27980 - tbu-:pr_cloexec_dup, r=alexcrichton

Still needs values of F_DUPFD_CLOEXEC on other OSs.

For Bitrig, NetBSD and OpenBSD the constant was incorrectly in posix01, when
it's actually posix08. In order to maintain backwards-compatiblity, the
constant was only copied, not moved.

cc #24237

8 years agoClosures are not generated code.
Nick Cameron [Mon, 31 Aug 2015 05:06:30 +0000 (17:06 +1200)]
Closures are not generated code.

8 years agoFix typo
AlexDenisov [Mon, 31 Aug 2015 04:44:27 +0000 (06:44 +0200)]
Fix typo

8 years agoAuto merge of #28103 - GuillaumeGomez:fix-intrinsic, r=huonw
bors [Mon, 31 Aug 2015 03:00:21 +0000 (03:00 +0000)]
Auto merge of #28103 - GuillaumeGomez:fix-intrinsic, r=huonw

Fixes #28062

8 years agoAuto merge of #28007 - Ms2ger:FnKind, r=nrc
bors [Mon, 31 Aug 2015 01:09:40 +0000 (01:09 +0000)]
Auto merge of #28007 - Ms2ger:FnKind, r=nrc

There is no longer a need for that pattern, since enums are now qualified.

8 years agoAuto merge of #27983 - barosl:respect-color, r=nrc
bors [Sun, 30 Aug 2015 23:18:34 +0000 (23:18 +0000)]
Auto merge of #27983 - barosl:respect-color, r=nrc

Currently, `early_error` and `early_warn` in `librustc::session` always use `ColorConfig::Auto`. Modify them to follow the color configuration set by the `--color` option.

As colored output is also printed during the early stage, parsing the `--color` option should be done as early as possible. However, there are still some cases when the output needs to be colored before knowing the exact color settings. In these cases, it will be defaulted to `ColorConfig::Auto`, which is the same as before.

Fixes #27879.

8 years agofixes #27124 for DragonFly
Michael Neumann [Sun, 30 Aug 2015 20:31:39 +0000 (22:31 +0200)]
fixes #27124 for DragonFly

8 years agoAuto merge of #28106 - marcusklaas:continue, r=eddyb
bors [Sun, 30 Aug 2015 20:26:44 +0000 (20:26 +0000)]
Auto merge of #28106 - marcusklaas:continue, r=eddyb

Fixes https://github.com/rust-lang/rust/issues/28105.

8 years agoAssign correct span to continue expression
Marcus Klaas [Sun, 30 Aug 2015 18:43:09 +0000 (20:43 +0200)]
Assign correct span to continue expression

Fixes https://github.com/rust-lang/rust/issues/28105.

8 years agoAuto merge of #28102 - arielb1:fix-log-again, r=eddyb
bors [Sun, 30 Aug 2015 16:52:23 +0000 (16:52 +0000)]
Auto merge of #28102 - arielb1:fix-log-again, r=eddyb

r? @eddyb

8 years agofix compilation with RUST_LOG=rustc::middle::traits
Ariel Ben-Yehuda [Sun, 30 Aug 2015 16:07:44 +0000 (19:07 +0300)]
fix compilation with RUST_LOG=rustc::middle::traits

8 years agoAdd overrides to iterator methods for `str::Bytes`
Daan Rijks [Sun, 30 Aug 2015 15:32:43 +0000 (17:32 +0200)]
Add overrides to iterator methods for `str::Bytes`

Specifically, `count`, `last`, and `nth` are implemented to use the
methods of the underlying slice iterator.

Partially closes #24214.

8 years agoAuto merge of #28097 - tbu-:pr_macro_to_const_fn, r=eddyb
bors [Sun, 30 Aug 2015 14:15:42 +0000 (14:15 +0000)]
Auto merge of #28097 - tbu-:pr_macro_to_const_fn, r=eddyb

8 years agoMake a macro a const fn and remove outdated NB
Tobias Bucher [Sun, 30 Aug 2015 12:32:17 +0000 (14:32 +0200)]
Make a macro a const fn and remove outdated NB

8 years agoAdd compile-fail test for E0444
Guillaume Gomez [Sun, 30 Aug 2015 07:53:32 +0000 (09:53 +0200)]
Add compile-fail test for E0444

8 years agoAtomically set CLOEXEC on duplicated sockets
Tobias Bucher [Mon, 24 Aug 2015 11:57:11 +0000 (13:57 +0200)]
Atomically set CLOEXEC on duplicated sockets

For Bitrig, NetBSD and OpenBSD the constant was incorrectly in posix01, when
it's actually posix08, so we move it. This is a [breaking-change], but we
already had one in #27930.

Fix NetBSD's F_DUPFD_CLOEXEC constant.

For a similar feature detection, see this musl thread:
http://comments.gmane.org/gmane.linux.lib.musl.general/2963

This assumes that an int literal has type `c_int` for varidic functions.

8 years agoAdd E0444 error code explanation
Guillaume Gomez [Sun, 30 Aug 2015 07:53:05 +0000 (09:53 +0200)]
Add E0444 error code explanation

8 years agoAdd checkup on number of arguments
Guillaume Gomez [Sun, 30 Aug 2015 07:52:34 +0000 (09:52 +0200)]
Add checkup on number of arguments

8 years agoAuto merge of #27588 - cesarb:read_all, r=alexcrichton
bors [Sun, 30 Aug 2015 05:59:49 +0000 (05:59 +0000)]
Auto merge of #27588 - cesarb:read_all, r=alexcrichton

This implements the proposed "read_exact" RFC (https://github.com/rust-lang/rfcs/pull/980).

Tracking issue: https://github.com/rust-lang/rust/issues/27585

8 years agoAuto merge of #28087 - AlisdairO:diagnostics122, r=arielb1
bors [Sun, 30 Aug 2015 04:09:11 +0000 (04:09 +0000)]
Auto merge of #28087 - AlisdairO:diagnostics122, r=arielb1

As title :-)
Part of #24407.

r? @Manishearth

8 years agoSupport different scalar integer widths in Rust v. LLVM.
Huon Wilson [Sun, 30 Aug 2015 03:01:33 +0000 (20:01 -0700)]
Support different scalar integer widths in Rust v. LLVM.

Some x86 C intrinsics are declared to take `int ...` (i.e. exposed in
Rust as `i32`), but LLVM implements them by taking `i8` instead.

8 years agoFix typos in some x86 and arm intrinsics.
Huon Wilson [Sun, 30 Aug 2015 02:27:21 +0000 (19:27 -0700)]
Fix typos in some x86 and arm intrinsics.

8 years agoStyle the generator script more PEP8y.
Huon Wilson [Sat, 29 Aug 2015 19:27:59 +0000 (12:27 -0700)]
Style the generator script more PEP8y.

8 years agoAuto merge of #28086 - AlisdairO:diagnostics281, r=arielb1
bors [Sun, 30 Aug 2015 00:38:05 +0000 (00:38 +0000)]
Auto merge of #28086 - AlisdairO:diagnostics281, r=arielb1

As title :-)
Part of #24407.

r? @Manishearth

8 years agoAutogenerate most x86 platform intrinsics.
Huon Wilson [Sat, 29 Aug 2015 05:43:38 +0000 (22:43 -0700)]
Autogenerate most x86 platform intrinsics.

8 years agoAllow unused imports in the generator.
Huon Wilson [Sat, 29 Aug 2015 05:42:39 +0000 (22:42 -0700)]
Allow unused imports in the generator.

8 years agoAdd support for arbitrary metadata for numbers and widths.
Huon Wilson [Sat, 29 Aug 2015 05:27:51 +0000 (22:27 -0700)]
Add support for arbitrary metadata for numbers and widths.

This means that each platform has total control over the formatting info
it needs.

8 years agoAutogenerate most ARM platform intrinsics.
Huon Wilson [Sat, 29 Aug 2015 02:40:36 +0000 (19:40 -0700)]
Autogenerate most ARM platform intrinsics.

8 years agoAutogenerate most AArch64 platform intrinsics.
Huon Wilson [Fri, 28 Aug 2015 23:49:01 +0000 (16:49 -0700)]
Autogenerate most AArch64 platform intrinsics.

8 years agoAdd the platform intrinsic generator script.
Huon Wilson [Fri, 28 Aug 2015 23:39:29 +0000 (16:39 -0700)]
Add the platform intrinsic generator script.

This python script will consume an appropriately formatted JSON file and
output either a Rust file for use in librustc_platform_intrinsics, or an
extern block for importing the intrinsics in an external library.

The --help flag has details.

8 years agoAvoid eagerly stripping the common platform prefix.
Huon Wilson [Fri, 28 Aug 2015 23:38:25 +0000 (16:38 -0700)]
Avoid eagerly stripping the common platform prefix.

This works better with the code generation approach.

8 years agoAdd support for aggregates in platform intrinsics.
Huon Wilson [Fri, 28 Aug 2015 23:34:07 +0000 (16:34 -0700)]
Add support for aggregates in platform intrinsics.

This adds support for flattened intrinsics, which are called in Rust
with tuples but in LLVM without them (e.g. `foo((a, b))` becomes `foo(a,
b)`). Unflattened ones could be supported, but are not yet.

8 years agoSeparate integers into signed and unsigned.
Huon Wilson [Fri, 28 Aug 2015 23:32:25 +0000 (16:32 -0700)]
Separate integers into signed and unsigned.

This is necessary to reflect the ARM APIs accurately, since some
functions explicitly take an unsigned parameter and a signed one, of the
same integer shape, so the no-duplicates check will fail unless we
distinguish.

8 years agoAuto merge of #28077 - jonas-schievink:attr-gateage, r=huonw
bors [Sat, 29 Aug 2015 21:59:24 +0000 (21:59 +0000)]
Auto merge of #28077 - jonas-schievink:attr-gateage, r=huonw

This allows marking attributes as whitelisted/crate-only independent of
their feature gate status.

Closes #24213

8 years agoAuto merge of #28090 - mystor:derive-unsafe-trait, r=Manishearth
bors [Sat, 29 Aug 2015 19:07:19 +0000 (19:07 +0000)]
Auto merge of #28090 - mystor:derive-unsafe-trait, r=Manishearth

8 years agoAllow #[derive()] to generate unsafe trait impls
Michael Layzell [Sat, 29 Aug 2015 18:50:05 +0000 (14:50 -0400)]
Allow #[derive()] to generate unsafe trait impls

8 years agoadd long diagnostics for E0122
Alisdair Owens [Sat, 29 Aug 2015 16:20:46 +0000 (17:20 +0100)]
add long diagnostics for E0122

8 years agoadd diagnostics for E0281
Alisdair Owens [Sat, 15 Aug 2015 09:01:26 +0000 (10:01 +0100)]
add diagnostics for E0281

8 years agoHandle gateage of built-in attributes seperately
Jonas Schievink [Fri, 28 Aug 2015 22:23:32 +0000 (00:23 +0200)]
Handle gateage of built-in attributes seperately

This allows marking attributes as whitelisted/crate-only independent of
their feature gate status.

Closes #24213

8 years agoAuto merge of #28080 - huonw:travis++, r=alexcrichton
bors [Sat, 29 Aug 2015 06:36:51 +0000 (06:36 +0000)]
Auto merge of #28080 - huonw:travis++, r=alexcrichton

It is very difficult to find tidy problems in the midst of the output of
the LLVM/jemalloc/etc. build, and travis is great for the former, so
lets remove that problem.

8 years agoRun tidy by itself on travis.
Huon Wilson [Sat, 29 Aug 2015 05:59:00 +0000 (22:59 -0700)]
Run tidy by itself on travis.

It is very difficult to find tidy problems in the midst of the output of
the LLVM/jemalloc/etc. build, and travis is great for the former, so
lets remove that problem.

8 years agoAuto merge of #28078 - apasel422:patch-1, r=alexcrichton
bors [Sat, 29 Aug 2015 04:58:45 +0000 (04:58 +0000)]
Auto merge of #28078 - apasel422:patch-1, r=alexcrichton

8 years agoAuto merge of #28070 - mdchoate:patch-1, r=alexcrichton
bors [Sat, 29 Aug 2015 03:20:37 +0000 (03:20 +0000)]
Auto merge of #28070 - mdchoate:patch-1, r=alexcrichton

8 years agoRemove superfluous line from Nomicon
Andrew Paseltiner [Sat, 29 Aug 2015 02:07:02 +0000 (22:07 -0400)]
Remove superfluous line from Nomicon

8 years agoAuto merge of #28042 - Jake-Shadle:master, r=steveklabnik
bors [Sat, 29 Aug 2015 01:43:16 +0000 (01:43 +0000)]
Auto merge of #28042 - Jake-Shadle:master, r=steveklabnik

Encountered an issue with `pacman` while going through the guide for installing the `mingw` toolchain on Windows with `msys2`, after some googling I found the [solution](https://github.com/Alexpux/MSYS2-packages/issues/163#issuecomment-73555971).

I thought it would be good to update the README so people don't get frustrated. :smiley:

r? @steveklabnik

8 years agoAuto merge of #28043 - apasel422:rfc-1194, r=alexcrichton
bors [Sat, 29 Aug 2015 00:06:04 +0000 (00:06 +0000)]
Auto merge of #28043 - apasel422:rfc-1194, r=alexcrichton

8 years agoAuto merge of #27900 - SimonSapin:Chars_as_str, r=alexcrichton
bors [Fri, 28 Aug 2015 22:29:23 +0000 (22:29 +0000)]
Auto merge of #27900 - SimonSapin:Chars_as_str, r=alexcrichton

See #27775.

r? @alexcrichton