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

49 files changed

Lines changed: 49 additions & 49 deletions

Some content is hidden

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

hphp/hack/src/parser/rust_parser_errors.rs

Lines changed: 1 addition & 1 deletion
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,
Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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 {
Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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;
Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

0 commit comments

Comments
 (0)