From 67a85a19ae581939e0fc7c69c37567910a98b3b7 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Wed, 6 Jan 2021 19:30:58 +0800 Subject: [PATCH] Fix codegen test. --- codegen/ui_tests/rhai_mod_unknown_type.rs | 7 +++++-- codegen/ui_tests/rhai_mod_unknown_type.stderr | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/codegen/ui_tests/rhai_mod_unknown_type.rs b/codegen/ui_tests/rhai_mod_unknown_type.rs index ae582726..4c067fd3 100644 --- a/codegen/ui_tests/rhai_mod_unknown_type.rs +++ b/codegen/ui_tests/rhai_mod_unknown_type.rs @@ -9,13 +9,16 @@ pub struct Point { #[export_module] pub mod test_module { pub use super::Point; - pub fn test_fn(input: Point) -> bool { + pub fn test_fn(input: Pointer) -> bool { input.x < input.y } } fn main() { - let n = Point { x: 0.0, y: 10.0 }; + let n = Point { + x: 0.0, + y: 10.0 + }; if test_module::test_fn(n) { println!("yes"); } else { diff --git a/codegen/ui_tests/rhai_mod_unknown_type.stderr b/codegen/ui_tests/rhai_mod_unknown_type.stderr index 87360967..1b400234 100644 --- a/codegen/ui_tests/rhai_mod_unknown_type.stderr +++ b/codegen/ui_tests/rhai_mod_unknown_type.stderr @@ -19,5 +19,5 @@ help: consider importing one of these items | 11 | use std::fmt::Pointer; | -11 | use syn::export::fmt::Pointer; +11 | use syn::__private::fmt::Pointer; |