-
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
remove inline const deadcode in typeck #110893
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
r? @nbdd0121 |
Failed to set assignee to
|
oh |
@bors r+ |
@@ -221,12 +221,6 @@ fn typeck_with_fallback<'tcx>( | |||
})) | |||
} else if let Node::AnonConst(_) = node { | |||
match tcx.hir().get(tcx.hir().parent_id(id)) { | |||
Node::Expr(&hir::Expr { |
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.
would be nice to assert that we're only calling typeck_with_fallback on things that aren't typeck children, just in case someone messes with that typeck_root_def_id != def_id
branch above, but whatever
Rollup of 7 pull requests Successful merges: - rust-lang#109702 (configure --set support list as arguments) - rust-lang#110620 (Document `const {}` syntax for `std::thread_local`.) - rust-lang#110721 (format panic message only once) - rust-lang#110881 (refactor(docs): remove macro resolution fallback) - rust-lang#110893 (remove inline const deadcode in typeck) - rust-lang#110898 (Remove unused std::sys_common::thread_local_key::Key) - rust-lang#110909 (Skip `rustc` version detection on macOS) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
inline consts get typeck'd with their parent so this is not reachable