]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agopick off some easy cases for LUB/GLB in regions
Niko Matsakis [Thu, 17 Mar 2016 09:22:53 +0000 (05:22 -0400)]
pick off some easy cases for LUB/GLB in regions

the goal here is to minimize creating variables

8 years agodon't create region vars in LUB coercions
Niko Matsakis [Thu, 17 Mar 2016 09:22:26 +0000 (05:22 -0400)]
don't create region vars in LUB coercions

instead, extract the target region out of the autoderef loop

8 years agorename unify to unify_and_identity
Niko Matsakis [Thu, 17 Mar 2016 08:23:27 +0000 (04:23 -0400)]
rename unify to unify_and_identity

8 years agochange coercion to use target region if not LUB
Niko Matsakis [Thu, 17 Mar 2016 08:15:06 +0000 (04:15 -0400)]
change coercion to use target region if not LUB

8 years agocfail test for #31886
Alex Burka [Fri, 18 Mar 2016 17:58:06 +0000 (13:58 -0400)]
cfail test for #31886

8 years agoderive: assume enum repr defaults to isize
Alex Burka [Thu, 3 Mar 2016 19:55:24 +0000 (14:55 -0500)]
derive: assume enum repr defaults to isize

It was originally intended to be i32, but it isn't.

Fixes #31886.

8 years agoAuto merge of #32309 - aturon:overlap-warning, r=nikomatsakis
bors [Fri, 18 Mar 2016 18:30:30 +0000 (11:30 -0700)]
Auto merge of #32309 - aturon:overlap-warning, r=nikomatsakis

Change inherent overlap error to a warning for now, to ease the breakage

Closes #32247

r? @nikomatsakis

8 years agoChange inherent overlap error to a warning for now, to ease the breakage.
Aaron Turon [Thu, 17 Mar 2016 16:05:24 +0000 (09:05 -0700)]
Change inherent overlap error to a warning for now, to ease the breakage.

8 years agoAdd intrinsics for float arithmetic with `fast` flag enabled
Ulrik Sverdrup [Mon, 14 Mar 2016 23:01:12 +0000 (00:01 +0100)]
Add intrinsics for float arithmetic with `fast` flag enabled

`fast` a.k.a UnsafeAlgebra is the flag for enabling all "unsafe"
(according to llvm) float optimizations.

See LangRef for more information http://llvm.org/docs/LangRef.html#fast-math-flags

Providing these operations with less precise associativity rules (for
example) is useful to numerical applications.

For example, the summation loop:

    let sum = 0.;
    for element in data {
        sum += *element;
    }

Using the default floating point semantics, this loop expresses the
floats must be added in a sequence, one after another. This constraint
is usually completely unintended, and it means that no autovectorization
is possible.

8 years agoFix tidy
Steven Fackler [Fri, 18 Mar 2016 16:30:36 +0000 (09:30 -0700)]
Fix tidy

8 years agoAuto merge of #32282 - sfackler:panic-hook, r=alexcrichton
bors [Fri, 18 Mar 2016 16:21:43 +0000 (09:21 -0700)]
Auto merge of #32282 - sfackler:panic-hook, r=alexcrichton

Adjustments to the panic hook API

Rename `set_handler` and `take_handler` to `set_hook` and `take_hook` since we're not actually "handling" (i.e. fixing) anything.

Also alter `set_hook` to take a `Box<Fn(&PanicInfo) + 'static + Sync + Send>` rather than a parameterized closure since there's otherwise no easy way to re-register a hook that came from `take_hook`.

cc #30449

r? @aturon

8 years agoAdd a since to deprecations
Steven Fackler [Fri, 18 Mar 2016 16:13:55 +0000 (09:13 -0700)]
Add a since to deprecations

8 years agoUpdate of the book; Error handling, section on custom error types: we should also...
Kevin Brothaler [Fri, 18 Mar 2016 15:19:20 +0000 (11:19 -0400)]
Update of the book; Error handling, section on custom error types: we should also show the changes to the `cause` method.

8 years agodocs: Make some tiny modification about spelling
Tang Chenglong [Fri, 18 Mar 2016 15:29:12 +0000 (23:29 +0800)]
docs: Make some tiny modification about spelling

8 years agoUpdate LLVM to include a backport to restore AA performance
Björn Steinbrink [Fri, 18 Mar 2016 14:51:17 +0000 (15:51 +0100)]
Update LLVM to include a backport to restore AA performance

cc #31435

8 years agoAdd doc examples
Guillaume Gomez [Mon, 14 Mar 2016 15:43:55 +0000 (16:43 +0100)]
Add doc examples

8 years agoAuto merge of #32080 - eddyb:transcendent, r=nikomatsakis
bors [Fri, 18 Mar 2016 13:54:58 +0000 (06:54 -0700)]
Auto merge of #32080 - eddyb:transcendent, r=nikomatsakis

Refactor call & function handling in trans, enable MIR bootstrap.

Non-Rust and Rust ABIs were combined into a common codepath, which means:
* The ugly `__rust_abi` "clown shoes" shim for C->Rust FFI is gone, fixes #10116.
* Methods, *including virtual ones* support non-Rust ABIs, closes #30235.
* Non-Rust ABIs also pass fat pointers in two arguments; the result should be identical.
* Zero-sized types are never passed as arguments; again, behavior shouldn't change.

Additionally, MIR support for calling intrinsics (through old trans) was implemented.
Alongside assorted fixes, it enabled MIR to launch :rocket: and do a *complete* bootstrap.
To try it yourself, `./configure --enable-orbit` *or* `make RUSTFLAGS="-Z orbit"`.

8 years agotests: Update run-make/issue-25581 to reflect how fat pointers are passed.
Eduard Burtescu [Fri, 18 Mar 2016 13:54:27 +0000 (15:54 +0200)]
tests: Update run-make/issue-25581 to reflect how fat pointers are passed.

8 years agotrans: Don't ignore zero-sized struct arguments on x86_64-pc-windows-gnu.
Eduard Burtescu [Fri, 18 Mar 2016 12:28:11 +0000 (14:28 +0200)]
trans: Don't ignore zero-sized struct arguments on x86_64-pc-windows-gnu.

8 years agoliveness: substitute bound regions with free ones before normalizing the return type
Jonas Schievink [Fri, 18 Mar 2016 10:34:51 +0000 (11:34 +0100)]
liveness: substitute bound regions with free ones before normalizing the return type

Fixes #32323

8 years agoAuto merge of #32248 - dstu:master, r=alexcrichton
bors [Fri, 18 Mar 2016 09:46:35 +0000 (02:46 -0700)]
Auto merge of #32248 - dstu:master, r=alexcrichton

Expose the key of Entry variants for HashMap and BTreeMap.

This PR addresses [issue 1541](https://github.com/rust-lang/rfcs/issues/1541) by exposing the key of `HashMap` and `BTreeMap` entry variants. Basic tests are provided.

8 years agoAuto merge of #32207 - achanda:ipv6-doc, r=alexcrichton
bors [Fri, 18 Mar 2016 06:52:55 +0000 (23:52 -0700)]
Auto merge of #32207 - achanda:ipv6-doc, r=alexcrichton

Add is_documentation for IPv6

This function returns true if the given IPv6 is reserved for
documentation. Also, reject this block in the is_global check

8 years agoMake AssertRecoverSafe's field public
Steven Fackler [Fri, 18 Mar 2016 05:43:17 +0000 (22:43 -0700)]
Make AssertRecoverSafe's field public

It's basically the very definition of a newtype, so we might as well
make things easy on people and let them construct and access it
directly.

8 years agotrans: Decide whether to load volatile_store's argument based on its ArgType.
Eduard Burtescu [Fri, 18 Mar 2016 03:29:53 +0000 (05:29 +0200)]
trans: Decide whether to load volatile_store's argument based on its ArgType.

8 years agoMinor phrasing adjustment
Todd Lucas [Fri, 18 Mar 2016 03:14:05 +0000 (20:14 -0700)]
Minor phrasing adjustment

8 years agoUpdate the not-at-all-pretty pain-o-tron-4000+264 test.
Eduard Burtescu [Fri, 18 Mar 2016 00:22:32 +0000 (02:22 +0200)]
Update the not-at-all-pretty pain-o-tron-4000+264 test.

8 years agotrans: Pass newtypes of immediates as their inner-most type again.
Eduard Burtescu [Thu, 17 Mar 2016 23:01:47 +0000 (01:01 +0200)]
trans: Pass newtypes of immediates as their inner-most type again.

8 years agofixup Cleaner Recover::replace
Piotr Czarnecki [Thu, 17 Mar 2016 22:11:22 +0000 (23:11 +0100)]
fixup Cleaner Recover::replace

8 years agorustbuild: Fix cross to netbsd from Linux
Alex Crichton [Thu, 17 Mar 2016 20:58:26 +0000 (13:58 -0700)]
rustbuild: Fix cross to netbsd from Linux

Apparently the NetBSD compiler-rt builds into the linux directory as well.
I'm... detecting a trend!

8 years agomir: Don't memset allocas of types that do not require drop.
Eduard Burtescu [Thu, 10 Mar 2016 19:47:25 +0000 (21:47 +0200)]
mir: Don't memset allocas of types that do not require drop.

8 years agomir: Store immediates used for indirect arguments in an alloca.
Eduard Burtescu [Thu, 10 Mar 2016 19:30:52 +0000 (21:30 +0200)]
mir: Store immediates used for indirect arguments in an alloca.

8 years agoAdd #[rustc_no_mir] to make tests pass with -Z orbit.
Eduard Burtescu [Thu, 10 Mar 2016 19:20:09 +0000 (21:20 +0200)]
Add #[rustc_no_mir] to make tests pass with -Z orbit.

8 years agocompiletest: Add rustc-env for run-pass/super-fast-paren-parsing.
Eduard Burtescu [Thu, 10 Mar 2016 11:08:20 +0000 (13:08 +0200)]
compiletest: Add rustc-env for run-pass/super-fast-paren-parsing.

8 years agomir: Don't forget to drop arguments.
Eduard Burtescu [Thu, 10 Mar 2016 04:35:41 +0000 (06:35 +0200)]
mir: Don't forget to drop arguments.

8 years agohir_map: Provide expression and statement attributes.
Eduard Burtescu [Thu, 10 Mar 2016 02:12:36 +0000 (04:12 +0200)]
hir_map: Provide expression and statement attributes.

8 years agotrans: Do not depend on having Expr's around for generic_simd_intrinsic.
Eduard Burtescu [Thu, 10 Mar 2016 00:17:45 +0000 (02:17 +0200)]
trans: Do not depend on having Expr's around for generic_simd_intrinsic.

8 years agoconst_eval: Take just one set of substitutions in lookup_const_by_id.
Eduard Burtescu [Thu, 10 Mar 2016 00:04:55 +0000 (02:04 +0200)]
const_eval: Take just one set of substitutions in lookup_const_by_id.

8 years agomir: Use usize instead of u32 for indexing slices.
Eduard Burtescu [Thu, 10 Mar 2016 00:03:00 +0000 (02:03 +0200)]
mir: Use usize instead of u32 for indexing slices.

8 years agoAdd -Z orbit for forcing MIR for everything, unless #[rustc_no_mir] is used.
Eduard Burtescu [Wed, 9 Mar 2016 20:46:00 +0000 (22:46 +0200)]
Add -Z orbit for forcing MIR for everything, unless #[rustc_no_mir] is used.

8 years agohir, mir: Separate HIR expressions / MIR operands from InlineAsm.
Eduard Burtescu [Wed, 9 Mar 2016 20:17:02 +0000 (22:17 +0200)]
hir, mir: Separate HIR expressions / MIR operands from InlineAsm.

8 years agomir: Translate Rvalue::Slice without relying on tvec.
Eduard Burtescu [Wed, 9 Mar 2016 19:49:23 +0000 (21:49 +0200)]
mir: Translate Rvalue::Slice without relying on tvec.

8 years agomir: Get the right non-reference type for binding patterns.
Eduard Burtescu [Wed, 9 Mar 2016 21:32:52 +0000 (23:32 +0200)]
mir: Get the right non-reference type for binding patterns.

8 years agomir: Don't lose sub-patterns inside slice patterns.
Eduard Burtescu [Wed, 9 Mar 2016 12:21:31 +0000 (14:21 +0200)]
mir: Don't lose sub-patterns inside slice patterns.

8 years agomir: Match against slices by calling PartialEq::eq.
Eduard Burtescu [Wed, 9 Mar 2016 12:20:50 +0000 (14:20 +0200)]
mir: Match against slices by calling PartialEq::eq.

8 years agotrans: Make everything used from within at_start Builder-friendly.
Eduard Burtescu [Wed, 9 Mar 2016 12:20:22 +0000 (14:20 +0200)]
trans: Make everything used from within at_start Builder-friendly.

8 years agomir: Call set_operand_dropped in more places, specifically Unsize casts.
Eduard Burtescu [Tue, 8 Mar 2016 13:03:02 +0000 (15:03 +0200)]
mir: Call set_operand_dropped in more places, specifically Unsize casts.

8 years agomir: Translate intrinsics, via old trans where possible.
Eduard Burtescu [Tue, 8 Mar 2016 12:40:37 +0000 (14:40 +0200)]
mir: Translate intrinsics, via old trans where possible.

8 years agomir: Reintroduce the temporary block after invokes, to handle critical edges.
Eduard Burtescu [Tue, 8 Mar 2016 12:40:04 +0000 (14:40 +0200)]
mir: Reintroduce the temporary block after invokes, to handle critical edges.

8 years agomir: Trigger closure instantiations when the closure value is created.
Eduard Burtescu [Tue, 8 Mar 2016 12:38:44 +0000 (14:38 +0200)]
mir: Trigger closure instantiations when the closure value is created.

8 years agotrans: Load and cache cross-crate Mir instances in the shared context.
Eduard Burtescu [Tue, 8 Mar 2016 12:38:13 +0000 (14:38 +0200)]
trans: Load and cache cross-crate Mir instances in the shared context.

8 years agomir: Don't shadow the "args" variable in Call translation.
Eduard Burtescu [Tue, 8 Mar 2016 12:31:48 +0000 (14:31 +0200)]
mir: Don't shadow the "args" variable in Call translation.

8 years agomir: Truncate bool to i1 for SwitchInt.
Eduard Burtescu [Tue, 8 Mar 2016 12:31:23 +0000 (14:31 +0200)]
mir: Truncate bool to i1 for SwitchInt.

8 years agotrans: Take a &Builder in call_memcpy, like call_memset.
Eduard Burtescu [Tue, 8 Mar 2016 12:29:46 +0000 (14:29 +0200)]
trans: Take a &Builder in call_memcpy, like call_memset.

8 years agomir: Support RustCall ABI functions.
Eduard Burtescu [Tue, 8 Mar 2016 12:24:44 +0000 (14:24 +0200)]
mir: Support RustCall ABI functions.

8 years agomir: Load FatPtr constants instead of keeping them indirect.
Eduard Burtescu [Tue, 8 Mar 2016 12:23:23 +0000 (14:23 +0200)]
mir: Load FatPtr constants instead of keeping them indirect.

8 years agomir: Don't load the discriminant, it's already in immediate form.
Eduard Burtescu [Tue, 8 Mar 2016 12:21:11 +0000 (14:21 +0200)]
mir: Don't load the discriminant, it's already in immediate form.

8 years agomir: Don't use ConstVal when adjustments are involved, as they would be lost.
Eduard Burtescu [Tue, 8 Mar 2016 12:20:06 +0000 (14:20 +0200)]
mir: Don't use ConstVal when adjustments are involved, as they would be lost.

8 years agomir: Unsize ConstVal::ByteStr before comparing &[u8] against it.
Eduard Burtescu [Tue, 8 Mar 2016 12:17:35 +0000 (14:17 +0200)]
mir: Unsize ConstVal::ByteStr before comparing &[u8] against it.

8 years agomir: Ignore noop casts (e.g. when `as` used for coercion).
Eduard Burtescu [Tue, 8 Mar 2016 12:16:26 +0000 (14:16 +0200)]
mir: Ignore noop casts (e.g. when `as` used for coercion).

8 years agomir: Don't use ConstVal kinds that contain local NodeId's.
Eduard Burtescu [Tue, 8 Mar 2016 12:15:23 +0000 (14:15 +0200)]
mir: Don't use ConstVal kinds that contain local NodeId's.

8 years agomir: Use the right form of GEPi for indexing slices vs arrays.
Eduard Burtescu [Tue, 8 Mar 2016 12:13:56 +0000 (14:13 +0200)]
mir: Use the right form of GEPi for indexing slices vs arrays.

8 years agomir: Monomorphize LvalueTy's of projections.
Eduard Burtescu [Tue, 8 Mar 2016 12:11:45 +0000 (14:11 +0200)]
mir: Monomorphize LvalueTy's of projections.

8 years agotrans: Simplify "try" intrinsic.
Eduard Burtescu [Sun, 6 Mar 2016 12:29:31 +0000 (14:29 +0200)]
trans: Simplify "try" intrinsic.

8 years agotests: Use arguments in codegen/stores.rs to turn aggregates into immediates.
Eduard Burtescu [Sun, 6 Mar 2016 12:28:11 +0000 (14:28 +0200)]
tests: Use arguments in codegen/stores.rs to turn aggregates into immediates.

8 years agotrans: Remove the foreign module.
Eduard Burtescu [Sun, 6 Mar 2016 12:17:53 +0000 (14:17 +0200)]
trans: Remove the foreign module.

8 years agotrans: Handle all function setup for all ABIs via FnType.
Eduard Burtescu [Sun, 6 Mar 2016 14:30:21 +0000 (16:30 +0200)]
trans: Handle all function setup for all ABIs via FnType.

8 years agotrans: datum::lvalue_scratch_datum doesn't need a move-into-closure trick.
Eduard Burtescu [Sun, 6 Mar 2016 11:23:43 +0000 (13:23 +0200)]
trans: datum::lvalue_scratch_datum doesn't need a move-into-closure trick.

8 years agotrans: Handle calls for all ABIs through FnType.
Eduard Burtescu [Sun, 6 Mar 2016 11:23:20 +0000 (13:23 +0200)]
trans: Handle calls for all ABIs through FnType.

8 years agotrans: Provide the FnType for a direct call via Callee::direct_fn_type.
Eduard Burtescu [Sun, 6 Mar 2016 10:38:46 +0000 (12:38 +0200)]
trans: Provide the FnType for a direct call via Callee::direct_fn_type.

8 years agotrans: Handle ignored arguments/returns uniformly.
Eduard Burtescu [Sun, 6 Mar 2016 10:36:39 +0000 (12:36 +0200)]
trans: Handle ignored arguments/returns uniformly.

8 years agotrans: Set the calling convention in apply_attrs_callsite.
Eduard Burtescu [Sun, 6 Mar 2016 10:34:31 +0000 (12:34 +0200)]
trans: Set the calling convention in apply_attrs_callsite.

8 years agotrans: Apply all attributes through FnType.
Eduard Burtescu [Thu, 25 Feb 2016 23:10:40 +0000 (01:10 +0200)]
trans: Apply all attributes through FnType.

8 years agotrans: Use llvm::Attributes directly in ArgTy.
Eduard Burtescu [Thu, 25 Feb 2016 17:35:40 +0000 (19:35 +0200)]
trans: Use llvm::Attributes directly in ArgTy.

8 years agorustc_llvm: An AttrBuilder that's not completely wasteful.
Eduard Burtescu [Thu, 25 Feb 2016 17:08:10 +0000 (19:08 +0200)]
rustc_llvm: An AttrBuilder that's not completely wasteful.

8 years agorustc_llvm: Update the Attribute bitflags and remove OtherAttribute.
Eduard Burtescu [Thu, 25 Feb 2016 13:35:56 +0000 (15:35 +0200)]
rustc_llvm: Update the Attribute bitflags and remove OtherAttribute.

8 years agotrans: use sizing_type_of for interacting with potentially incomplete types.
Eduard Burtescu [Thu, 25 Feb 2016 13:35:47 +0000 (15:35 +0200)]
trans: use sizing_type_of for interacting with potentially incomplete types.

8 years agotrans: Apply ZExt and StructRet attributes uniformly.
Eduard Burtescu [Thu, 25 Feb 2016 10:11:02 +0000 (12:11 +0200)]
trans: Apply ZExt and StructRet attributes uniformly.

8 years agotrans: Only mutate ArgTy's in C ABI handling, don't create them.
Eduard Burtescu [Thu, 25 Feb 2016 08:49:58 +0000 (10:49 +0200)]
trans: Only mutate ArgTy's in C ABI handling, don't create them.

8 years agotrans: Handle type_of for Rust fn's via abi::FnType.
Eduard Burtescu [Wed, 24 Feb 2016 17:37:22 +0000 (19:37 +0200)]
trans: Handle type_of for Rust fn's via abi::FnType.

8 years agotrans: Remove dropflag-unaware type_is_newtype_immediate shortcut.
Eduard Burtescu [Wed, 24 Feb 2016 17:00:54 +0000 (19:00 +0200)]
trans: Remove dropflag-unaware type_is_newtype_immediate shortcut.

8 years agotests: Force instantiation of extern fns.
Eduard Burtescu [Wed, 24 Feb 2016 09:42:16 +0000 (11:42 +0200)]
tests: Force instantiation of extern fns.

8 years agotrans: Pass fat pointers as two arguments even for FFI.
Eduard Burtescu [Wed, 24 Feb 2016 09:09:25 +0000 (11:09 +0200)]
trans: Pass fat pointers as two arguments even for FFI.

8 years agotrans: Don't treat closure types like function types in declare.
Eduard Burtescu [Tue, 23 Feb 2016 23:16:27 +0000 (01:16 +0200)]
trans: Don't treat closure types like function types in declare.

8 years agotrans: Combine cabi and back::abi into abi.
Eduard Burtescu [Tue, 23 Feb 2016 20:43:04 +0000 (22:43 +0200)]
trans: Combine cabi and back::abi into abi.

8 years agotrans: Condense the fn instantiation logic into callee.
Eduard Burtescu [Tue, 23 Feb 2016 20:04:51 +0000 (22:04 +0200)]
trans: Condense the fn instantiation logic into callee.

8 years agotrans: Rename MonoId to Instance and start using it in more places.
Eduard Burtescu [Tue, 23 Feb 2016 20:04:27 +0000 (22:04 +0200)]
trans: Rename MonoId to Instance and start using it in more places.

8 years agodocumentation fix in RELEASES.md
Katze [Thu, 17 Mar 2016 19:15:22 +0000 (20:15 +0100)]
documentation fix in RELEASES.md

f32 should probably be denoted as 0.0 as it might improve readability.

Signed-off-by: benaryorg <binary@benary.org>
8 years agoAuto merge of #32294 - Manishearth:derive-fix, r=alexcrichton
bors [Thu, 17 Mar 2016 18:08:44 +0000 (11:08 -0700)]
Auto merge of #32294 - Manishearth:derive-fix, r=alexcrichton

Re-add double underscores in derive (fixes #32292)

@durka, sanity-check, please?

<s>Don't merge this yet, I need to add a test and test it locally.</s>

ready for review

8 years ago`let` introduces a statement
Tang Chenglong [Thu, 17 Mar 2016 17:17:19 +0000 (01:17 +0800)]
`let` introduces a statement

I changes *expression* to *statement* to make more accurate, because in Rust, `let` introduces a declaration statement.

8 years agostd: Revert addition of `into_ascii_*` methods
Alex Crichton [Thu, 17 Mar 2016 16:39:10 +0000 (09:39 -0700)]
std: Revert addition of `into_ascii_*` methods

The addition of these methods in #31335 required adding impls of the trait for
the `String` and `Vec<T>` types. This unfortunately caused a regression (#32074)
in type inference for using these methods which the libs team has decided to not
push forward with. These methods were stabilized in #32020 which was intended to
get backported to beta, but the backport hasn't happened just yet. This commit
reverts both the addition and stabilization of these methods.

One proposed method of handling this, in #32076, was to move the methods to an
extra trait to avoid conflicts with type inference. After some discussion,
however, the libs team concluded that we probably want to reevaluate what we're
doing here, so discussion will continue on the tracking issue, #27809.

8 years agotrans: Don't store extra copies of intrinsics ID/substs.
Eduard Burtescu [Tue, 23 Feb 2016 20:00:59 +0000 (22:00 +0200)]
trans: Don't store extra copies of intrinsics ID/substs.

8 years agotrans: use Cell instead of RefCell where it suffices.
Eduard Burtescu [Tue, 23 Feb 2016 19:59:23 +0000 (21:59 +0200)]
trans: use Cell instead of RefCell where it suffices.

8 years agotrans: simplify the declare interface.
Eduard Burtescu [Tue, 23 Feb 2016 19:57:22 +0000 (21:57 +0200)]
trans: simplify the declare interface.

8 years agotrans: Revamp and empower cabi::FnType.
Eduard Burtescu [Tue, 23 Feb 2016 19:55:19 +0000 (21:55 +0200)]
trans: Revamp and empower cabi::FnType.

8 years agotrans: Pass the Rust type for the closure env in type_of_rust_fn.
Eduard Burtescu [Tue, 23 Feb 2016 19:49:35 +0000 (21:49 +0200)]
trans: Pass the Rust type for the closure env in type_of_rust_fn.

8 years agotrans: Remove the old ExprOrMethodCall.
Eduard Burtescu [Tue, 23 Feb 2016 19:48:33 +0000 (21:48 +0200)]
trans: Remove the old ExprOrMethodCall.

8 years agotrans: Remove unused return type argument from declare_cfn.
Eduard Burtescu [Tue, 23 Feb 2016 19:46:08 +0000 (21:46 +0200)]
trans: Remove unused return type argument from declare_cfn.

8 years agotrans: Move static item handling to consts.
Eduard Burtescu [Tue, 23 Feb 2016 19:39:35 +0000 (21:39 +0200)]
trans: Move static item handling to consts.

8 years agotrans: Remove dead code for variants and structs from get_item_val.
Eduard Burtescu [Tue, 23 Feb 2016 19:34:48 +0000 (21:34 +0200)]
trans: Remove dead code for variants and structs from get_item_val.

8 years agotrans: Move trans_foreign_mod and trans_impl to trans_item.
Eduard Burtescu [Tue, 23 Feb 2016 19:32:44 +0000 (21:32 +0200)]
trans: Move trans_foreign_mod and trans_impl to trans_item.