Skip to content

shell 'case' statement don't need 'break'#21643

Merged
bors merged 1 commit intorust-lang:masterfrom
semarie:break-local_stage0
Jan 29, 2015
Merged

shell 'case' statement don't need 'break'#21643
bors merged 1 commit intorust-lang:masterfrom
semarie:break-local_stage0

Conversation

@semarie
Copy link
Contributor

@semarie semarie commented Jan 26, 2015

the syntax of 'case' is:
case word in [[(] pattern [| pattern] ...) list ;; ] ... esac

case don't have to issue break. break is normally used to exit a
for, until or while loop.

src/etc/local_stage0.sh is used with configure --enable-local-rust, in order to copy local rust to stage0 directory.

Without this patch, warning message is issued (under openbsd at least): ..../src/etc/local_stage0.sh[38]: break: cannot break

As this patch corrects a part of the build process, I can't add a regression test.

the syntax of 'case' is:
`case word in [[(] pattern [| pattern] ...) list ;; ] ... esac`

`list` don't have to issue `break`. `break` is normally used to exit a
`for`, `until` or `while` loop.
@rust-highfive
Copy link
Contributor

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @pcwalton (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see CONTRIBUTING.md for more information.

@brson
Copy link
Contributor

brson commented Jan 26, 2015

@bors: r+ d553ed6 rollup

barosl added a commit to barosl/rust that referenced this pull request Jan 27, 2015
the syntax of 'case' is:
`case word in [[(] pattern [| pattern] ...) list ;; ] ... esac`

`case` don't have to issue `break`. `break` is normally used to exit a
`for`, `until` or `while` loop.

`src/etc/local_stage0.sh` is used with `configure --enable-local-rust`, in order to copy local rust to stage0 directory.

Without this patch, warning message is issued (under openbsd at least): `..../src/etc/local_stage0.sh[38]: break: cannot break`

As this patch corrects a part of the build process, I can't add a regression test.
@bors bors merged commit d553ed6 into rust-lang:master Jan 29, 2015
@semarie semarie deleted the break-local_stage0 branch February 7, 2015 08:16
lnicola added a commit to lnicola/rust that referenced this pull request Feb 16, 2026
…-generate-impl-to-use-astnodeedit

migrate generate_impl assist to use AstNodeEdit
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.

5 participants