-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
rustup https://github.com/rust-lang/rust/pull/60417/ #4054
Conversation
looks spurious
|
r? @Manishearth |
@bors r+ |
📌 Commit 24e856f has been approved by |
rustup rust-lang/rust#60417 cc rust-lang/rust#60448 changelog: none
@@ -495,7 +495,7 @@ impl<'tcx> Visitor<'tcx> for PrintVisitor { | |||
ExprKind::Err => { | |||
println!("Err = {}", current); | |||
}, | |||
ExprKind::Use(ref expr) => { | |||
ExprKind::DropTemps(ref expr) => { | |||
let expr_pat = self.next("expr"); | |||
println!("Use(ref {}) = {};", expr_pat, current); |
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 is wrong, should say DropTemps
.
@bors r- |
ExprKind::Use(ref e) => { | ||
let c: fn(_) -> _ = ExprKind::Use; | ||
ExprKind::DropTemps(ref e) => { | ||
let c: fn(_) -> _ = ExprKind::DropTemps; | ||
c.hash(&mut self.s); |
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.
Huh, this should hash mem::discriminant
(or thereabouts) like rustc does.
Preexisting though, better not to fix it in this PR.
cc @oli-obk @Manishearth
@@ -330,7 +330,7 @@ fn print_expr(cx: &LateContext<'_, '_>, expr: &hir::Expr, indent: usize) { | |||
hir::ExprKind::Err => { | |||
println!("{}Err", ind); | |||
}, | |||
hir::ExprKind::Use(ref e) => { | |||
hir::ExprKind::DropTemps(ref e) => { | |||
println!("{}Use", ind); |
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 say DropTemps
.
Not sure if this will fail/be stopped, but I left a couple comments with some necessary changes. |
oops.. |
could have just pushed to this one 😄 |
cc rust-lang/rust#60448
changelog: none