Skip to content
Permalink
Browse files

Update tests

  • Loading branch information...
Zoxc committed Mar 29, 2019
1 parent 0128844 commit 45580684825c1855a4be5a7b4cd28525b24e7322
Showing with 295 additions and 295 deletions.
  1. +2 −2 src/librustc_incremental/persist/dirty_clean.rs
  2. +5 −5 src/test/incremental/add_private_fn_at_krate_root_cc/struct_point.rs
  3. +2 −2 src/test/incremental/callee_caller_cross_crate/b.rs
  4. +7 −7 src/test/incremental/change_add_field/struct_point.rs
  5. +1 −1 src/test/incremental/change_crate_order/main.rs
  6. +5 −5 src/test/incremental/change_private_fn/struct_point.rs
  7. +5 −5 src/test/incremental/change_private_fn_cc/struct_point.rs
  8. +5 −5 src/test/incremental/change_private_impl_method/struct_point.rs
  9. +5 −5 src/test/incremental/change_private_impl_method_cc/struct_point.rs
  10. +5 −5 src/test/incremental/change_pub_inherent_method_body/struct_point.rs
  11. +5 −5 src/test/incremental/change_pub_inherent_method_sig/struct_point.rs
  12. +4 −4 src/test/incremental/dirty_clean.rs
  13. +5 −5 src/test/incremental/hashes/call_expressions.rs
  14. +4 −4 src/test/incremental/hashes/closure_expressions.rs
  15. +12 −12 src/test/incremental/hashes/enum_constructors.rs
  16. +2 −2 src/test/incremental/hashes/for_loops.rs
  17. +10 −10 src/test/incremental/hashes/function_interfaces.rs
  18. +5 −5 src/test/incremental/hashes/if_expressions.rs
  19. +30 −30 src/test/incremental/hashes/inherent_impls.rs
  20. +9 −9 src/test/incremental/hashes/let_expressions.rs
  21. +4 −4 src/test/incremental/hashes/loop_expressions.rs
  22. +9 −9 src/test/incremental/hashes/match_expressions.rs
  23. +7 −7 src/test/incremental/hashes/struct_constructors.rs
  24. +2 −2 src/test/incremental/hashes/unary_and_binary_exprs.rs
  25. +3 −3 src/test/incremental/hashes/while_let_loops.rs
  26. +1 −1 src/test/incremental/hashes/while_loops.rs
  27. +2 −2 src/test/incremental/hello_world.rs
  28. +2 −2 src/test/incremental/ich_method_call_trait_scope.rs
  29. +4 −4 src/test/incremental/rlib_cross_crate/b.rs
  30. +2 −2 src/test/incremental/string_constant.rs
  31. +3 −3 src/test/incremental/struct_add_field.rs
  32. +3 −3 src/test/incremental/struct_change_field_name.rs
  33. +3 −3 src/test/incremental/struct_change_field_type.rs
  34. +3 −3 src/test/incremental/struct_change_field_type_cross_crate/b.rs
  35. +3 −3 src/test/incremental/struct_change_nothing.rs
  36. +3 −3 src/test/incremental/struct_remove_field.rs
  37. +4 −4 src/test/incremental/type_alias_cross_crate/b.rs
  38. +1 −1 src/test/ui/dep-graph/dep-graph-assoc-type-codegen.rs
  39. +2 −2 src/test/ui/dep-graph/dep-graph-assoc-type-codegen.stderr
  40. +2 −2 src/test/ui/dep-graph/dep-graph-caller-callee.rs
  41. +5 −5 src/test/ui/dep-graph/dep-graph-caller-callee.stderr
  42. +15 −15 src/test/ui/dep-graph/dep-graph-struct-signature.rs
  43. +35 −35 src/test/ui/dep-graph/dep-graph-struct-signature.stderr
  44. +2 −2 src/test/ui/dep-graph/dep-graph-trait-impl-two-traits-same-method.rs
  45. +5 −5 src/test/ui/dep-graph/dep-graph-trait-impl-two-traits-same-method.stderr
  46. +2 −2 src/test/ui/dep-graph/dep-graph-trait-impl-two-traits.rs
  47. +6 −6 src/test/ui/dep-graph/dep-graph-trait-impl-two-traits.stderr
  48. +5 −5 src/test/ui/dep-graph/dep-graph-trait-impl.rs
  49. +11 −11 src/test/ui/dep-graph/dep-graph-trait-impl.stderr
  50. +5 −5 src/test/ui/dep-graph/dep-graph-type-alias.rs
  51. +10 −10 src/test/ui/dep-graph/dep-graph-type-alias.stderr
  52. +1 −1 src/test/ui/dep-graph/dep-graph-variance-alias.rs
  53. +2 −2 src/test/ui/dep-graph/dep-graph-variance-alias.stderr
@@ -3,9 +3,9 @@
//! we will compare the fingerprint from the current and from the previous
//! compilation session as appropriate:
//!
//! - `#[rustc_clean(cfg="rev2", except="TypeckTables")]` if we are
//! - `#[rustc_clean(cfg="rev2", except="typeck_tables_of")]` if we are
//! in `#[cfg(rev2)]`, then the fingerprints associated with
//! `DepNode::TypeckTables(X)` must be DIFFERENT (`X` is the `DefId` of the
//! `DepNode::typeck_tables_of(X)` must be DIFFERENT (`X` is the `DefId` of the
//! current node).
//! - `#[rustc_clean(cfg="rev2")]` same as above, except that the
//! fingerprints must be the SAME (along with all other fingerprints).
@@ -24,7 +24,7 @@ extern crate point;
pub mod fn_calls_methods_in_same_impl {
use point::Point;

#[rustc_clean(label="TypeckTables", cfg="cfail2")]
#[rustc_clean(label="typeck_tables_of", cfg="cfail2")]
pub fn check() {
let x = Point { x: 2.0, y: 2.0 };
x.distance_from_origin();
@@ -35,7 +35,7 @@ pub mod fn_calls_methods_in_same_impl {
pub mod fn_calls_free_fn {
use point::{self, Point};

#[rustc_clean(label="TypeckTables", cfg="cfail2")]
#[rustc_clean(label="typeck_tables_of", cfg="cfail2")]
pub fn check() {
let x = Point { x: 2.0, y: 2.0 };
point::distance_squared(&x);
@@ -46,7 +46,7 @@ pub mod fn_calls_free_fn {
pub mod fn_make_struct {
use point::Point;

#[rustc_clean(label="TypeckTables", cfg="cfail2")]
#[rustc_clean(label="typeck_tables_of", cfg="cfail2")]
pub fn make_origin() -> Point {
Point { x: 2.0, y: 2.0 }
}
@@ -56,7 +56,7 @@ pub mod fn_make_struct {
pub mod fn_read_field {
use point::Point;

#[rustc_clean(label="TypeckTables", cfg="cfail2")]
#[rustc_clean(label="typeck_tables_of", cfg="cfail2")]
pub fn get_x(p: Point) -> f32 {
p.x
}
@@ -66,7 +66,7 @@ pub mod fn_read_field {
pub mod fn_write_field {
use point::Point;

#[rustc_clean(label="TypeckTables", cfg="cfail2")]
#[rustc_clean(label="typeck_tables_of", cfg="cfail2")]
pub fn inc_x(p: &mut Point) {
p.x += 1.0;
}
@@ -6,12 +6,12 @@

extern crate a;

#[rustc_dirty(label="TypeckTables", cfg="rpass2")]
#[rustc_dirty(label="typeck_tables_of", cfg="rpass2")]
pub fn call_function0() {
a::function0(77);
}

#[rustc_clean(label="TypeckTables", cfg="rpass2")]
#[rustc_clean(label="typeck_tables_of", cfg="rpass2")]
pub fn call_function1() {
a::function1(77);
}
@@ -70,7 +70,7 @@ pub mod point {
pub mod fn_with_type_in_sig {
use point::Point;

#[rustc_dirty(label="TypeckTables", cfg="cfail2")]
#[rustc_dirty(label="typeck_tables_of", cfg="cfail2")]
pub fn boop(p: Option<&Point>) -> f32 {
p.map(|p| p.total()).unwrap_or(0.0)
}
@@ -86,7 +86,7 @@ pub mod fn_with_type_in_sig {
pub mod call_fn_with_type_in_sig {
use fn_with_type_in_sig;

#[rustc_dirty(label="TypeckTables", cfg="cfail2")]
#[rustc_dirty(label="typeck_tables_of", cfg="cfail2")]
pub fn bip() -> f32 {
fn_with_type_in_sig::boop(None)
}
@@ -102,7 +102,7 @@ pub mod call_fn_with_type_in_sig {
pub mod fn_with_type_in_body {
use point::Point;

#[rustc_dirty(label="TypeckTables", cfg="cfail2")]
#[rustc_dirty(label="typeck_tables_of", cfg="cfail2")]
pub fn boop() -> f32 {
Point::origin().total()
}
@@ -115,7 +115,7 @@ pub mod fn_with_type_in_body {
pub mod call_fn_with_type_in_body {
use fn_with_type_in_body;

#[rustc_clean(label="TypeckTables", cfg="cfail2")]
#[rustc_clean(label="typeck_tables_of", cfg="cfail2")]
pub fn bip() -> f32 {
fn_with_type_in_body::boop()
}
@@ -125,7 +125,7 @@ pub mod call_fn_with_type_in_body {
pub mod fn_make_struct {
use point::Point;

#[rustc_dirty(label="TypeckTables", cfg="cfail2")]
#[rustc_dirty(label="typeck_tables_of", cfg="cfail2")]
pub fn make_origin(p: Point) -> Point {
Point { ..p }
}
@@ -135,7 +135,7 @@ pub mod fn_make_struct {
pub mod fn_read_field {
use point::Point;

#[rustc_dirty(label="TypeckTables", cfg="cfail2")]
#[rustc_dirty(label="typeck_tables_of", cfg="cfail2")]
pub fn get_x(p: Point) -> f32 {
p.x
}
@@ -145,7 +145,7 @@ pub mod fn_read_field {
pub mod fn_write_field {
use point::Point;

#[rustc_dirty(label="TypeckTables", cfg="cfail2")]
#[rustc_dirty(label="typeck_tables_of", cfg="cfail2")]
pub fn inc_x(p: &mut Point) {
p.x += 1.0;
}
@@ -18,7 +18,7 @@ extern crate a;
use a::A;
use b::B;

//? #[rustc_clean(label="TypeckTables", cfg="rpass2")]
//? #[rustc_clean(label="typeck_tables_of", cfg="rpass2")]
pub fn main() {
A + B;
}
@@ -51,7 +51,7 @@ pub mod point {
pub mod fn_calls_methods_in_same_impl {
use point::Point;

#[rustc_clean(label="TypeckTables", cfg="cfail2")]
#[rustc_clean(label="typeck_tables_of", cfg="cfail2")]
pub fn check() {
let x = Point { x: 2.0, y: 2.0 };
x.distance_from_origin();
@@ -62,7 +62,7 @@ pub mod fn_calls_methods_in_same_impl {
pub mod fn_calls_methods_in_another_impl {
use point::Point;

#[rustc_clean(label="TypeckTables", cfg="cfail2")]
#[rustc_clean(label="typeck_tables_of", cfg="cfail2")]
pub fn check() {
let mut x = Point { x: 2.0, y: 2.0 };
x.translate(3.0, 3.0);
@@ -73,7 +73,7 @@ pub mod fn_calls_methods_in_another_impl {
pub mod fn_make_struct {
use point::Point;

#[rustc_clean(label="TypeckTables", cfg="cfail2")]
#[rustc_clean(label="typeck_tables_of", cfg="cfail2")]
pub fn make_origin() -> Point {
Point { x: 2.0, y: 2.0 }
}
@@ -83,7 +83,7 @@ pub mod fn_make_struct {
pub mod fn_read_field {
use point::Point;

#[rustc_clean(label="TypeckTables", cfg="cfail2")]
#[rustc_clean(label="typeck_tables_of", cfg="cfail2")]
pub fn get_x(p: Point) -> f32 {
p.x
}
@@ -93,7 +93,7 @@ pub mod fn_read_field {
pub mod fn_write_field {
use point::Point;

#[rustc_clean(label="TypeckTables", cfg="cfail2")]
#[rustc_clean(label="typeck_tables_of", cfg="cfail2")]
pub fn inc_x(p: &mut Point) {
p.x += 1.0;
}
@@ -23,7 +23,7 @@ extern crate point;
pub mod fn_calls_methods_in_same_impl {
use point::Point;

#[rustc_clean(label="TypeckTables", cfg="cfail2")]
#[rustc_clean(label="typeck_tables_of", cfg="cfail2")]
pub fn check() {
let x = Point { x: 2.0, y: 2.0 };
x.distance_from_origin();
@@ -34,7 +34,7 @@ pub mod fn_calls_methods_in_same_impl {
pub mod fn_calls_methods_in_another_impl {
use point::Point;

#[rustc_clean(label="TypeckTables", cfg="cfail2")]
#[rustc_clean(label="typeck_tables_of", cfg="cfail2")]
pub fn check() {
let mut x = Point { x: 2.0, y: 2.0 };
x.translate(3.0, 3.0);
@@ -45,7 +45,7 @@ pub mod fn_calls_methods_in_another_impl {
pub mod fn_make_struct {
use point::Point;

#[rustc_clean(label="TypeckTables", cfg="cfail2")]
#[rustc_clean(label="typeck_tables_of", cfg="cfail2")]
pub fn make_origin() -> Point {
Point { x: 2.0, y: 2.0 }
}
@@ -55,7 +55,7 @@ pub mod fn_make_struct {
pub mod fn_read_field {
use point::Point;

#[rustc_clean(label="TypeckTables", cfg="cfail2")]
#[rustc_clean(label="typeck_tables_of", cfg="cfail2")]
pub fn get_x(p: Point) -> f32 {
p.x
}
@@ -65,7 +65,7 @@ pub mod fn_read_field {
pub mod fn_write_field {
use point::Point;

#[rustc_clean(label="TypeckTables", cfg="cfail2")]
#[rustc_clean(label="typeck_tables_of", cfg="cfail2")]
pub fn inc_x(p: &mut Point) {
p.x += 1.0;
}
@@ -51,7 +51,7 @@ pub mod point {
pub mod fn_calls_methods_in_same_impl {
use point::Point;

#[rustc_clean(label="TypeckTables", cfg="cfail2")]
#[rustc_clean(label="typeck_tables_of", cfg="cfail2")]
pub fn check() {
let x = Point { x: 2.0, y: 2.0 };
x.distance_from_origin();
@@ -62,7 +62,7 @@ pub mod fn_calls_methods_in_same_impl {
pub mod fn_calls_methods_in_another_impl {
use point::Point;

#[rustc_clean(label="TypeckTables", cfg="cfail2")]
#[rustc_clean(label="typeck_tables_of", cfg="cfail2")]
pub fn check() {
let mut x = Point { x: 2.0, y: 2.0 };
x.translate(3.0, 3.0);
@@ -73,7 +73,7 @@ pub mod fn_calls_methods_in_another_impl {
pub mod fn_make_struct {
use point::Point;

#[rustc_clean(label="TypeckTables", cfg="cfail2")]
#[rustc_clean(label="typeck_tables_of", cfg="cfail2")]
pub fn make_origin() -> Point {
Point { x: 2.0, y: 2.0 }
}
@@ -83,7 +83,7 @@ pub mod fn_make_struct {
pub mod fn_read_field {
use point::Point;

#[rustc_clean(label="TypeckTables", cfg="cfail2")]
#[rustc_clean(label="typeck_tables_of", cfg="cfail2")]
pub fn get_x(p: Point) -> f32 {
p.x
}
@@ -93,7 +93,7 @@ pub mod fn_read_field {
pub mod fn_write_field {
use point::Point;

#[rustc_clean(label="TypeckTables", cfg="cfail2")]
#[rustc_clean(label="typeck_tables_of", cfg="cfail2")]
pub fn inc_x(p: &mut Point) {
p.x += 1.0;
}
@@ -24,7 +24,7 @@ extern crate point;
pub mod fn_calls_methods_in_same_impl {
use point::Point;

#[rustc_clean(label="TypeckTables", cfg="cfail2")]
#[rustc_clean(label="typeck_tables_of", cfg="cfail2")]
pub fn check() {
let x = Point { x: 2.0, y: 2.0 };
x.distance_from_origin();
@@ -35,7 +35,7 @@ pub mod fn_calls_methods_in_same_impl {
pub mod fn_calls_methods_in_another_impl {
use point::Point;

#[rustc_clean(label="TypeckTables", cfg="cfail2")]
#[rustc_clean(label="typeck_tables_of", cfg="cfail2")]
pub fn dirty() {
let mut x = Point { x: 2.0, y: 2.0 };
x.translate(3.0, 3.0);
@@ -46,7 +46,7 @@ pub mod fn_calls_methods_in_another_impl {
pub mod fn_make_struct {
use point::Point;

#[rustc_clean(label="TypeckTables", cfg="cfail2")]
#[rustc_clean(label="typeck_tables_of", cfg="cfail2")]
pub fn make_origin() -> Point {
Point { x: 2.0, y: 2.0 }
}
@@ -56,7 +56,7 @@ pub mod fn_make_struct {
pub mod fn_read_field {
use point::Point;

#[rustc_clean(label="TypeckTables", cfg="cfail2")]
#[rustc_clean(label="typeck_tables_of", cfg="cfail2")]
pub fn get_x(p: Point) -> f32 {
p.x
}
@@ -66,7 +66,7 @@ pub mod fn_read_field {
pub mod fn_write_field {
use point::Point;

#[rustc_clean(label="TypeckTables", cfg="cfail2")]
#[rustc_clean(label="typeck_tables_of", cfg="cfail2")]
pub fn inc_x(p: &mut Point) {
p.x += 1.0;
}
@@ -42,7 +42,7 @@ pub mod point {
pub mod fn_calls_changed_method {
use point::Point;

#[rustc_clean(label="TypeckTables", cfg="cfail2")]
#[rustc_clean(label="typeck_tables_of", cfg="cfail2")]
pub fn check() {
let p = Point { x: 2.0, y: 2.0 };
p.distance_from_origin();
@@ -53,7 +53,7 @@ pub mod fn_calls_changed_method {
pub mod fn_calls_another_method {
use point::Point;

#[rustc_clean(label="TypeckTables", cfg="cfail2")]
#[rustc_clean(label="typeck_tables_of", cfg="cfail2")]
pub fn check() {
let p = Point { x: 2.0, y: 2.0 };
p.x();
@@ -64,7 +64,7 @@ pub mod fn_calls_another_method {
pub mod fn_make_struct {
use point::Point;

#[rustc_clean(label="TypeckTables", cfg="cfail2")]
#[rustc_clean(label="typeck_tables_of", cfg="cfail2")]
pub fn make_origin() -> Point {
Point { x: 2.0, y: 2.0 }
}
@@ -74,7 +74,7 @@ pub mod fn_make_struct {
pub mod fn_read_field {
use point::Point;

#[rustc_clean(label="TypeckTables", cfg="cfail2")]
#[rustc_clean(label="typeck_tables_of", cfg="cfail2")]
pub fn get_x(p: Point) -> f32 {
p.x
}
@@ -84,7 +84,7 @@ pub mod fn_read_field {
pub mod fn_write_field {
use point::Point;

#[rustc_clean(label="TypeckTables", cfg="cfail2")]
#[rustc_clean(label="typeck_tables_of", cfg="cfail2")]
pub fn inc_x(p: &mut Point) {
p.x += 1.0;
}
Oops, something went wrong.

0 comments on commit 4558068

Please sign in to comment.
You can’t perform that action at this time.