Skip to content

Conversation

@alexcrichton
Copy link
Member

Turns out that we only want to install the target rlibs, not the host rlibs.
I had it backwards the first time, then mixed up the second time, but this time
should get it right.

There's no need for host rlib files because none of them are needed at runtime.

Turns out that we only want to install the target rlibs, not the host rlibs.
I had it backwards the first time, then mixed up the second time, but this time
should get it right.

There's no need for host rlib files because none of them are needed at runtime.
@huonw
Copy link
Contributor

huonw commented Dec 1, 2013

I assume you've checked that this works locally?

@spencerdeinum
Copy link

I was trying to install rust from master today, kept getting strange errors.

Applying this to my mk/install.mk file fixed my issues.

@alexcrichton
Copy link
Member Author

Yes, I checked this locally.

bors added a commit that referenced this pull request Dec 1, 2013
Turns out that we only want to install the target rlibs, not the host rlibs.
I had it backwards the first time, then mixed up the second time, but this time
should get it right.

There's no need for host rlib files because none of them are needed at runtime.
@bors bors closed this Dec 2, 2013
@bors bors merged commit c6e934f into rust-lang:master Dec 2, 2013
@alexcrichton alexcrichton deleted the fix-make-install branch December 4, 2013 01:43
flip1995 pushed a commit to flip1995/rust that referenced this pull request May 20, 2023
redundant_pattern_matching

This PR try to solve this issue rust-lang/rust-clippy#10726,
but it enter in conflict with another test.

changelog: none

Try to test this:
```
let _w = match x {
     Some(_) => true,
     _ => false,
};
```

this happen:
```
 error: match expression looks like `matches!` macro
   --> $DIR/match_expr_like_matches_macro.rs:21:14
    |
 LL |       let _w = match x {
    |  ______________^
 LL | |         Some(_) => true,
 LL | |         _ => false,
 LL | |     };
    | |_____^ help: try this: `matches!(x, Some(_))`

+error: redundant pattern matching, consider using `is_some()`
+  --> $DIR/match_expr_like_matches_macro.rs:21:14
+   |
+LL |       let _w = match x {
+   |  ______________^
+LL | |         Some(_) => true,
+LL | |         _ => false,
+LL | |     };
+   | |_____^ help: try this: `x.is_some()`
+   |
+   = note: `-D clippy::redundant-pattern-matching` implied by `-D warnings`
+
```
I need some help to fix this. Thanks
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.

4 participants