Skip to content
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

Improve error message about regions of function body #33212

Merged
merged 1 commit into from
Apr 28, 2016

Conversation

bombless
Copy link
Contributor

"scope of parameters for functions" is harder for me to read than "scope of function body", I hope others feel the same, as in https://play.rust-lang.org/?gist=b4df68b395b807698bd2ba98cf3d5ce3&version=stable&backtrace=0&run=1
Thank @Aatch for the help :)

@rust-highfive
Copy link
Collaborator

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@nikomatsakis
Copy link
Contributor

Hmm. So the new wording is less precise -- the precise set of scopes is quite fine-grained at this point, and there is a separate scope for the "fn body" (i.e., the block itself) -- but honestly I suspect it's just fine. I'd like to overhaul this whole scheme, but this seems like an improvement.

@nikomatsakis
Copy link
Contributor

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Apr 27, 2016

📌 Commit 9348618 has been approved by nikomatsakis

Manishearth added a commit to Manishearth/rust that referenced this pull request Apr 27, 2016
…nikomatsakis

Improve error message about regions of function body

"scope of parameters for functions" is harder for me to read than "scope of function body", I hope others feel the same, as in <https://play.rust-lang.org/?gist=b4df68b395b807698bd2ba98cf3d5ce3&version=stable&backtrace=0&run=1>
 Thank @Aatch for the help :)
bors added a commit that referenced this pull request Apr 27, 2016
Rollup of 8 pull requests

- Successful merges: #32991, #33056, #33095, #33152, #33212, #33218, #33233, #33234
- Failed merges:
steveklabnik added a commit to steveklabnik/rust that referenced this pull request Apr 28, 2016
…nikomatsakis

Improve error message about regions of function body

"scope of parameters for functions" is harder for me to read than "scope of function body", I hope others feel the same, as in <https://play.rust-lang.org/?gist=b4df68b395b807698bd2ba98cf3d5ce3&version=stable&backtrace=0&run=1>
 Thank @Aatch for the help :)
bors added a commit that referenced this pull request Apr 28, 2016
Rollup of 7 pull requests

- Successful merges: #32991, #33056, #33095, #33152, #33212, #33218, #33234
- Failed merges: #32912
@bors bors merged commit 9348618 into rust-lang:master Apr 28, 2016
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.

None yet

4 participants