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

Dogfood half_open_range_patterns #68859

Closed
wants to merge 1 commit into from

Conversation

Centril
Copy link
Contributor

@Centril Centril commented Feb 5, 2020

@Centril Centril added the F-half_open_range_patterns `#![feature(half_open_range_patterns)]` label Feb 5, 2020
@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 5, 2020
@oli-obk
Copy link
Contributor

oli-obk commented Feb 5, 2020

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Feb 5, 2020

📌 Commit b49f4e8 has been approved by oli-obk

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Feb 5, 2020
@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-7 of your PR failed (pretty log, raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
2020-02-05T10:23:07.1462564Z ========================== Starting Command Output ===========================
2020-02-05T10:23:07.1465137Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/d7b97bd8-8726-49f8-927b-56b8107ec0f2.sh
2020-02-05T10:23:07.1465310Z 
2020-02-05T10:23:07.1506916Z ##[section]Finishing: Disable git automatic line ending conversion
2020-02-05T10:23:07.1515299Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/68859/merge to s
2020-02-05T10:23:07.1517107Z Task         : Get sources
2020-02-05T10:23:07.1517150Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-02-05T10:23:07.1517245Z Version      : 1.0.0
2020-02-05T10:23:07.1517289Z Author       : Microsoft
---
2020-02-05T10:23:08.1484234Z ##[command]git remote add origin https://github.com/rust-lang/rust
2020-02-05T10:23:08.1495959Z ##[command]git config gc.auto 0
2020-02-05T10:23:08.1498628Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2020-02-05T10:23:08.1500789Z ##[command]git config --get-all http.proxy
2020-02-05T10:23:08.1508104Z ##[command]git -c http.extraheader="AUTHORIZATION: basic ***" fetch --force --tags --prune --progress --no-recurse-submodules --depth=2 origin +refs/heads/*:refs/remotes/origin/* +refs/pull/68859/merge:refs/remotes/pull/68859/merge

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@Centril
Copy link
Contributor Author

Centril commented Feb 5, 2020

Bummer. Looks like rustfmt isn't supporting it yet, so I'll need to use a ::skip for now.

@bors r-

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Feb 5, 2020
@oli-obk
Copy link
Contributor

oli-obk commented Feb 5, 2020

so I'll need to use a ::skip for now

I strongly prefer not to do that. 0 works just fine right now. Let's fix rustfmt instead.

@Centril
Copy link
Contributor Author

Centril commented Feb 5, 2020

Works for me; cc @topecongiro.

@Centril Centril added S-blocked Status: Blocked on something else such as an RFC or other implementation work. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Feb 5, 2020
@Mark-Simulacrum
Copy link
Member

To be honest, I find these much harder to read. Maybe I'm just not used to it yet, but it's entirely non obvious to me that we're omitting specifically a zero. It also seems largely useless as I can't really see a case where this is better (i.e. where the zero was in the way before).

I'm not sure what to do with this information. This feature was implemented without an RFC, as far as I can tell.

I think the fact that these ranges don't have iterator impls is part of it...

@Centril
Copy link
Contributor Author

Centril commented Feb 5, 2020

I'll close this for now then and you can consider what to do with the information. Personally, I think the feature adds a degree of consistency to patterns & expressions (and X.. is generally useful but ..X less so).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-half_open_range_patterns `#![feature(half_open_range_patterns)]` S-blocked Status: Blocked on something else such as an RFC or other implementation work.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants