Vendor dependencies for 0.3.0 release

This commit is contained in:
2025-09-27 10:29:08 -05:00
parent 0c8d39d483
commit 82ab7f317b
26803 changed files with 16134934 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
#[macro_use]
extern crate lazy_static;
lazy_static! {
pub(nonsense) static ref WRONG: () = ();
}
fn main() { }

View File

@@ -0,0 +1,10 @@
error[E0704]: incorrect visibility restriction
--> tests/compile_fail/incorrect_visibility_restriction.rs:5:9
|
5 | pub(nonsense) static ref WRONG: () = ();
| ^^^^^^^^ help: make this visible only to module `nonsense` with `in`: `in nonsense`
|
= help: some possible visibility restrictions are:
`pub(crate)`: visible only on the current crate
`pub(super)`: visible only in the current module's parent
`pub(in path::to::module)`: visible only on the specified path

View File

@@ -0,0 +1,14 @@
#[macro_use]
extern crate lazy_static;
mod outer {
pub mod inner {
lazy_static! {
pub(in outer) static ref FOO: () = ();
}
}
}
fn main() {
assert_eq!(*outer::inner::FOO, ());
}

View File

@@ -0,0 +1,14 @@
error[E0603]: static `FOO` is private
--> tests/compile_fail/static_is_private.rs:13:31
|
13 | assert_eq!(*outer::inner::FOO, ());
| ^^^ private static
|
note: the static `FOO` is defined here
--> tests/compile_fail/static_is_private.rs:6:9
|
6 | / lazy_static! {
7 | | pub(in outer) static ref FOO: () = ();
8 | | }
| |_________^
= note: this error originates in the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info)

View File

@@ -0,0 +1,9 @@
#[macro_use]
extern crate lazy_static;
lazy_static! {
pub static ref FOO: str = panic!();
}
fn main() { }

View File

@@ -0,0 +1,64 @@
error[E0277]: the size for values of type `str` cannot be known at compilation time
--> tests/compile_fail/static_is_sized.rs:4:1
|
4 | / lazy_static! {
5 | | pub static ref FOO: str = panic!();
6 | | }
| |_^ doesn't have a size known at compile-time
|
= help: the trait `Sized` is not implemented for `str`
note: required by an implicit `Sized` bound in `Lazy`
--> src/inline_lazy.rs
|
| pub struct Lazy<T: Sync>(Cell<MaybeUninit<T>>, Once);
| ^ required by the implicit `Sized` requirement on this type parameter in `Lazy`
= note: this error originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the size for values of type `str` cannot be known at compilation time
--> tests/compile_fail/static_is_sized.rs:4:1
|
4 | / lazy_static! {
5 | | pub static ref FOO: str = panic!();
6 | | }
| |_^ doesn't have a size known at compile-time
|
= help: the trait `Sized` is not implemented for `str`
note: required by an implicit `Sized` bound in `Lazy`
--> src/inline_lazy.rs
|
| pub struct Lazy<T: Sync>(Cell<MaybeUninit<T>>, Once);
| ^ required by the implicit `Sized` requirement on this type parameter in `Lazy`
= note: this error originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the size for values of type `str` cannot be known at compilation time
--> tests/compile_fail/static_is_sized.rs:5:25
|
5 | pub static ref FOO: str = panic!();
| ^^^ doesn't have a size known at compile-time
|
= help: the trait `Sized` is not implemented for `str`
= note: the return type of a function must have a statically known size
error[E0599]: the method `get` exists for struct `Lazy<str>`, but its trait bounds were not satisfied
--> tests/compile_fail/static_is_sized.rs:4:1
|
4 | / lazy_static! {
5 | | pub static ref FOO: str = panic!();
6 | | }
| |_^ method cannot be called on `Lazy<str>` due to unsatisfied trait bounds
|
= note: the following trait bounds were not satisfied:
`str: Sized`
= note: this error originates in the macro `__lazy_static_internal` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the size for values of type `str` cannot be known at compilation time
--> tests/compile_fail/static_is_sized.rs:4:1
|
4 | / lazy_static! {
5 | | pub static ref FOO: str = panic!();
6 | | }
| |_^ doesn't have a size known at compile-time
|
= help: the trait `Sized` is not implemented for `str`
= note: the return type of a function must have a statically known size
= note: this error originates in the macro `__lazy_static_internal` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info)