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

Windows installer doesn't remove old installation #9563

Closed
cnd opened this issue Sep 27, 2013 · 7 comments
Closed

Windows installer doesn't remove old installation #9563

cnd opened this issue Sep 27, 2013 · 7 comments
Labels
O-windows Operating system: Windows P-medium Medium priority
Milestone

Comments

@cnd
Copy link
Contributor

cnd commented Sep 27, 2013

rts.rs:1:0: 1:0 error: multiple matching crates for `std`
rts.rs:1 fn main() {
         ^
note: candidates:
note: path: D:\Program Files\Rust\bin\rustc\i686-pc-mingw32\bin\std-6c65cf4b443341b1-0.7.dll
note: meta: name = "std"
note: meta: vers = "0.7"
note: meta: uuid = "c70c24a7-5551-4f73-8e37-380b11d80be8"
note: meta: url = "https://github.com/mozilla/rust/tree/master/src/libstd"
note: path: D:\Program Files\Rust\bin\rustc\i686-pc-mingw32\bin\std-6c65cf4b443341b1-0.8.dll
note: meta: name = "std"
note: meta: vers = "0.8"
note: meta: uuid = "c70c24a7-5551-4f73-8e37-380b11d80be8"
note: meta: url = "https://github.com/mozilla/rust/tree/master/src/libstd"
@huonw
Copy link
Member

huonw commented Mar 2, 2014

Triage: I can't test this at all.

cc @brson.

@brson
Copy link
Contributor

brson commented Mar 22, 2014

Ew, this is bad. Nominating.

@pnkfelix
Copy link
Member

pnkfelix commented Apr 3, 2014

Marking as 1.0 milestone, P-high.

@pnkfelix pnkfelix added this to the 1.0 milestone Apr 3, 2014
@klutzy
Copy link
Contributor

klutzy commented Apr 9, 2014

Same for nightly installers.

@BrianOtto
Copy link

I am running into this problem too. I use Windows 7 and had Rust 0.10 installed. I recently downloaded the latest Windows Installer so that I could take advantage of a recent bug fix, and it ended up installing the 0.11-pre libraries, without removing the older 0.10 ones. This has broken some previously working code with random numbers ...

test.rs:1:1: 1:19 error: multiple matching crates for `rand`
test.rs:1 extern crate rand;
          ^~~~~~~~~~~~~~~~~~
note: candidates:
note: path: C:\Rust\bin\rustlib\i686-pc-mingw32\lib\rand-dd29dab1-0.11-pre.dll
note: path: C:\Rust\bin\rustlib\i686-pc-mingw32\lib\librand-dd29dab1-0.11-pre.rlib
note: crate_id: rand#0.11-pre
note: path: C:\Rust\bin\rustlib\i686-pc-mingw32\lib\rand-15245696-0.10.dll
note: path: C:\Rust\bin\rustlib\i686-pc-mingw32\lib\librand-15245696-0.10.rlib
note: crate_id: rand#0.10

Deleting my Rust installation and re-installing fixes the problem, but it would be nice if I didn't have to do this every time I download the latest installer. Thanks!

@brson
Copy link
Contributor

brson commented Apr 12, 2014

I've started on this. Should have a fix soon.

brson added a commit to brson/rust that referenced this issue Apr 15, 2014
This will remove existing files before installing new ones. Note
that I took some code with no license from stackoverflow, as
indicated in comments.
alexcrichton added a commit to alexcrichton/rust that referenced this issue Apr 16, 2014
Closes rust-lang#13546 (workcache: Don't assume gcc exists on all platforms)
Closes rust-lang#13545 (std: Remove pub use globs)
Closes rust-lang#13530 (test: Un-ignore smallest-hello-world.rs)
Closes rust-lang#13529 (std: Un-ignore some float tests on windows)
Closes rust-lang#13528 (green: Add a helper macro for booting libgreen)
Closes rust-lang#13526 (Remove RUST_LOG="::help" from the docs)
Closes rust-lang#13524 (dist: Make Windows installer uninstall first. Closes rust-lang#9563)
Closes rust-lang#13521 (Change AUTHORS section in the man pages)
Closes rust-lang#13519 (Update GitHub's Rust projects page.)
Closes rust-lang#13518 (mk: Change windows to install from stage2)
Closes rust-lang#13516 (liburl doc: insert missing hyphen)
Closes rust-lang#13514 (rustdoc: Better sorting criteria for searching.)
Closes rust-lang#13512 (native: Fix a race in select())
Closes rust-lang#13506 (Use the unsigned integer types for bitwise intrinsics.)
Closes rust-lang#13502 (Add a default impl for Set::is_superset)
alexcrichton added a commit to alexcrichton/rust that referenced this issue Apr 16, 2014
Closes rust-lang#13546 (workcache: Don't assume gcc exists on all platforms)
Closes rust-lang#13545 (std: Remove pub use globs)
Closes rust-lang#13530 (test: Un-ignore smallest-hello-world.rs)
Closes rust-lang#13529 (std: Un-ignore some float tests on windows)
Closes rust-lang#13528 (green: Add a helper macro for booting libgreen)
Closes rust-lang#13526 (Remove RUST_LOG="::help" from the docs)
Closes rust-lang#13524 (dist: Make Windows installer uninstall first. Closes rust-lang#9563)
Closes rust-lang#13521 (Change AUTHORS section in the man pages)
Closes rust-lang#13519 (Update GitHub's Rust projects page.)
Closes rust-lang#13518 (mk: Change windows to install from stage2)
Closes rust-lang#13516 (liburl doc: insert missing hyphen)
Closes rust-lang#13514 (rustdoc: Better sorting criteria for searching.)
Closes rust-lang#13512 (native: Fix a race in select())
Closes rust-lang#13506 (Use the unsigned integer types for bitwise intrinsics.)
Closes rust-lang#13502 (Add a default impl for Set::is_superset)
@brson brson closed this as completed in 8f3c2a6 Apr 16, 2014
@BrianOtto
Copy link

Awesome, thank you!

flip1995 pushed a commit to flip1995/rust that referenced this issue Oct 6, 2022
[`unnecessary_cast`] add parenthesis when negative number uses a method

fix rust-lang#9563

The issue was probably introduced by 90fe3be

changelog: [`unnecessary_cast`] add parenthesis when negative number uses a method

r? llogiq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-windows Operating system: Windows P-medium Medium priority
Projects
None yet
Development

No branches or pull requests

6 participants