Skip to content

Add detailed error message for E0265 #24894

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

Merged
merged 2 commits into from
Apr 30, 2015
Merged

Conversation

bguiz
Copy link
Contributor

@bguiz bguiz commented Apr 28, 2015

This error indicates that a constant references itself.
All constants need to resolve to a value in an acyclic manner.

For example, neither of the following can be sensibly compiled:

const X: u32 = X;
const X: u32 = Y;
const Y: u32 = X;

This error indicates that a constant references itself.
All constants need to resolve to a value in an acyclic manner.

For example, neither of the following can be sensibly compiled:

```
const X: u32 = X;
```

```
const X: u32 = Y;
const Y: u32 = X;
```
@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 @alexcrichton (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.

@bguiz
Copy link
Contributor Author

bguiz commented Apr 28, 2015

cc @michaelsproul @huonw

Ignore the branch name - the message is for E0265 not E0267

@bguiz
Copy link
Contributor Author

bguiz commented Apr 28, 2015

Parent issue: #24407

@alexcrichton
Copy link
Member

@bors: r+ 1335be3

Thanks!

@bguiz
Copy link
Contributor Author

bguiz commented Apr 28, 2015

@alexcrichton This is my first contribution to rustc, I assume that this means that it is getting merged?

@alexcrichton
Copy link
Member

@bguiz it does indeed! We've got a bot which tests each PR serially and then will merge into master once all the tests pass. You can see the current status of the queue here: http://buildbot.rust-lang.org/homu/queue/rust.

@Manishearth
Copy link
Member

cc @michaelsproul

@bguiz
Copy link
Contributor Author

bguiz commented Apr 29, 2015

@alexcrichton Ah Ok, thanks for the update!

W: http://bguiz.com

On 29 April 2015 at 11:34, Manish Goregaokar [email protected] wrote:

cc @michaelsproul


Reply to this email directly or view it on GitHub.

@bors
Copy link
Collaborator

bors commented Apr 29, 2015

⌛ Testing commit 1335be3 with merge c2bfb9c...

bors added a commit that referenced this pull request Apr 29, 2015
This error indicates that a constant references itself.
All constants need to resolve to a value in an acyclic manner.

For example, neither of the following can be sensibly compiled:

```
const X: u32 = X;
```

```
const X: u32 = Y;
const Y: u32 = X;
```
@bors
Copy link
Collaborator

bors commented Apr 29, 2015

⛄ The build was interrupted to prioritize another pull request.

@bors
Copy link
Collaborator

bors commented Apr 29, 2015

⌛ Testing commit 1335be3 with merge ed34760...

@bors
Copy link
Collaborator

bors commented Apr 29, 2015

⛄ The build was interrupted to prioritize another pull request.

@bors
Copy link
Collaborator

bors commented Apr 29, 2015

⌛ Testing commit 1335be3 with merge b1a621b...

@bors
Copy link
Collaborator

bors commented Apr 29, 2015

💔 Test failed - auto-mac-32-opt

@alexcrichton
Copy link
Member

@bors: retry

On Wed, Apr 29, 2015 at 7:52 AM, bors [email protected] wrote:

[image: 💔] Test failed - auto-mac-32-opt
http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/4755


Reply to this email directly or view it on GitHub
#24894 (comment).

@pnkfelix
Copy link
Member

@bors rollup

right? surely this qualifies

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Apr 29, 2015
This error indicates that a constant references itself.
All constants need to resolve to a value in an acyclic manner.

For example, neither of the following can be sensibly compiled:

```
const X: u32 = X;
```

```
const X: u32 = Y;
const Y: u32 = X;
```
@bguiz
Copy link
Contributor Author

bguiz commented Apr 29, 2015

The build failed, from the logs,
due to various errors in src/libcollections/ and other files which I have not touched in this patch,
and are completely unrelated.

Is it possible that someone else's commit was lumped together with mine?

@michaelsproul
Copy link
Contributor

@bguiz: I think it's just a random failure. The rebuild will most likely succeed.

@bguiz
Copy link
Contributor Author

bguiz commented Apr 30, 2015

@michaelsproul Looks like the build also timed out, and was killed after 1200 seconds

@bors bors merged commit 1335be3 into rust-lang:master Apr 30, 2015
@michaelsproul
Copy link
Contributor

Yay 🎈

@bguiz
Copy link
Contributor Author

bguiz commented Apr 30, 2015

Finally, took just under two days!

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.

7 participants