From 7d023ebdb908790c946edcf6457c04b4e7d27e24 Mon Sep 17 00:00:00 2001 From: Dominique Martinet Date: Thu, 8 Oct 2020 15:25:32 +0200 Subject: [PATCH] matrix_sdk examples: set `#![type_length_limit = "1075569"]` Some examples no longer build after the following commits, set a bigger-than-default type_length_limit to let tests pass. The exceptions are not necessary on nightly and can be removed again after https://github.com/rust-lang/rust/issues/54540 is fixed. --- matrix_sdk/examples/command_bot.rs | 4 ++++ matrix_sdk/examples/image_bot.rs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/matrix_sdk/examples/command_bot.rs b/matrix_sdk/examples/command_bot.rs index 4f2d9fea..ffd39f76 100644 --- a/matrix_sdk/examples/command_bot.rs +++ b/matrix_sdk/examples/command_bot.rs @@ -1,3 +1,7 @@ +// allow biggr types until rustc fix, consider removing after new rust +// stable release. see https://github.com/rust-lang/rust/issues/54540 +#![type_length_limit = "1075569"] + use std::{env, process::exit}; use matrix_sdk::{ diff --git a/matrix_sdk/examples/image_bot.rs b/matrix_sdk/examples/image_bot.rs index 68099d89..5f48e6e0 100644 --- a/matrix_sdk/examples/image_bot.rs +++ b/matrix_sdk/examples/image_bot.rs @@ -1,3 +1,7 @@ +// allow biggr types until rustc fix, consider removing after new rust +// stable release. see https://github.com/rust-lang/rust/issues/54540 +#![type_length_limit = "1075569"] + use std::{ env, fs::File,