diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2021-12-29 16:36:08 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2021-12-29 16:36:08 +0100 |
| commit | 1ea4810c84e0d496bf10ebccc7e2ae5de1fb3590 (patch) | |
| tree | 4ec4ec7fec07083958bfd2490de877e6003f9dce | |
| parent | 75d8339cdd8c5b07982764a9b78952a67b7cd519 (diff) | |
| download | rust-1ea4810c84e0d496bf10ebccc7e2ae5de1fb3590.tar.gz rust-1ea4810c84e0d496bf10ebccc7e2ae5de1fb3590.zip | |
Remove #![crate_name] attribute from libtest
The crate name is already set in Cargo.toml. The comment says there is some logic in the compiler that reads #![crate_name] and not --crate-name, but I can't find it. Removing it seems to work fine.
| -rw-r--r-- | library/test/src/lib.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/library/test/src/lib.rs b/library/test/src/lib.rs index 17e15243afd..1e8c63b69db 100644 --- a/library/test/src/lib.rs +++ b/library/test/src/lib.rs @@ -13,11 +13,6 @@ // running tests while providing a base that other test frameworks may // build off of. -// N.B., this is also specified in this crate's Cargo.toml, but librustc_ast contains logic specific to -// this crate, which relies on this attribute (rather than the value of `--crate-name` passed by -// cargo) to detect this crate. - -#![crate_name = "test"] #![unstable(feature = "test", issue = "50297")] #![doc(test(attr(deny(warnings))))] #![feature(libc)] |
