Skip to content

Commit 1b7ecb3

Browse files
committed
Remove #[macro_use] std/core from tests
1 parent ddfed13 commit 1b7ecb3

File tree

49 files changed

+4
-50
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

+4
-50
lines changed

library/alloctests/lib.rs

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

6262
// Allow testing this library
6363
extern crate alloc as realalloc;
64-
#[macro_use]
6564
extern crate std;
6665
#[cfg(test)]
6766
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
@@ -93,7 +93,6 @@ macro_rules! panic {
9393
}
9494
9595
//- /lib.rs crate:foo deps:core
96-
#[macro_use]
9796
extern crate core;
9897
9998
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/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/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)