Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

More trait error reworking#127495

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@compiler-errors
Copy link
Member

@compiler-errorscompiler-errors commentedJul 8, 2024
edited
Loading

More work on#127492, specifically those sub-bullets under "Move trait error reporting toerror_reporting::traits". Stacked on top of#127493.

This does introduce newTypeErrCtxt.*Ext traits, but those will be deleted soon. Splitting this work into bite-sized pieces is the only way that it's gonna be feasible to both author and review ❤️

r? lcnr

@rustbotrustbot added S-waiting-on-reviewStatus: Awaiting review from the assignee but also interested parties. T-compilerRelevant to the compiler team, which will review and decide on the PR/issue. WG-trait-system-refactorThe Rustc Trait System Refactor Initiative (-Znext-solver) labelsJul 8, 2024
@rust-log-analyzer

This comment has been minimized.

@compiler-errorscompiler-errorsforce-pushed themore-trait-error-reworking branch from8738543 tobbbff80CompareJuly 9, 2024 13:57
@compiler-errorscompiler-errors marked this pull request as ready for reviewJuly 9, 2024 13:58
@rustbot
Copy link
Collaborator

Some changes occurred to the core trait solver

cc @rust-lang/initiative-trait-system-refactor

@compiler-errors
Copy link
MemberAuthor

This one's ready too :>

}

#[extension(pubtraitTypeErrCtxtExt<'a,'tcx>)]
impl<'a,'tcx>TypeErrCtxt<'a,'tcx>{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

why did you move this out offulfillment_errors?

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I believe I wanted to separate the public API (report_fulfillment_errors) from the impl details (reporting each specific error). Also wanted to makefulfillment_errors smaller module, bc it was like 4000 lines long.

Ideallyfulfillment_errors has all the private impls (reporting specific fulfillment errors) except it's still currently pub because we report a single error (selection errors) manually in coercion rn.

Copy link
Contributor

@lcnrlcnr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

apart from this question r=me

@compiler-errors
Copy link
MemberAuthor

question answered, if u want me to fix anything later let's do it in a follow-up, since i want this generally to land before i make the big transition pr

@bors r=lcnr

@bors
Copy link
Collaborator

bors commentedJul 9, 2024

📌 Commitbbbff80 has been approved bylcnr

It is now in thequeue for this repository.

@borsbors added S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-reviewStatus: Awaiting review from the assignee but also interested parties. labelsJul 9, 2024
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull requestJul 9, 2024
…eworking, r=lcnrMore trait error reworkingMore work onrust-lang#127492, specifically those sub-bullets under "Move trait error reporting to `error_reporting::traits`". Stacked on top ofrust-lang#127493.This does introduce new `TypeErrCtxt.*Ext` traits, but those will be deleted soon. Splitting this work into bite-sized pieces is the only way that it's gonna be feasible to both author and review ❤️r? lcnr
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull requestJul 9, 2024
…eworking, r=lcnrMore trait error reworkingMore work onrust-lang#127492, specifically those sub-bullets under "Move trait error reporting to `error_reporting::traits`". Stacked on top ofrust-lang#127493.This does introduce new `TypeErrCtxt.*Ext` traits, but those will be deleted soon. Splitting this work into bite-sized pieces is the only way that it's gonna be feasible to both author and review ❤️r? lcnr
bors added a commit to rust-lang-ci/rust that referenced this pull requestJul 9, 2024
…iaskrgrRollup of 7 pull requestsSuccessful merges: -rust-lang#127091 (impl FusedIterator and a size hint for the error sources iter) -rust-lang#127358 (Automatically taint when reporting errors from ItemCtxt) -rust-lang#127382 (Use verbose style when suggesting changing `const` with `let`) -rust-lang#127484 (`#[doc(alias)]`'s doc: say that ASCII spaces are allowed) -rust-lang#127495 (More trait error reworking) -rust-lang#127496 (Update `f16`/`f128` FIXMEs that needed `(NEG_)INFINITY`) -rust-lang#127508 (small search graph refactor)r? `@ghost``@rustbot` modify labels: rollup
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull requestJul 9, 2024
…eworking, r=lcnrMore trait error reworkingMore work onrust-lang#127492, specifically those sub-bullets under "Move trait error reporting to `error_reporting::traits`". Stacked on top ofrust-lang#127493.This does introduce new `TypeErrCtxt.*Ext` traits, but those will be deleted soon. Splitting this work into bite-sized pieces is the only way that it's gonna be feasible to both author and review ❤️r? lcnr
bors added a commit to rust-lang-ci/rust that referenced this pull requestJul 9, 2024
…iaskrgrRollup of 10 pull requestsSuccessful merges: -rust-lang#124339 (allow overwriting the output of `rustc --version`) -rust-lang#125627 (migration lint for `expr2024` for the edition 2024) -rust-lang#127091 (impl FusedIterator and a size hint for the error sources iter) -rust-lang#127358 (Automatically taint when reporting errors from ItemCtxt) -rust-lang#127484 (`#[doc(alias)]`'s doc: say that ASCII spaces are allowed) -rust-lang#127495 (More trait error reworking) -rust-lang#127496 (Update `f16`/`f128` FIXMEs that needed `(NEG_)INFINITY`) -rust-lang#127508 (small search graph refactor) -rust-lang#127521 (Remove spastorino from SMIR) -rust-lang#127532 (documentation: update cmake version)r? `@ghost``@rustbot` modify labels: rollup
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull requestJul 9, 2024
…eworking, r=lcnrMore trait error reworkingMore work onrust-lang#127492, specifically those sub-bullets under "Move trait error reporting to `error_reporting::traits`". Stacked on top ofrust-lang#127493.This does introduce new `TypeErrCtxt.*Ext` traits, but those will be deleted soon. Splitting this work into bite-sized pieces is the only way that it's gonna be feasible to both author and review ❤️r? lcnr
bors added a commit to rust-lang-ci/rust that referenced this pull requestJul 9, 2024
…iaskrgrRollup of 8 pull requestsSuccessful merges: -rust-lang#127091 (impl FusedIterator and a size hint for the error sources iter) -rust-lang#127358 (Automatically taint when reporting errors from ItemCtxt) -rust-lang#127484 (`#[doc(alias)]`'s doc: say that ASCII spaces are allowed) -rust-lang#127495 (More trait error reworking) -rust-lang#127496 (Update `f16`/`f128` FIXMEs that needed `(NEG_)INFINITY`) -rust-lang#127508 (small search graph refactor) -rust-lang#127521 (Remove spastorino from SMIR) -rust-lang#127532 (documentation: update cmake version)r? `@ghost``@rustbot` modify labels: rollup
@bors
Copy link
Collaborator

⌛ Testing commitbbbff80 with merge956deab...

@bors
Copy link
Collaborator

☀️ Test successful -checks-actions
Approved by: lcnr
Pushing956deab to master...

@borsbors added the merged-by-borsThis PR was explicitly merged by bors. labelJul 10, 2024
@borsbors merged commit956deab intorust-lang:masterJul 10, 2024
@rustbotrustbot added this to the1.81.0 milestoneJul 10, 2024
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (956deab):comparison URL.

Overall result: no relevant changes - no action needed

@rustbot label: -perf-regression

Instruction count

This benchmark run did not return any relevant results for this metric.

Max RSS (memory usage)

This benchmark run did not return any relevant results for this metric.

Cycles

Results (secondary 2.3%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

meanrangecount
Regressions ❌
(primary)
--0
Regressions ❌
(secondary)
2.3%[2.3%, 2.3%]1
Improvements ✅
(primary)
--0
Improvements ✅
(secondary)
--0
All ❌✅ (primary)--0

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 704.936s -> 702.638s (-0.33%)
Artifact size: 328.63 MiB -> 328.68 MiB (0.02%)

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@lcnrlcnrlcnr left review comments

Assignees

@lcnrlcnr

Labels

merged-by-borsThis PR was explicitly merged by bors.S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.WG-trait-system-refactorThe Rustc Trait System Refactor Initiative (-Znext-solver)

Projects

None yet

Milestone

1.81.0

Development

Successfully merging this pull request may close these issues.

6 participants

@compiler-errors@rust-log-analyzer@rustbot@bors@rust-timer@lcnr

[8]ページ先頭

©2009-2025 Movatter.jp