Skip to content

Conversation

luqmana
Copy link
Contributor

@luqmana luqmana commented Jun 7, 2014

Fixes #12755.

r? @nikomatsakis

@nrc
Copy link
Member

nrc commented Jun 8, 2014

\o/ I was just about to do this for DST too

Copy link
Member

Choose a reason for hiding this comment

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

Where there is an expected type, you probably want to write that instead of the actual type for the block.

I think you also need to use a coercion rather than a subtype check when checking ExprRet and the tail expr in check_fn

@luqmana
Copy link
Contributor Author

luqmana commented Jun 9, 2014

This needs a bit more work so I'll just close it for now.

@luqmana luqmana closed this Jun 9, 2014
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 5, 2023
internal: Forbid canonicalization of paths and normalize all rust-project.json paths

Closes rust-lang/rust-analyzer#14728
cc rust-lang/rust-analyzer#14430

- Removes canonicalization (and forbids it from being used in a sense, clippy could help here again with its lint in the future)
- Normalizes all paths in rust-project.json which we weren't doing in some cases
flip1995 pushed a commit to flip1995/rust that referenced this pull request May 31, 2025
…ust-lang#14735)

Closes rust-lang/rust-clippy#14734

changelog: [`needless_for_each`] wrong suggestions when closure has no
braces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Apply coercion rules on return expressions

2 participants