-
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
Merge HostPolarity
and BoundConstness
#132344
Conversation
HIR ty lowering was modified cc @fmease |
(HostPolarity::Maybe, HostPolarity::Maybe) => true, | ||
(HostPolarity::Maybe, HostPolarity::Const) => false, | ||
} | ||
pub fn host(self) -> BoundConstness { |
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.
that seems off, fn constness(self)
though also, if you're already removing HostPolarity
, I would probably like to just entirely stop using the host terminology?
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'll rename this function, but also I'll keep the name for the predicate itself b/c that sounds like an annoying change to bundle into this.
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.
some nits, otherwise r=me
bebca64
to
802f3a7
Compare
@bors r=lcnr rollup (naming only) |
Merge `HostPolarity` and `BoundConstness` They're basically the same thing, and I think `BoundConstness` is easier to use. r? fee1-dead or reassign
…kingjubilee Rollup of 5 pull requests Successful merges: - rust-lang#129383 (Remap impl-trait lifetimes on HIR instead of AST lowering) - rust-lang#132210 (rustdoc: make doctest span tweak a 2024 edition change) - rust-lang#132246 (Rename `rustc_abi::Abi` to `BackendRepr`) - rust-lang#132267 (force-recompile library changes on download-rustc="if-unchanged") - rust-lang#132344 (Merge `HostPolarity` and `BoundConstness`) Failed merges: - rust-lang#132347 (Remove `ValueAnalysis` and `ValueAnalysisWrapper`.) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#132344 - compiler-errors:same-thing, r=lcnr Merge `HostPolarity` and `BoundConstness` They're basically the same thing, and I think `BoundConstness` is easier to use. r? fee1-dead or reassign
They're basically the same thing, and I think
BoundConstness
is easier to use.r? fee1-dead or reassign