-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
librustc: Implement the Box<T>
type syntax
#13904
Conversation
I like this patch because it allows us to start porting code over ASAP. The biggest thing we gain is I am worried about Could this patch be modified to deny |
} | ||
|
||
fn i(x: Box<Trait>) { | ||
x.printme(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also ensure that Box<Trait>
can become &Trait
?
👍 glad to see this moving forward |
One thing, IIRC, there's an issue / RFC related to this change. Would you mind adding a reference to each in the commit message? |
ast::TyPath(ref path, _, id) => { | ||
let a_def = match this.tcx().def_map.borrow().find(&id) { | ||
None => this.tcx().sess.span_fatal( | ||
ast_ty.span, format!("unbound path {}", path_to_str(path))), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably be span_bug
r=me with a few nits |
r? @alexcrichton RFC#14 Issue #13885.
cfg Attribute Stripping for Proc Macro Expansion This will attempt to process cfg attributes and cfg_attr attributes for proc macro expansion. ![image](https://github.com/rust-lang/rust-analyzer/assets/11785959/b85ef203-14a5-44c9-9b67-59a65a5f2d96) Closes rust-lang#8434 , rust-lang#11657, and rust-lang#13904
r? @alexcrichton
RFC#14
Issue #13885.