-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Refactor inference #4398
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
Closed
Closed
Refactor inference #4398
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This switches over to using structs and send_maps for query string parsing.
For example, in let x: char = 42; This was an ICE and is now a proper type error, as per rust-lang#3477
Fix example in FFI tutorial.
Fix example in 13.3.
std: modernize net_url
update after/syntax/rust.vim for removal of <-
bump 0.5 => 0.6, redirect some URLs in docs.
update mandelbrot to pipes, a few other updates
Fix a bug in Result::unwrap_err (and minor cleanup)
Convert core::io to use explicit self (for issue rust-lang#4118 and issue rust-lang#2004)
… ty_err In general it would be good to suppress any messages involving types that have ty_err as a sub-component, but this works for now.
This reverts commit d771830.
That is, treat `self` as if it has dynamic scope. This seems to be harmless, and prevents an ICE as per rust-lang#3563
This reverts commit c662a9a.
This reverts commit 921393c.
…esult is ty_err" This reverts commit e45312e.
This'll be less confusing for anyone who works on match in future.
Rename identifiers that still use 'alt' to use 'match'
Ideally we would suppress error messages involving any types that contain ty_err, but that's awkward to do right now.
Necessary to allow supertrait methods to be called in default methods. r=nikomatsakis
eliminating use of deprecated features and more forwards compatible with fn reform.
- Make `extern fn()` assignable to any closure type, rather than a subtype. - Remove unused int_ty_set and float_ty_set - Refactor variable unification and make it more DRY - Do fn sub/lub/glb on the level of fn_sig - Rename infer::to_str::ToStr to infer::to_str::InferStr - Capitalize names of various types - Correct hashing of FnMeta
bors
pushed a commit
to rust-lang-ci/rust
that referenced
this pull request
May 15, 2021
RalfJung
added a commit
to RalfJung/rust
that referenced
this pull request
Jun 16, 2025
Automatic Rustup
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A collection of refactorings that I found it hard/tiresome to divide:
extern fn()
assignable to any closure type, rather than a subtype of the closure types.r? @pcwalton