From: Dave Rolsky Date: Wed, 14 Jul 2010 17:07:50 +0000 (-0500) Subject: Explicitly use Moose::Deprecated in all modules that call ::deprecated() X-Git-Tag: 1.09~33 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1fa1a58d8da6231c4fe95905e3d5ccd5dcf456b9;p=gitmo%2FMoose.git Explicitly use Moose::Deprecated in all modules that call ::deprecated() --- diff --git a/lib/Moose.pm b/lib/Moose.pm index 87a4398..5e2ce88 100644 --- a/lib/Moose.pm +++ b/lib/Moose.pm @@ -11,6 +11,7 @@ our $AUTHORITY = 'cpan:STEVAN'; use Scalar::Util 'blessed'; use Carp 'confess'; +use Moose::Deprecated; use Moose::Exporter; use Class::MOP 0.94; diff --git a/lib/Moose/Util/TypeConstraints.pm b/lib/Moose/Util/TypeConstraints.pm index 127b453..9fcd1cc 100644 --- a/lib/Moose/Util/TypeConstraints.pm +++ b/lib/Moose/Util/TypeConstraints.pm @@ -25,6 +25,7 @@ sub optimize_as (&); ## -------------------------------------------------------- +use Moose::Deprecated; use Moose::Meta::TypeConstraint; use Moose::Meta::TypeConstraint::Union; use Moose::Meta::TypeConstraint::Parameterized; diff --git a/lib/Moose/Util/TypeConstraints/OptimizedConstraints.pm b/lib/Moose/Util/TypeConstraints/OptimizedConstraints.pm index b0ece33..7c60f56 100644 --- a/lib/Moose/Util/TypeConstraints/OptimizedConstraints.pm +++ b/lib/Moose/Util/TypeConstraints/OptimizedConstraints.pm @@ -4,6 +4,7 @@ use strict; use warnings; use Class::MOP; +use Moose::Deprecated; use Scalar::Util 'blessed', 'looks_like_number'; our $VERSION = '1.08';