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

Allow disjunctive patterns in irrefutable let-bindings. (RFC) #2956

Closed
bblum opened this issue Jul 18, 2012 · 1 comment
Closed

Allow disjunctive patterns in irrefutable let-bindings. (RFC) #2956

bblum opened this issue Jul 18, 2012 · 1 comment
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR) A-grammar Area: The grammar of Rust

Comments

@bblum
Copy link
Contributor

bblum commented Jul 18, 2012

enum foo {
    a(bool,int),
    b(int)
}
fn foo_to_int(-foo: foo) -> int {
    let a(_,x) | b(x) <- foo;
    x
}
@bblum bblum mentioned this issue Aug 24, 2012
@catamorphism
Copy link
Contributor

Sorry, not seeing any enthusiasm for this!

RalfJung pushed a commit to RalfJung/rust that referenced this issue Feb 17, 2024
Switch over to rustc's `tracing` crate instead of using our own `log` crate

disadvantage: to turn on debug/trace logging, you need a rustc built with it
advantage: sharing our logging scheme with rustc, so our logs get nested correctly.
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) A-grammar Area: The grammar of Rust
Projects
None yet
Development

No branches or pull requests

2 participants