-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Forbid check-pass/build-pass/run-pass directives in incremental tests
#155589
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
Changes from all commits
793c646
0ea8958
edbb862
87ec57f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,29 +2,28 @@ | |
| // crate. This should not cause anything we use to be invalidated. | ||
| // Regression test for #36168. | ||
|
|
||
| //@ revisions: bfail1 bfail2 | ||
| //@ revisions: bpass1 bpass2 | ||
| //@ compile-flags: -Z query-dep-graph | ||
| //@ aux-build:point.rs | ||
| //@ build-pass | ||
|
Comment on lines
-5
to
-8
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Question: I was staring at this for like a good minute trying to understand why this previously worked... This is because the previous revision names are just misleading, right?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, that was one of the big confusions that prompted me to go down the path of trying to clean this stuff up. For whatever reason, it used to be the case that |
||
| //@ ignore-backends: gcc | ||
|
|
||
| #![feature(rustc_attrs)] | ||
| #![allow(dead_code)] | ||
| #![crate_type = "rlib"] | ||
|
|
||
| #![rustc_partition_reused(module="struct_point-fn_calls_methods_in_same_impl", cfg="bfail2")] | ||
| #![rustc_partition_reused(module="struct_point-fn_calls_free_fn", cfg="bfail2")] | ||
| #![rustc_partition_reused(module="struct_point-fn_read_field", cfg="bfail2")] | ||
| #![rustc_partition_reused(module="struct_point-fn_write_field", cfg="bfail2")] | ||
| #![rustc_partition_reused(module="struct_point-fn_make_struct", cfg="bfail2")] | ||
| #![rustc_partition_reused(module="struct_point-fn_calls_methods_in_same_impl", cfg="bpass2")] | ||
| #![rustc_partition_reused(module="struct_point-fn_calls_free_fn", cfg="bpass2")] | ||
| #![rustc_partition_reused(module="struct_point-fn_read_field", cfg="bpass2")] | ||
| #![rustc_partition_reused(module="struct_point-fn_write_field", cfg="bpass2")] | ||
| #![rustc_partition_reused(module="struct_point-fn_make_struct", cfg="bpass2")] | ||
|
|
||
| extern crate point; | ||
|
|
||
| /// A fn item that calls (public) methods on `Point` from the same impl | ||
| pub mod fn_calls_methods_in_same_impl { | ||
| use point::Point; | ||
|
|
||
| #[rustc_clean(cfg="bfail2")] | ||
| #[rustc_clean(cfg="bpass2")] | ||
| pub fn check() { | ||
| let x = Point { x: 2.0, y: 2.0 }; | ||
| x.distance_from_origin(); | ||
|
|
@@ -35,7 +34,7 @@ pub mod fn_calls_methods_in_same_impl { | |
| pub mod fn_calls_free_fn { | ||
| use point::{self, Point}; | ||
|
|
||
| #[rustc_clean(cfg="bfail2")] | ||
| #[rustc_clean(cfg="bpass2")] | ||
| pub fn check() { | ||
| let x = Point { x: 2.0, y: 2.0 }; | ||
| point::distance_squared(&x); | ||
|
|
@@ -46,7 +45,7 @@ pub mod fn_calls_free_fn { | |
| pub mod fn_make_struct { | ||
| use point::Point; | ||
|
|
||
| #[rustc_clean(cfg="bfail2")] | ||
| #[rustc_clean(cfg="bpass2")] | ||
| pub fn make_origin() -> Point { | ||
| Point { x: 2.0, y: 2.0 } | ||
| } | ||
|
|
@@ -56,7 +55,7 @@ pub mod fn_make_struct { | |
| pub mod fn_read_field { | ||
| use point::Point; | ||
|
|
||
| #[rustc_clean(cfg="bfail2")] | ||
| #[rustc_clean(cfg="bpass2")] | ||
| pub fn get_x(p: Point) -> f32 { | ||
| p.x | ||
| } | ||
|
|
@@ -66,7 +65,7 @@ pub mod fn_read_field { | |
| pub mod fn_write_field { | ||
| use point::Point; | ||
|
|
||
| #[rustc_clean(cfg="bfail2")] | ||
| #[rustc_clean(cfg="bpass2")] | ||
| pub fn inc_x(p: &mut Point) { | ||
| p.x += 1.0; | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.