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

Language FAQ is out of date #2968

Closed
catamorphism opened this issue Jul 20, 2012 · 2 comments
Closed

Language FAQ is out of date #2968

catamorphism opened this issue Jul 20, 2012 · 2 comments
Labels
C-cleanup Category: PRs that clean code up or issues documenting cleanup. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Comments

@catamorphism
Copy link
Contributor

I just removed an obsolete reference to typestate from https://github.com/mozilla/rust/wiki/Doc-language-FAQ

but the FAQ could probably use a thorough review at this point. (I think the code example won't work with 0.3 syntax; also, no mentions of regions / borrowed pointers. Just to name a few things.)

@dbp
Copy link
Contributor

dbp commented Jul 27, 2012

Regarding the code example: the function it originally copied has grown somewhat, so what about using this (from current master)?

fn install_package(c: cargo, src: ~str, wd: ~str, pkg: package) {
    let url = copy pkg.url;
    let method = alt pkg.method {
        ~"git" { ~"git" }
        ~"file" { ~"file" }
        _ { ~"curl" }
    };

    info(#fmt["installing %s/%s via %s...", src, pkg.name, method]);

    alt method {
        ~"git" { install_git(c, wd, url, copy pkg.ref); }
        ~"file" { install_file(c, wd, url); }
        ~"curl" { install_curl(c, wd, copy url); }
        _ {}
    }
}

@metajack
Copy link
Contributor

It was updated by #3386 and I have just updated it again.

RalfJung pushed a commit to RalfJung/rust that referenced this issue Jul 8, 2023
C "memcpy" shim: ensure the pointers are valid

Also add tests for some other shims that already behave correctly

Fixes rust-lang/miri#2966
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
Dependency upgrade resulting from `cargo update`.

Co-authored-by: tautschnig <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-cleanup Category: PRs that clean code up or issues documenting cleanup. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Projects
None yet
Development

No branches or pull requests

3 participants