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

Fix for Rustpkg Opt Settings #10526

Merged
merged 1 commit into from
Nov 18, 2013
Merged

Fix for Rustpkg Opt Settings #10526

merged 1 commit into from
Nov 18, 2013

Conversation

itdaniher
Copy link
Contributor

This commit fixes issue #10468.

It propagate optimization level from PkgSrc to compile_crate as a rustc::driver::session::OptLevel enum.

The 'opt' argument to compile_crate was previously hardcoded as boolean false, such that calls to session::options would always result in the session::No flag being used.

@alexcrichton
Copy link
Member

Can you add a test for this as well? It seems like a fairly important thing that we don't want to regress on. The easiest test would probably be to check that an optimized output is smaller than a non-optimized output.

@pcwalton
Copy link
Contributor

I'm going to just r+ this because this is too critical.

bors added a commit that referenced this pull request Nov 18, 2013
This commit fixes issue #10468.

It propagate optimization level from PkgSrc to compile_crate as a rustc::driver::session::OptLevel enum.

The 'opt' argument to compile_crate was previously hardcoded as boolean false, such that calls to session::options would always result in the session::No flag being used.
@bors bors closed this Nov 18, 2013
@bors bors merged commit b60b411 into rust-lang:master Nov 18, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Mar 24, 2023
Really dogfood clippy

The dogfood success condition was inverted in `tests/dogfood.rs`:

```rust
  assert!(!failed_packages.is_empty(), …);
```

while instead the `failed_packages` collection must be empty:

```rust
  assert!(failed_packages.is_empty(), …);
```

And indeed, several clippy lint source files were not clean and had to be fixed in the process.

changelog: none
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.

None yet

4 participants