-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove useless and actually harmful 'use lib' statements from modules.
There's no need to use lib 't/spec/packages' in a module that _is_ loaded from that path already. If t/spec/packages was not in the repo list, we could not have loaded the modules in the first place. It's actually harmful as we don't allow a "use lib" in a precompiled module. This only made it into 6.c as other restrictions prevented us from precompiling these modules but those restrictions were an implementation detail, not necessitated by the language design.
- Loading branch information
Showing
4 changed files
with
0 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
use v6.c; | ||
|
||
use lib 't/spec/packages'; | ||
use B; | ||
class A { | ||
has B $.x; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
use v6.c; | ||
# used in t/spec/S11-modules/nested.t | ||
|
||
use lib 't/spec/packages'; | ||
|
||
module A::A { | ||
use A::B; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
use v6.c; | ||
|
||
use lib 't/spec/packages'; | ||
|
||
use B::Grammar; | ||
|
||
class B { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
use v6.c; | ||
use lib 't/spec/packages'; | ||
use RoleB; | ||
|
||
unit role RoleA; | ||
|