remove UnevaluatedConstKind::def_id#157374
Conversation
|
Some changes occurred in cc @BoxyUwU changes to the core type system cc @lcnr Some changes occurred in cc @BoxyUwU This PR changes rustc_public cc @oli-obk, @celinval, @ouz-a, @makai410 Some changes occurred in match checking cc @Nadrieril Some changes occurred to the core trait solver cc @rust-lang/initiative-trait-system-refactor Some changes occurred to the CTFE / Miri interpreter |
|
|
This comment has been minimized.
This comment has been minimized.
10e75d3 to
5070cba
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
| fn is_const_param_default(tcx: TyCtxt<'_>, def: LocalDefId) -> bool { | ||
| let hir_id = tcx.local_def_id_to_hir_id(def); | ||
| fn is_const_param_default(tcx: TyCtxt<'_>, kind: ty::UnevaluatedConstKind<'_>) -> bool { | ||
| let def_id = match kind { |
There was a problem hiding this comment.
this fn is really a "is this anon const a default for a const prameter" so we dont really care about other alias kinds than Anon
| if mir_body.is_polymorphic { | ||
| let Some(local_def_id) = ct.kind.def_id().as_local() else { return }; | ||
| if mir_body.is_polymorphic | ||
| && let Some(def_id) = ct.kind.opt_def_id() |
There was a problem hiding this comment.
should just be able to use cid.instance.def_id() here
There was a problem hiding this comment.
just pushed fixes for both feedbacks, thanks ✨
5070cba to
f1099c0
Compare
|
@bors r+ rollup=never sick, thanks :3 |
This comment has been minimized.
This comment has been minimized.
…r=BoxyUwU remove UnevaluatedConstKind::def_id this is some of the const side of #152245 not quite a _full_ removal, there's still some spicy things such as `UnevaluatedConstKind::def_span` remaining that won't quite work for new non-DefID `UnevaluatedConstKind` cases, but IMO this is the bulk of the work, and feature-specific things can deal with their quirks in their own PRs when they know their own use cases. r? @BoxyUwU self-reminder: file an issue on what to do about rustc_public's handling of the raw DefIds in rustc_public AliasTy/AliasConst
|
💔 Test for e8a10b1 failed: CI. Failed job:
|
|
@bors retry |
|
A job failed! Check out the build log: (web) (plain enhanced) (plain) Click to see the possible cause of the failure (guessed by this bot) |
|
Let's see if CI will cooperate @bors p=100 |
This comment has been minimized.
This comment has been minimized.
…r=BoxyUwU remove UnevaluatedConstKind::def_id this is some of the const side of #152245 not quite a _full_ removal, there's still some spicy things such as `UnevaluatedConstKind::def_span` remaining that won't quite work for new non-DefID `UnevaluatedConstKind` cases, but IMO this is the bulk of the work, and feature-specific things can deal with their quirks in their own PRs when they know their own use cases. r? @BoxyUwU self-reminder: file an issue on what to do about rustc_public's handling of the raw DefIds in rustc_public AliasTy/AliasConst
|
💔 Test for bac7ec3 failed: CI. Failed job:
|
|
@bors p=0 retry |
|
@bors retry |
|
A job failed! Check out the build log: (web) (plain enhanced) (plain) Click to see the possible cause of the failure (guessed by this bot) |
This comment has been minimized.
This comment has been minimized.
…r=BoxyUwU remove UnevaluatedConstKind::def_id this is some of the const side of #152245 not quite a _full_ removal, there's still some spicy things such as `UnevaluatedConstKind::def_span` remaining that won't quite work for new non-DefID `UnevaluatedConstKind` cases, but IMO this is the bulk of the work, and feature-specific things can deal with their quirks in their own PRs when they know their own use cases. r? @BoxyUwU self-reminder: file an issue on what to do about rustc_public's handling of the raw DefIds in rustc_public AliasTy/AliasConst
|
@bors yield tree is closed due to docker |
|
Auto build was cancelled. Cancelled workflows: The next pull request likely to be tested is #155607. |
This comment has been minimized.
This comment has been minimized.
What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing 877a131 (parent) -> f3ef3bd (this PR) Test differencesShow 14 test diffs14 doctest diffs were found. These are ignored, as they are noisy. Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard f3ef3bd882dd24a275a60701a67c3bb330edd8c1 --output-dir test-dashboardAnd then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
|
Finished benchmarking commit (f3ef3bd): comparison URL. Overall result: ❌ regressions - please read:Our benchmarks found a performance regression caused by this PR. Next Steps:
@rustbot label: +perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (secondary -6.5%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary -2.9%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 516.107s -> 517.572s (0.28%) |
View all comments
this is some of the const side of #152245
not quite a full removal, there's still some spicy things such as
UnevaluatedConstKind::def_spanremaining that won't quite work for new non-DefIDUnevaluatedConstKindcases, but IMO this is the bulk of the work, and feature-specific things can deal with their quirks in their own PRs when they know their own use cases.r? @BoxyUwU
self-reminder: file an issue on what to do about rustc_public's handling of the raw DefIds in rustc_public AliasTy/AliasConst