Skip to content

Add E0452 error explanation #30201

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 9, 2015
Merged

Add E0452 error explanation #30201

merged 1 commit into from
Dec 9, 2015

Conversation

GuillaumeGomez
Copy link
Member

#![allow(foo = "")] // error: malformed lint attribute
```

You need to pass an ident as lint attribute to fix this issue:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Lint attributes only accept a list of identifiers (where each identifier is a lint name). Ensure the attribute is of this form:"

@Manishearth
Copy link
Member

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Dec 4, 2015

📌 Commit 67eaa9e has been approved by Manishearth

@bors
Copy link
Collaborator

bors commented Dec 4, 2015

⌛ Testing commit 67eaa9e with merge 1557790...

@bors
Copy link
Collaborator

bors commented Dec 4, 2015

💔 Test failed - auto-linux-64-debug-opt

@Manishearth
Copy link
Member

@bors retry

O.o

@bors
Copy link
Collaborator

bors commented Dec 4, 2015

⌛ Testing commit 67eaa9e with merge d241086...

@bors
Copy link
Collaborator

bors commented Dec 4, 2015

💔 Test failed - auto-mac-64-nopt-t

@Manishearth
Copy link
Member

../src/librustc/middle/expr_use_visitor.rs:285:9: 285:68 error: cannot infer an appropriate lifetime for lifetime parameter `'tcx` due to conflicting requirements
../src/librustc/middle/expr_use_visitor.rs:285         ExprUseVisitor { typer: typer, mc: mc, delegate: delegate }
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/librustc/middle/expr_use_visitor.rs:279:5: 286:6 help: consider using an explicit lifetime parameter as shown: fn new(delegate: &'d mut (Delegate<'tcx>),
       typer: &'t infer::InferCtxt<'a, 'a>) -> ExprUseVisitor<'d, 't, 'a, 'a>
 where 'tcx:'a'd:
../src/librustc/middle/expr_use_visitor.rs:279     pub fn new(delegate: &'d mut (Delegate<'tcx>),
../src/librustc/middle/expr_use_visitor.rs:280                typer: &'t infer::InferCtxt<'a, 'tcx>)
../src/librustc/middle/expr_use_visitor.rs:281                -> ExprUseVisitor<'d,'t,'a,'tcx> where 'tcx:'a+'d
../src/librustc/middle/expr_use_visitor.rs:282     {
../src/librustc/middle/expr_use_visitor.rs:283         let mc: mc::MemCategorizationContext<'t, 'a, 'tcx> =
../src/librustc/middle/expr_use_visitor.rs:284             mc::MemCategorizationContext::new(typer);
                                               ...
error: aborting due to previous error
make: *** [x86_64-apple-darwin/stage0/lib/rustlib/x86_64-apple-darwin/lib/stamp.rustc] Error 101

looks like there are some old files left over on the build machine?

@GuillaumeGomez
Copy link
Member Author

cc @alexcrichton

@alexcrichton
Copy link
Member

Unfortunately I'm not entirely sure what's going on here, I've seen this sort of error crop up from time to time but it always seems unrelated to the change at hand (e.g. like this PR). This may be a stage0 bug that has since been fixed (not sure), and it may just involve waiting for some other PRs to land for this one to stop being unlucky. Beyond that I'm not so sure :(

@nikomatsakis
Copy link
Contributor

This is due to a bug in the snapshot, I believe. This bug has been fixed. Unfortunately random permutations of the source can lead to this error.

@nikomatsakis
Copy link
Contributor

Maybe time for a new snapshot!

@Manishearth
Copy link
Member

@bors retry

steveklabnik added a commit to steveklabnik/rust that referenced this pull request Dec 9, 2015
bors added a commit that referenced this pull request Dec 9, 2015
@bors bors merged commit 67eaa9e into rust-lang:master Dec 9, 2015
@GuillaumeGomez GuillaumeGomez deleted the patch-3 branch December 9, 2015 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants