Remove some return-type diagnostic booleans from FnCtxt#103866
Merged
bors merged 1 commit intorust-lang:masterfrom Nov 5, 2022
Merged
Remove some return-type diagnostic booleans from FnCtxt#103866bors merged 1 commit intorust-lang:masterfrom
FnCtxt#103866bors merged 1 commit intorust-lang:masterfrom
Conversation
Collaborator
|
r? @fee1-dead (rustbot has picked a reviewer for you, use r? to override) |
fee1-dead
reviewed
Nov 2, 2022
| // note in this case, since it would be incorrect. | ||
| && !fcx.return_type_pre_known | ||
| && let Some(fn_sig) = fcx.body_fn_sig() | ||
| && fn_sig.output().is_ty_var() |
Member
There was a problem hiding this comment.
Shouldn't this be is_ty_infer?
Contributor
Author
There was a problem hiding this comment.
Doesn't really matter since users can't write numeric infer vars.
Member
|
@bors r+ |
This comment was marked as resolved.
This comment was marked as resolved.
Collaborator
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Nov 5, 2022
Rollup of 6 pull requests Successful merges: - rust-lang#103621 (Correctly resolve Inherent Associated Types) - rust-lang#103660 (improve `filesearch::get_or_default_sysroot`) - rust-lang#103866 (Remove some return-type diagnostic booleans from `FnCtxt`) - rust-lang#103867 (Remove `has_errors` from `FnCtxt`) - rust-lang#103994 (Specify that `break` cannot be used outside of loop *or* labeled block) - rust-lang#103995 (Small round of typo fixes) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Aaron1011
pushed a commit
to Aaron1011/rust
that referenced
this pull request
Jan 6, 2023
…, r=fee1-dead Remove some return-type diagnostic booleans from `FnCtxt` These can be calculated on-demand
Aaron1011
pushed a commit
to Aaron1011/rust
that referenced
this pull request
Jan 6, 2023
Rollup of 6 pull requests Successful merges: - rust-lang#103621 (Correctly resolve Inherent Associated Types) - rust-lang#103660 (improve `filesearch::get_or_default_sysroot`) - rust-lang#103866 (Remove some return-type diagnostic booleans from `FnCtxt`) - rust-lang#103867 (Remove `has_errors` from `FnCtxt`) - rust-lang#103994 (Specify that `break` cannot be used outside of loop *or* labeled block) - rust-lang#103995 (Small round of typo fixes) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
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
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.
These can be calculated on-demand