Skip to content

#28669 caused regression compiling pinyin crate on nightly #28853

Closed
@eefriedman

Description

@eefriedman

See https://tools.taskcluster.net/task-inspector/#UFk2m1UJRweSxQNABRB84w/0 ; I've confirmed the issue locally, although I haven't managed to reduce it.

For reference, the error message:

   Compiling pinyin v0.0.4 (file:///home/crate)                                                                         
src/lib.rs:157:24: 157:29 error: cannot infer an appropriate lifetime for lifetime parameter `'t` due to conflicting req
uirements [E0495]                                                                                                       
src/lib.rs:157         let cap = caps.at(0).unwrap();                                                                   
                                      ^~~~~                                                                             
src/lib.rs:157:19: 157:29 note: first, the lifetime cannot outlive the method call at 157:18...                         
src/lib.rs:157         let cap = caps.at(0).unwrap();                                                                   
                                 ^~~~~~~~~~                                                                             
src/lib.rs:157:19: 157:29 note: ...so that a type/lifetime parameter is in scope here                                   
src/lib.rs:157         let cap = caps.at(0).unwrap();                                                                   
                                 ^~~~~~~~~~                                                                             
src/lib.rs:157:19: 157:38 note: but, the lifetime must be valid for the method call at 157:18...                        
src/lib.rs:157         let cap = caps.at(0).unwrap();                                                                   
                                 ^~~~~~~~~~~~~~~~~~~                                                                    
src/lib.rs:157:19: 157:29 note: ...so that method receiver is valid for the method call                                 
src/lib.rs:157         let cap = caps.at(0).unwrap();                                                                   
                                 ^~~~~~~~~~                                                                             
error: aborting due to previous error                                                                                   
Could not compile `pinyin`.                                                                                             

To learn more, run the command again with --verbose.                                                                    
[taskcluster] Unsuccessful task run with exit code: 101 completed in 40.243 seconds                                     

CC @arielb1 .

Metadata

Metadata

Assignees

Labels

P-highHigh priorityT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions