Skip to content

bump rustc-ap crates to v705#1159

Merged
kngwyu merged 2 commits intoracer-rust:masterfrom
calebcartwright:rustc-ap-bump
Feb 8, 2021
Merged

bump rustc-ap crates to v705#1159
kngwyu merged 2 commits intoracer-rust:masterfrom
calebcartwright:rustc-ap-bump

Conversation

@calebcartwright
Copy link
Contributor

@calebcartwright calebcartwright commented Feb 6, 2021

Unfortunately our last round of updating these crates to address the rust tool state issues (rust-lang/rust#81583 rust-lang/rust#81582) hit a roadblock as we got caught between the stabilization of int_bits_const and the subsequent reversion.

As such we're forced to restart the cycle, with v705 being the new crate version target. This version includes some upstream AST changes that had to be addressed here, commentary inline below

Also closes #1157

Comment on lines -899 to +904
if let ItemKind::TyAlias(_, _, _, Some(ref ty)) = item.kind {
self.name = Some(item.ident.name.to_string());
self.type_ = Ty::from_ast(&ty, self.scope);
debug!("typevisitor type is {:?}", self.type_);
if let ItemKind::TyAlias(ref ty_kind) = item.kind {
if let Some(ref ty) = ty_kind.3 {
self.name = Some(item.ident.name.to_string());
self.type_ = Ty::from_ast(&ty, self.scope);
debug!("typevisitor type is {:?}", self.type_);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

rustc is going to box itemkind variants to reduce the memory footprint, and the updated rustc-ap crate versions pull in some of changes that have started down that path.

if you'd prefer, we could enable the box_patterns feature gate for some cleaner matching, but I elected to avoid doing so in this PR

Copy link
Collaborator

@kngwyu kngwyu left a comment

Choose a reason for hiding this comment

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

Thanks!
box_patterns could be better, but now this looks OK to me 👍🏼

@kngwyu kngwyu merged commit 5bd07b5 into racer-rust:master Feb 8, 2021
@kngwyu
Copy link
Collaborator

kngwyu commented Feb 9, 2021

Released 2.1.44 now.

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.

cargo install +nightly racer fails on macOS 11.2

2 participants