Skip to content

Conversation

@jonas-schievink
Copy link
Contributor

Instead, store it in the DeclValidator.

Also pass the CrateId that defines the checked item along. This is not yet needed, but will be once I've refactored Attrs to handle cfg_attr internally.

We could also try to extract the crate from the "owner" ModuleDefId instead of passing it in, but then it might not be present for builtin types. Open to suggestions.

@matklad
Copy link
Contributor

matklad commented Dec 17, 2020

sgtm!

I wish we have some unified pattern about "how do I get a database", but I don't know what that pattern would look like!

bors r+

@bors
Copy link
Contributor

bors bot commented Dec 17, 2020

@bors bors bot merged commit d21f5f7 into rust-lang:master Dec 17, 2020
@jonas-schievink jonas-schievink deleted the decl-check-remove-db-args branch December 17, 2020 11:15
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.

2 participants