Make LintExpectationId stable between compilation sessions (RFC-2383)

This commit is contained in:
xFrednet 2021-11-20 20:45:27 +01:00
parent 44cb8fa482
commit 33a5945069
No known key found for this signature in database
GPG key ID: FCDCBF29AF64D601
10 changed files with 171 additions and 39 deletions

View file

@ -59,7 +59,8 @@ impl<'a, T: EarlyLintPass> EarlyContextAndPass<'a, T> {
F: FnOnce(&mut Self),
{
let is_crate_node = id == ast::CRATE_NODE_ID;
let push = self.context.builder.push(attrs, is_crate_node);
let push = self.context.builder.push(attrs, is_crate_node, None);
self.check_id(id);
self.enter_attrs(attrs);
f(self);