Vendor dependencies

This commit is contained in:
2026-08-01 16:11:49 +03:00
parent 7f139a0241
commit 6b5e7f0f8b
29706 changed files with 9575646 additions and 0 deletions
@@ -0,0 +1,6 @@
use indoc::indoc;
fn main() {
let world = "world";
println!(indoc!("Hello {world}"));
}
@@ -0,0 +1,8 @@
error: there is no argument named `world`
--> tests/ui/capture-var-nested.rs:5:21
|
5 | println!(indoc!("Hello {world}"));
| ^^^^^^^^^^^^^^^
|
= note: did you intend to capture a variable `world` from the surrounding scope?
= note: to avoid ambiguity, `format_args!` cannot capture variables when the format string is expanded from a macro
+5
View File
@@ -0,0 +1,5 @@
use indoc::indoc;
fn main() {
indoc!();
}
@@ -0,0 +1,7 @@
error: unexpected end of macro invocation, expected format string
--> tests/ui/no-arguments.rs:4:5
|
4 | indoc!();
| ^^^^^^^^
|
= note: this error originates in the macro `indoc` (in Nightly builds, run with -Z macro-backtrace for more info)
+5
View File
@@ -0,0 +1,5 @@
use indoc::indoc;
fn main() {
indoc!(fail);
}
+5
View File
@@ -0,0 +1,5 @@
error: argument must be a single string literal
--> tests/ui/non-lit.rs:4:12
|
4 | indoc!(fail);
| ^^^^
+5
View File
@@ -0,0 +1,5 @@
use indoc::indoc;
fn main() {
indoc!(64);
}
+5
View File
@@ -0,0 +1,5 @@
error: argument must be a single string literal
--> tests/ui/non-string.rs:4:12
|
4 | indoc!(64);
| ^^
@@ -0,0 +1,5 @@
use indoc::printdoc;
fn main() {
printdoc!(b"");
}
@@ -0,0 +1,5 @@
error: byte strings are not supported in formatting macros
--> tests/ui/printdoc-binary.rs:4:15
|
4 | printdoc!(b"");
| ^^^
@@ -0,0 +1,5 @@
use indoc::printdoc;
fn main() {
printdoc!("", 0);
}
@@ -0,0 +1,12 @@
error: argument never used
--> tests/ui/printdoc-extra-arg.rs:4:19
|
4 | printdoc!("", 0);
| -- ^ argument never used
| |
| formatting specifier missing
|
help: format specifiers use curly braces, consider adding a format specifier
|
4 | printdoc!("{}", 0);
| ++
@@ -0,0 +1,5 @@
use indoc::printdoc;
fn main() {
printdoc!("{}");
}
@@ -0,0 +1,5 @@
error: 1 positional argument in format string, but no arguments were given
--> tests/ui/printdoc-no-arg.rs:4:16
|
4 | printdoc!("{}");
| ^^
@@ -0,0 +1,7 @@
use indoc::printdoc;
struct NoDisplay;
fn main() {
printdoc!("{}", NoDisplay);
}
@@ -0,0 +1,15 @@
error[E0277]: `NoDisplay` doesn't implement `std::fmt::Display`
--> tests/ui/printdoc-no-display.rs:6:21
|
6 | printdoc!("{}", NoDisplay);
| -- ^^^^^^^^^ `NoDisplay` cannot be formatted with the default formatter
| |
| required by this formatting parameter
|
help: the trait `std::fmt::Display` is not implemented for `NoDisplay`
--> tests/ui/printdoc-no-display.rs:3:1
|
3 | struct NoDisplay;
| ^^^^^^^^^^^^^^^^
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
= note: this error originates in the macro `$crate::format_args` which comes from the expansion of the macro `printdoc` (in Nightly builds, run with -Z macro-backtrace for more info)
@@ -0,0 +1,5 @@
use indoc::printdoc;
fn main() {
printdoc!("{named}");
}
@@ -0,0 +1,5 @@
error[E0425]: cannot find value `named` in this scope
--> tests/ui/printdoc-no-named-arg.rs:4:17
|
4 | printdoc!("{named}");
| ^^^^^ not found in this scope
@@ -0,0 +1,9 @@
use indoc::indoc;
fn main() {
indoc!("
a
b
c
" 64 128);
}
@@ -0,0 +1,5 @@
error: unexpected tokens in macro invocation; indoc argument must be a single string literal
--> tests/ui/three-arguments.rs:8:11
|
8 | " 64 128);
| ^^^^^^
+9
View File
@@ -0,0 +1,9 @@
use indoc::indoc;
fn main() {
indoc!("
a
b
c
" 64);
}
@@ -0,0 +1,5 @@
error: unexpected token in macro invocation; indoc argument must be a single string literal
--> tests/ui/two-arguments.rs:8:11
|
8 | " 64);
| ^^