Skip to content

make check was failing with PLEASE_BENCH=1 #14368

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

Merged
merged 1 commit into from
May 23, 2014
Merged

Conversation

tedhorst
Copy link
Contributor

No description provided.

@tedhorst
Copy link
Contributor Author

It is a hash on a struct that used to have a ~str in it. The ~str was removed from the struct, so the hard coded hash value in the bench was now wrong. Wasn't caught in testing because the benches are no longer run.

@alexcrichton
Copy link
Member

This looks like it's a hash on a struct with a u8 and a u64, where is the ~str/StrBuf you're referring to?

@tedhorst
Copy link
Contributor Author

It was removed in commit 806ae06683b9. Perhaps I should put it back in as a StrBuf rather than adjusting the hash value.

@sfackler
Copy link
Member

IMO we should just remove the assert entirely and feed the output to black_box to prevent it from being optimized out.

@bors bors closed this May 23, 2014
@bors bors merged commit 2571d42 into rust-lang:master May 23, 2014
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 5, 2023
MIR episode 3

This PR adds lowering for try operator and overloaded dereference, and adds evaluating support for function pointers and trait objects. It also adds a flag to `analysis-stats` to show percentage of functions that it fails to emit mir for them, which is currently `20%` (which is somehow lying, as most of the supported `80%` are tests). The most offenders are closure (1975 items) and overloaded index (415 items). I will try to add overloaded index before monday to have it in this PR, and tackle the closure in the next episode.
flip1995 pushed a commit to flip1995/rust that referenced this pull request Apr 3, 2025
…e decompose directly (rust-lang#14370)

Closes rust-lang#11617
Closes rust-lang#14368

Clippy gives wrong suggestions when the filter and then cannot be put
into closure directly. Since trying to transform these can be too
complicated, Clippy will simply warn but don't try to fix.

changelog: [`filter_map_bool_then`]: fix wrong suggestions when the
closure cannot be decompose directly
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.

5 participants