Skip to content

Commit cb398e7

Browse files
jamesjwufacebook-github-bot
authored andcommitted
No longer require file attribute in HHVM for modules
Summary: We'll still require it in the typechecker and still gate the same way via a whitelist for the time being, but this unblocks us from adding modules into systemlib without the ugly file attribute. Unrelated test timeout: Reviewed By: oulgen Differential Revision: D40441753 fbshipit-source-id: 497a13d27308b54b62de65807f0ead5aa71024af
1 parent fb6429d commit cb398e7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+49
-49
lines changed

hphp/hack/src/parser/rust_parser_errors.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ impl UnstableFeatures {
114114
UnstableFeatures::ExpressionTrees => Unstable,
115115
UnstableFeatures::Ifc => Unstable,
116116
UnstableFeatures::Readonly => Preview,
117-
UnstableFeatures::Modules => Preview,
117+
UnstableFeatures::Modules => OngoingRelease,
118118
UnstableFeatures::ModuleReferences => Unstable,
119119
UnstableFeatures::ContextAliasDeclaration => Unstable,
120120
UnstableFeatures::ContextAliasDeclarationShort => Preview,
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?hh
2-
<<file:__EnableUnstableFeatures("modules")>>
2+
33
new module foo {}

hphp/test/slow/debugger/modules.php.inc2

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?hh
2-
<<file:__EnableUnstableFeatures("modules")>>
2+
33
module foo;
44

55
internal class Foo {
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?hh
2-
<<file:__EnableUnstableFeatures("modules")>>
2+
33
new module foo {}

hphp/test/slow/enum_class/enum_class_internal.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?hh
22
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
3-
<<file:__EnableUnstableFeatures("modules")>>
3+
44
module foo;
55
internal enum class E : mixed {
66
int A = 42;

hphp/test/slow/modules/autoload-1.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?hh
22

3-
<<file:__EnableUnstableFeatures("modules")>>
3+
44

55
new module a {}

hphp/test/slow/modules/basic-1.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?hh
22

3-
<<file:__EnableUnstableFeatures("modules")>>
3+
44

55
module B;
66

hphp/test/slow/modules/basic-2.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?hh
22

3-
<<file:__EnableUnstableFeatures("modules")>>
3+
44

55
module A;
66

hphp/test/slow/modules/basic-3.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?hh
22

3-
<<file:__EnableUnstableFeatures("modules")>>
3+
44

55
module B;
66

hphp/test/slow/modules/basic-3.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?hh
22

3-
<<file:__EnableUnstableFeatures("modules")>>
3+
44

55
module A;
66

hphp/test/slow/modules/basic-4.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?hh
22

3-
<<file:__EnableUnstableFeatures("modules")>>
3+
44

55
module B;
66

hphp/test/slow/modules/basic-4.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?hh
22

3-
<<file:__EnableUnstableFeatures("modules")>>
3+
44

55
module A;
66

hphp/test/slow/modules/basic-soft-1.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?hh
22

3-
<<file:__EnableUnstableFeatures("modules")>>
3+
44

55
module A;
66

hphp/test/slow/modules/basic-throw-1.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?hh
22

3-
<<file:__EnableUnstableFeatures("modules")>>
3+
44

55
module A;
66

hphp/test/slow/modules/basic-throw-4.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?hh
22

3-
<<file:__EnableUnstableFeatures("modules")>>
3+
44

55
module A;
66

Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?hh
22

3-
<<file:__EnableUnstableFeatures("modules")>>
3+
44

55
new module A {}

hphp/test/slow/modules/duplicate-module-1.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?hh
22

3-
<<file:__EnableUnstableFeatures("modules")>>
3+
44

55
new module A {}
66

hphp/test/slow/modules/instance-properties-incdec-throw.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?hh
2-
<<file:__EnableUnstableFeatures("modules")>>
2+
33

44

55
<<__EntryPoint>>

hphp/test/slow/modules/instance-properties-incdec.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?hh
2-
<<file:__EnableUnstableFeatures("modules")>>
2+
33

44

55
<<__EntryPoint>>

hphp/test/slow/modules/instance-properties-throw-2.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?hh
2-
<<file:__EnableUnstableFeatures("modules")>>
2+
33

44

55
<<__EntryPoint>>

hphp/test/slow/modules/instance-properties-throw-3.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?hh
2-
<<file:__EnableUnstableFeatures("modules")>>
2+
33

44

55
<<__EntryPoint>>

hphp/test/slow/modules/instance-properties-throw.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?hh
2-
<<file:__EnableUnstableFeatures("modules")>>
2+
33

44

55
<<__EntryPoint>>

hphp/test/slow/modules/instance-properties.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?hh
2-
<<file:__EnableUnstableFeatures("modules")>>
2+
33
module foo;
44

55
class Foo {

hphp/test/slow/modules/instance-properties.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?hh
2-
<<file:__EnableUnstableFeatures("modules")>>
2+
33

44

55
<<__EntryPoint>>

hphp/test/slow/modules/instance-properties2.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?hh
2-
<<file:__EnableUnstableFeatures("modules")>>
2+
33

44

55
<<__EntryPoint>>

hphp/test/slow/modules/instance-properties3.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?hh
2-
<<file:__EnableUnstableFeatures("modules")>>
2+
33

44

55
<<__EntryPoint>>

hphp/test/slow/modules/method-cache-1.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?hh
22

3-
<<file:__EnableUnstableFeatures("modules")>>
3+
44

55
module B;
66

hphp/test/slow/modules/method-cache-1.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?hh
22

3-
<<file:__EnableUnstableFeatures("modules")>>
3+
44

55
module A;
66

hphp/test/slow/modules/module-attribute-1.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?hh
2-
<<file:__EnableUnstableFeatures("modules")>>
2+
33

44
class Ok implements HH\ModuleAttribute {
55
public function foo(): string {

hphp/test/slow/modules/module.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?hh
2-
<<file:__EnableUnstableFeatures("modules")>>
2+
33
new module foo {}

hphp/test/slow/modules/module_newtype.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?hh
2-
<<file:__EnableUnstableFeatures("modules")>>
2+
33
module foo;
44
module newtype Foo = FooInternal; // ok
55
internal class FooInternal {
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?hh
2-
<<file:__EnableUnstableFeatures("modules")>>
2+
33
new module foo {}
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?hh
2-
<<file:__EnableUnstableFeatures("modules")>>
2+
33
function outside_module(Foo $x) : void {
44
$x->foo(); // ok
55
}

hphp/test/slow/modules/module_newtype_separate_file.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?hh
2-
<<file:__EnableUnstableFeatures("modules")>>
2+
33
module foo;
44
function separate_file(Foo $x) : void {
55
$x->foo(); // ok
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?hh
2-
<<file:__EnableUnstableFeatures("modules")>>
2+
33
new module foo {}

hphp/test/slow/modules/public_toplevel.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?hh
2-
<<file:__EnableUnstableFeatures("modules")>>
2+
33
module foo;
44

55
public class Foo {}
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?hh
22

3-
<<file:__EnableUnstableFeatures("modules")>>
3+
44

55
new module B {}

hphp/test/slow/modules/reflection-2.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?hh
22

3-
<<file:__EnableUnstableFeatures("modules")>>
3+
44

55
<<Ok, Yes>>
66
new module A {}

hphp/test/slow/modules/reflection-3.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?hh
22

3-
<<file:__EnableUnstableFeatures("modules")>>
3+
44
module A;
55

66
internal function f() {}

hphp/test/slow/modules/resolve-1.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?hh
22

3-
<<file:__EnableUnstableFeatures("modules")>>
3+
44
module b;
55

66
function bar1() { return foo<>; }

hphp/test/slow/modules/resolve-1.inc1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?hh
22

3-
<<file:__EnableUnstableFeatures("modules")>>
3+
44
module a;
55

66
internal function foo() { echo "in f\n"; }

hphp/test/slow/modules/resolve-1.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?hh
22

3-
<<file:__EnableUnstableFeatures("modules")>>
3+
44
module b;
55

66
<<__EntryPoint>>

hphp/test/slow/modules/resolve-2.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?hh
22

3-
<<file:__EnableUnstableFeatures("modules")>>
3+
44
module a;
55

66
function bar1() { return foo<>; }

hphp/test/slow/modules/resolve-2.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?hh
22

3-
<<file:__EnableUnstableFeatures("modules")>>
3+
44
module b;
55

66
<<__EntryPoint>>

hphp/test/slow/modules/resolve-throw-1.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?hh
22

3-
<<file:__EnableUnstableFeatures("modules")>>
3+
44
module b;
55

66
function pp_exn(Exception $e) {

hphp/test/slow/modules/resolve-throw-2.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?hh
22

3-
<<file:__EnableUnstableFeatures("modules")>>
3+
44
module b;
55

66
function pp_exn(Exception $e) {

hphp/test/slow/modules/static-inheritance-1.inc1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?hh
2-
<<file:__EnableUnstableFeatures("modules")>>
2+
33
module foo;
44

55
internal class Child extends Foo {

hphp/test/slow/modules/static-inheritance-1.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?hh
22

3-
<<file:__EnableUnstableFeatures("modules")>>
3+
44
module foo;
55

66
<<__EntryPoint>>

hphp/test/slow/modules/static-inheritance-throw-1.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?hh
22

3-
<<file:__EnableUnstableFeatures("modules")>>
3+
44
module foo;
55

66
<<__EntryPoint>>

0 commit comments

Comments
 (0)