-
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
effects: fix a comment #119089
effects: fix a comment #119089
Conversation
&& !matches!( | ||
arg, | ||
GenericArg::Const(hir::ConstArg { | ||
is_desugared_from_effects: true, | ||
.. | ||
}) | ||
) |
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.
Obviously I'm “treating symptoms” here but for the lowerer there's simply no way to know up front if the trait is non-const to avoid synthesizing host effect args.
~const
trait bounds involving a non-const trait~const
trait bounds involving non-const traits
This comment was marked as resolved.
This comment was marked as resolved.
c1d2c3b
to
9746938
Compare
I think this is fixed via 324ca87 |
9746938
to
b2e304e
Compare
@@ -262,7 +262,7 @@ pub fn create_args_for_parent_generic_args<'tcx, 'a>( | |||
// impl const PartialEq for () {} | |||
// ``` | |||
// | |||
// Since this is a const impl, we need to insert `<false>` at the end of |
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.
It's not false
but host
in this case, therefore I've updated the comment.
Ah, yes, much better! Makes sense. I've pushed your suggested changes and made you the co-author. |
That commit is actually contained in #119072, but feel free to change this to just the comment change and r=me. |
b2e304e
to
ffdc6c7
Compare
~const
trait bounds involving non-const traits
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
…-const-trait, r=fee1-dead effects: fix a comment r? fee1-dead or compiler
…mpiler-errors Rollup of 7 pull requests Successful merges: - rust-lang#118691 (Add check for possible CStr literals in pre-2021) - rust-lang#118973 (rustc_codegen_ssa: Don't drop `IncorrectCguReuseType` , make `rustc_expected_cgu_reuse` attr work) - rust-lang#119071 (-Znext-solver: adapt overflow rules to avoid breakage) - rust-lang#119089 (effects: fix a comment) - rust-lang#119096 (Yeet unnecessary param envs) - rust-lang#119118 (Fix arm64e-apple-ios target) - rust-lang#119134 (resolve: Feed visibilities for unresolved trait impl items) r? `@ghost` `@rustbot` modify labels: rollup
…mpiler-errors Rollup of 7 pull requests Successful merges: - rust-lang#118691 (Add check for possible CStr literals in pre-2021) - rust-lang#118973 (rustc_codegen_ssa: Don't drop `IncorrectCguReuseType` , make `rustc_expected_cgu_reuse` attr work) - rust-lang#119071 (-Znext-solver: adapt overflow rules to avoid breakage) - rust-lang#119089 (effects: fix a comment) - rust-lang#119096 (Yeet unnecessary param envs) - rust-lang#119118 (Fix arm64e-apple-ios target) - rust-lang#119134 (resolve: Feed visibilities for unresolved trait impl items) r? `@ghost` `@rustbot` modify labels: rollup
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#118691 (Add check for possible CStr literals in pre-2021) - rust-lang#118973 (rustc_codegen_ssa: Don't drop `IncorrectCguReuseType` , make `rustc_expected_cgu_reuse` attr work) - rust-lang#119071 (-Znext-solver: adapt overflow rules to avoid breakage) - rust-lang#119089 (effects: fix a comment) - rust-lang#119094 (Add function ABI and type layout to StableMIR) - rust-lang#119102 (Add arm-none-eabi and armv7r-none-eabi platform-support documentation.) - rust-lang#119107 (subtype_predicate: remove unnecessary probe) Failed merges: - rust-lang#119135 (Fix crash due to `CrateItem::kind()` not handling constructors) - rust-lang#119141 (Add method to get instance instantiation arguments) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#119089 - fmease:dont-ice-on-tilde-const-non-const-trait, r=fee1-dead effects: fix a comment r? fee1-dead or compiler
r? fee1-dead or compiler