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

Parser rejects some uses of inner constraints #971

Closed
jruderman opened this issue Sep 24, 2011 · 2 comments
Closed

Parser rejects some uses of inner constraints #971

jruderman opened this issue Sep 24, 2011 · 2 comments
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR)

Comments

@jruderman
Copy link
Contributor

tag ordered_pair_list {
    cons({low: int, high: int} : lt(*.low, *.high), @ordered_pair_list);
    nil;
}
pure fn lt(x: int, y: int) -> bool { ret x < y; }
fn main() { }

Gives me

tmp.rs:2:52: 2:53 error: expecting (, found @
tmp.rs:2     cons({low: int, high: int} : lt(*.low, *.high), @ordered_pair_list);

But if I take out the ", @ordered_pair_list" part, the parser accepts it (and I hit #970 instead).

Are inner constraints valid?

@ghost ghost assigned catamorphism Sep 25, 2011
@catamorphism
Copy link
Contributor

This isn't implemented yet, but it should be implemented at some point.

@nikomatsakis
Copy link
Contributor

Not relevant as of commit 41a21f0, which removed current incarnation of typestate.

bjorn3 added a commit to bjorn3/rust that referenced this issue Dec 30, 2021
This allows executing it like cargo clif build if you add it to your
PATH. It also fixes infinite recursion on Windows when invoking it as
Windows includes the current directory in PATH by default.

Fixes rust-lang#971
ZuseZ4 pushed a commit to EnzymeAD/rust that referenced this issue Mar 7, 2023
coastalwhite pushed a commit to coastalwhite/rust that referenced this issue Aug 5, 2023
celinval added a commit to celinval/rust-dev that referenced this issue Jun 4, 2024

* Add harness to VecDeque CVE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR)
Projects
None yet
Development

No branches or pull requests

3 participants