forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#103225 - matthiaskrgr:rollup-1zkv87y, r=matth…
…iaskrgr Rollup of 4 pull requests Successful merges: - rust-lang#103166 (Optimize `slice_iter.copied().next_chunk()`) - rust-lang#103176 (Fix `TyKind::is_simple_path`) - rust-lang#103178 (Partially fix `src/test/run-make/coverage-reports` when cross-compiling) - rust-lang#103198 (Update cargo) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
10 changed files
with
157 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
# needs-profiler-support | ||
# ignore-windows-gnu | ||
|
||
# FIXME(pietroalbini): this test currently does not work on cross-compiled | ||
# targets because remote-test is not capable of sending back the *.profraw | ||
# files generated by the LLVM instrumentation. | ||
# ignore-cross-compile | ||
|
||
# Rust coverage maps support LLVM Coverage Mapping Format versions 5 and 6, | ||
# corresponding with LLVM versions 12 and 13, respectively. | ||
# When upgrading LLVM versions, consider whether to enforce a minimum LLVM | ||
|
@@ -81,13 +86,13 @@ include clear_expected_if_blessed | |
# Compile the test library with coverage instrumentation | ||
$(RUSTC) $(SOURCEDIR)/lib/$@.rs \ | ||
$$( sed -n 's/^\/\/ compile-flags: \([^#]*\).*/\1/p' $(SOURCEDIR)/lib/[email protected] ) \ | ||
--crate-type rlib -Cinstrument-coverage | ||
--crate-type rlib -Cinstrument-coverage --target $(TARGET) | ||
|
||
%: $(SOURCEDIR)/%.rs | ||
# Compile the test program with coverage instrumentation | ||
$(RUSTC) $(SOURCEDIR)/$@.rs \ | ||
$$( sed -n 's/^\/\/ compile-flags: \([^#]*\).*/\1/p' $(SOURCEDIR)/[email protected] ) \ | ||
-L "$(TMPDIR)" -Cinstrument-coverage | ||
-L "$(TMPDIR)" -Cinstrument-coverage --target $(TARGET) | ||
|
||
# Run it in order to generate some profiling data, | ||
# with `LLVM_PROFILE_FILE=<profdata_file>` environment variable set to | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// check-fail | ||
|
||
#[derive(PartialEq, Eq)] | ||
pub enum Value { | ||
Boolean(Option<bool>), | ||
Float(Option<f64>), //~ ERROR the trait bound `f64: Eq` is not satisfied | ||
} | ||
|
||
fn main() { | ||
let a = Value::Float(Some(f64::NAN)); | ||
assert!(a == a); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
error[E0277]: the trait bound `f64: Eq` is not satisfied | ||
--> $DIR/issue-103157.rs:6:11 | ||
| | ||
LL | #[derive(PartialEq, Eq)] | ||
| -- in this derive macro expansion | ||
... | ||
LL | Float(Option<f64>), | ||
| ^^^^^^^^^^^ the trait `Eq` is not implemented for `f64` | ||
| | ||
= help: the following other types implement trait `Eq`: | ||
i128 | ||
i16 | ||
i32 | ||
i64 | ||
i8 | ||
isize | ||
u128 | ||
u16 | ||
and 4 others | ||
= note: required for `Option<f64>` to implement `Eq` | ||
note: required by a bound in `AssertParamIsEq` | ||
--> $SRC_DIR/core/src/cmp.rs:LL:COL | ||
| | ||
LL | pub struct AssertParamIsEq<T: Eq + ?Sized> { | ||
| ^^ required by this bound in `AssertParamIsEq` | ||
= note: this error originates in the derive macro `Eq` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0277`. |
Submodule cargo
updated
22 files