File tree Expand file tree Collapse file tree 1 file changed +2
-17
lines changed Expand file tree Collapse file tree 1 file changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -2381,8 +2381,8 @@ Consider using a block if any of these are necessary for your mapping code."
2381
2381
2382
2382
method ! slow-infer ($ iterator , Mu $ type is copy , Mu $ pulled is copy ) {
2383
2383
# set up types to check
2384
- my $ mro := nqp :: clone ( nqp ::getattr( $ type .^ mro, List , ' $!reified ' ));
2385
- my $ roles := nqp :: clone (nqp ::getattr($ type .^ roles,List ,' $!reified' ));
2384
+ my $ mro :=
2385
+ nqp :: clone (nqp ::getattr($ type .^ mro( : roles) ,List ,' $!reified' ));
2386
2386
2387
2387
nqp ::repeat_until(
2388
2388
nqp ::eqaddr(($ pulled := $ iterator . pull-one ),IterationEnd)
@@ -2392,21 +2392,6 @@ Consider using a block if any of these are necessary for your mapping code."
2392
2392
nqp ::stmts( # not the same base type
2393
2393
nqp :: shift ($ mro ),
2394
2394
($ type := nqp ::atpos($ mro ,0 )), # assume next type for now
2395
- nqp ::if( # check all roles, if any left
2396
- nqp :: elems ($ roles ),
2397
- nqp ::stmts(
2398
- (my $ new-roles := nqp ::list),
2399
- nqp ::while (
2400
- nqp :: elems ($ roles ),
2401
- nqp ::if(
2402
- nqp ::istype((my $ role := nqp :: pop ($ roles )),$ type )
2403
- && nqp ::istype($ pulled ,$ role ),
2404
- ($ type := nqp :: unshift ($ new-roles ,$ role ))
2405
- )
2406
- ),
2407
- ($ roles := $ new-roles )
2408
- )
2409
- )
2410
2395
)
2411
2396
)
2412
2397
);
You can’t perform that action at this time.
0 commit comments