Skip to content

Instantly share code, notes, and snippets.

@mathjazz
Created July 15, 2021 20:03
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/1311e4ca93e6483071e80b768ae3e66d to your computer and use it in GitHub Desktop.
Save mathjazz/1311e4ca93e6483071e80b768ae3e66d to your computer and use it in GitHub Desktop.
1:23.43 Compiling fluent-ffi v0.1.0 (/Users/mathjazz/src/mozilla-central/intl/l10n/rust/fluent-ffi)
1:23.82 error[E0053]: method `as_string` has an incompatible type for trait
1:23.82 --> intl/l10n/rust/fluent-ffi/src/builtins.rs:397:32
1:23.82 |
1:23.82 397 | fn as_string(&self, intls: &IntlLangMemoizer) -> Cow<'static, str> {
1:23.82 | ^^^^^^^^^^^^^^^^^
1:23.83 | |
1:23.83 | expected struct `intl_memoizer::IntlLangMemoizer`, found a different struct `intl_memoizer::IntlLangMemoizer`
1:23.83 | help: change the parameter type to match the trait: `&intl_memoizer::IntlLangMemoizer`
1:23.83 |
1:23.83 = note: expected fn pointer `fn(&FluentDateTime, &intl_memoizer::IntlLangMemoizer) -> Cow<'_, _>`
1:23.83 found fn pointer `fn(&FluentDateTime, &intl_memoizer::IntlLangMemoizer) -> Cow<'_, _>`
1:23.83 error[E0053]: method `as_string_threadsafe` has an incompatible type for trait
1:23.83 --> intl/l10n/rust/fluent-ffi/src/builtins.rs:407:12
1:23.83 |
1:23.83 407 | _: &intl_memoizer::concurrent::IntlLangMemoizer,
1:23.83 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1:23.83 | |
1:23.84 | expected struct `intl_memoizer::concurrent::IntlLangMemoizer`, found a different struct `intl_memoizer::concurrent::IntlLangMemoizer`
1:23.84 | help: change the parameter type to match the trait: `&intl_memoizer::concurrent::IntlLangMemoizer`
1:23.84 |
1:23.84 = note: expected fn pointer `fn(&FluentDateTime, &intl_memoizer::concurrent::IntlLangMemoizer) -> Cow<'_, _>`
1:23.88 found fn pointer `fn(&FluentDateTime, &intl_memoizer::concurrent::IntlLangMemoizer) -> Cow<'_, _>`
1:24.13 error[E0308]: mismatched types
1:24.13 --> intl/l10n/rust/fluent-ffi/src/bundle.rs:97:31
1:24.13 |
1:24.13 97 | bundle.set_formatter(Some(format_numbers));
1:24.13 | ^^^^^^^^^^^^^^ expected struct `intl_memoizer::IntlLangMemoizer`, found a different struct `intl_memoizer::IntlLangMemoizer`
1:24.13 |
1:24.13 = note: expected fn pointer `for<'r, 's, 't0> fn(&'r FluentValue<'s>, &'t0 intl_memoizer::IntlLangMemoizer) -> Option<_>`
1:24.13 found fn item `for<'r, 's, 't0> fn(&'r FluentValue<'s>, &'t0 intl_memoizer::IntlLangMemoizer) -> Option<_> {format_numbers}`
1:24.15 error[E0599]: no method named `len` found for opaque type `impl Iterator` in the current scope
1:24.15 --> intl/l10n/rust/fluent-ffi/src/bundle.rs:176:48
1:24.15 |
1:24.15 176 | attrs.reserve(message.attributes().len());
1:24.15 | ^^^ method not found in `impl Iterator`
1:24.19 error: aborting due to 4 previous errors
1:24.19 Some errors have detailed explanations: E0053, E0308, E0599.
1:24.19 For more information about an error, try `rustc --explain E0053`.
1:24.19 error: could not compile `fluent-ffi`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment