Skip to content

Instantly share code, notes, and snippets.

@mathjazz
Created July 16, 2021 06:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mathjazz/237e636bee02adcc125eb784ed3298fa to your computer and use it in GitHub Desktop.
Save mathjazz/237e636bee02adcc125eb784ed3298fa to your computer and use it in GitHub Desktop.
187:32.22 Compiling fluent-ffi v0.1.0 (/Users/mathjazz/src/mozilla-central/intl/l10n/rust/fluent-ffi)
187:32.60 warning: unused import: `intl_memoizer::IntlLangMemoizer`
187:32.61 --> intl/l10n/rust/fluent-ffi/src/builtins.rs:8:5
187:32.61 |
187:32.61 8 | use intl_memoizer::IntlLangMemoizer;
187:32.61 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
187:34.40 |
187:34.40 = note: `#[warn(unused_imports)]` on by default
187:34.40 error[E0053]: method `as_string` has an incompatible type for trait
187:34.40 --> intl/l10n/rust/fluent-ffi/src/builtins.rs:397:32
187:34.44 |
187:34.44 397 | fn as_string(&self, intls: &intl_memoizer::IntlLangMemoizer) -> Cow<'static, str> {
187:34.44 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
187:34.44 | |
187:35.42 | expected struct `intl_memoizer::IntlLangMemoizer`, found a different struct `intl_memoizer::IntlLangMemoizer`
187:35.42 | help: change the parameter type to match the trait: `&intl_memoizer::IntlLangMemoizer`
187:35.42 |
187:35.42 = note: expected fn pointer `fn(&FluentDateTime, &intl_memoizer::IntlLangMemoizer) -> Cow<'_, _>`
187:35.43 found fn pointer `fn(&FluentDateTime, &intl_memoizer::IntlLangMemoizer) -> Cow<'_, _>`
187:35.43 error[E0053]: method `as_string_threadsafe` has an incompatible type for trait
187:35.43 --> intl/l10n/rust/fluent-ffi/src/builtins.rs:407:12
187:35.43 |
187:47.14 407 | _: &intl_memoizer::concurrent::IntlLangMemoizer,
187:47.14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
187:47.14 | |
187:47.14 | expected struct `intl_memoizer::concurrent::IntlLangMemoizer`, found a different struct `intl_memoizer::concurrent::IntlLangMemoizer`
187:47.18 | help: change the parameter type to match the trait: `&intl_memoizer::concurrent::IntlLangMemoizer`
187:47.18 |
187:47.18 = note: expected fn pointer `fn(&FluentDateTime, &intl_memoizer::concurrent::IntlLangMemoizer) -> Cow<'_, _>`
187:47.18 found fn pointer `fn(&FluentDateTime, &intl_memoizer::concurrent::IntlLangMemoizer) -> Cow<'_, _>`
187:48.14 error[E0308]: mismatched types
187:48.14 --> intl/l10n/rust/fluent-ffi/src/bundle.rs:97:31
187:48.14 |
187:48.14 97 | bundle.set_formatter(Some(format_numbers));
187:48.14 | ^^^^^^^^^^^^^^ expected struct `intl_memoizer::IntlLangMemoizer`, found a different struct `intl_memoizer::IntlLangMemoizer`
187:57.57 |
187:57.58 = note: expected fn pointer `for<'r, 's, 't0> fn(&'r FluentValue<'s>, &'t0 intl_memoizer::IntlLangMemoizer) -> Option<_>`
187:57.58 found fn item `for<'r, 's, 't0> fn(&'r FluentValue<'s>, &'t0 intl_memoizer::IntlLangMemoizer) -> Option<_> {format_numbers}`
187:57.58 error: aborting due to 3 previous errors; 1 warning emitted
187:57.58 Some errors have detailed explanations: E0053, E0308.
187:57.58 For more information about an error, try `rustc --explain E0053`.
187:57.58 error: could not compile `fluent-ffi`
187:57.58 To learn more, run the command again with --verbose.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment