Skip to content

Commit 24c0ac1

Browse files
committed
Remove #[macro_use] std/core from tests
1 parent 114947e commit 24c0ac1

File tree

49 files changed

+2
-48
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+2
-48
lines changed

library/alloctests/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262

6363
// Allow testing this library
6464
extern crate alloc as realalloc;
65-
#[macro_use]
6665
extern crate std;
6766
#[cfg(test)]
6867
extern crate test;

src/tools/rust-analyzer/crates/ide-diagnostics/src/handlers/unresolved_macro_call.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ macro_rules! panic {
9494
}
9595
9696
//- /lib.rs crate:foo deps:core
97-
#[macro_use]
9897
extern crate core;
9998
10099
fn foo() {

tests/pretty/asm.pp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#![no_std]
33
#[prelude_import]
44
use ::std::prelude::rust_2015::*;
5-
#[macro_use]
65
extern crate std;
76
//@ pretty-mode:expanded
87
//@ pp-exact:asm.pp

tests/pretty/autodiff_forward.pp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#![feature(autodiff)]
66
#[prelude_import]
77
use ::std::prelude::rust_2015::*;
8-
#[macro_use]
98
extern crate std;
109
//@ pretty-mode:expanded
1110
//@ pretty-compare-only

tests/pretty/autodiff_reverse.pp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#![feature(autodiff)]
66
#[prelude_import]
77
use ::std::prelude::rust_2015::*;
8-
#[macro_use]
98
extern crate std;
109
//@ pretty-mode:expanded
1110
//@ pretty-compare-only

tests/pretty/cast-lt.pp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#![no_std]
33
#[prelude_import]
44
use ::std::prelude::rust_2015::*;
5-
#[macro_use]
65
extern crate std;
76
//@ pretty-compare-only
87
//@ pretty-mode:expanded

tests/pretty/dollar-crate.pp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#![no_std]
33
#[prelude_import]
44
use ::std::prelude::rust_2015::*;
5-
#[macro_use]
65
extern crate std;
76
//@ pretty-compare-only
87
//@ pretty-mode:expanded

tests/pretty/expanded-and-path-remap-80832.pp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#![no_std]
33
#[prelude_import]
44
use ::std::prelude::rust_2015::*;
5-
#[macro_use]
65
extern crate std;
76
// Test for issue 80832
87
//

tests/pretty/format-args-str-escape.pp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#![no_std]
33
#[prelude_import]
44
use ::std::prelude::rust_2015::*;
5-
#[macro_use]
65
extern crate std;
76
//@ pretty-compare-only
87
//@ pretty-mode:expanded

tests/pretty/hir-fn-params.pp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#[prelude_import]
22
use ::std::prelude::rust_2015::*;
3-
#[macro_use]
43
extern crate std;
54
//@ pretty-compare-only
65
//@ pretty-mode:hir

0 commit comments

Comments
 (0)