updating resolveDups() to use MethodTFA.mutatingInterpret()
Basing Futures on Try instead of Either
SI-6185 - add "prepare" hook to ExecutionContext

Enables important abstractions to be built on top of futures,
such as Twitter's "Local" for handling data local to a callback chain.
Temporarily skips failing test due to optimizer bug SI-6188

Also swaps the arguments to method transform on Try, so as to mirror transform on scala.concurrent.Future.
Merge branch 'try-based-futures' of https://github.com/heathermiller/scala into try-based-futures
SI-6145 lax typing of args to synthetic case-labels

Use wildcard for the expected type of the arguments of a jump to a label
synthesized by the pattern matcher... except during erasure: we must take the
expected type into account as it drives the insertion of casts!

It's ok since we're typing the translation of well-typed code. The only "type
errors" we catch are skolem mismatches. (after erasure the existential types that
before caused problems have disappeared.)

It's necessary to balance GADT magic, SI-6145, CPS type-driven transforms and
other existential trickiness. I've exhausted all other semi-clean approaches I
could think of:
  - the right thing to do -- packing existential types -- runs into limitations
    in subtyping existential types,
  - casting breaks SI-6145 (and it's an unnecessary cast at run time),
  - not casting breaks GADT typing as it requires sneaking ill-typed trees
    past typer
SI-6183 don't crash on type error in outer test

unfortunately without test case since the report was hard to minimize
since it was a crash on erroneous code, I figured a backstop against a crash should suffice
SI-5498 completes ModuleMirror.instance

As per referenced issue, this patch implements `instance`
for ModuleMirrors corresponding to nested and inner modules.
Added tests, removal of unnecessary methods, fixes prepare
SI-5933 do the new patmat translation for scaladoc

especially because it benefits from nicer type inference for partial functions
SI-5933 testcase for Adriaan's pullreq #980
Doc fix on exec ctx prepare method, fix to tests
Merge pull request #1084 from VladUreche/issue/5933

SI-5933 do the new patmat translation for scaladoc …
Merge pull request #1043 from magarciaEPFL/fixes210

updating resolveDups() to use MethodTFA.mutatingInterpret()
SI-6040 error on unauthorized extension Dynamic

authorization is easy to get: `import language.dynamics`
Fix test for ExecutionContext.prepare
SI-5947 works around getDeclaredClasses

Our name mangling scheme w.r.t stuff nested into objects conflicts
with JVM's ideas of beauty, which messes up getDeclaredClasses.

Scala reflection needs getDeclaredClasses to convert between Scala and Java,
so the situation looked grim. Greg suggested a workaround described in:
https://issues.scala-lang.org/browse/SI-4023?focusedCommentId=54759#comment-54759.

Luckily the workaround worked!
SI-5739 (bis) vals for subpatterns unless -optimize

To facilitate debugging pattern matches, we store the values for
sub-patterns of extractor (synthetic or user-defined) patterns in local variables.
When performing an optimized build, and when possible, we don't do store but inline them directly.

For soundness, SI-5158, SI-6070, we must always store the values of mutable case class fields.

(Specifying -optimize is the only way to suppress emitting these local variables.
An unoptimized build will always generate them, which was deemed the right default during the meeting.)

(updated flags for t4425 to get consistent runs on optimized and non-optimized partest runs
 by always passing -optimize)
Fixes SI-5687.

Recover from erroneous type alias override to report
more useful error message.
Merge pull request #1075 from adriaanm/ticket-6040

SI-6040 error on unauthorized extension Dynamic