-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Assert FnDef
kind
#123382
Assert FnDef
kind
#123382
Conversation
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.
Sweet!
let args = ty::GenericArgs::identity_for_item(tcx, def_id); | ||
Ty::new_fn_def(tcx, def_id.to_def_id(), args) | ||
Ty::new_fn_def(tcx, ctor.to_def_id(), args) |
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.
I'm surprised that this didn't affect any tests. This surely has some semantic implications even if minor? Can't think of anything tho rn
@bors r+ rollup |
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#123209 (Add section to sanitizer doc for `-Zexternal-clangrt`) - rust-lang#123342 (x.py test: remove no-op --skip flag) - rust-lang#123382 (Assert `FnDef` kind) - rust-lang#123386 (Set `CARGO` instead of `PATH` for Rust Clippy) - rust-lang#123393 (rustc_ast: Update `P<T>` docs to reflect mutable status.) - rust-lang#123394 (Postfix match fixes) - rust-lang#123412 (Output URLs of CI artifacts to GitHub summary) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#123382 - compiler-errors:assert-fndef-kind, r=fmease Assert `FnDef` kind Only found one bug, where we were using the variant def id rather than its ctor def id to make the `FnDef` for a `type_of` r? fmease
Only found one bug, where we were using the variant def id rather than its ctor def id to make the
FnDef
for atype_of
r? fmease