update bootstrap configs · qinheping/verify-rust-std@43f97fb (original) (raw)

`@@ -3,9 +3,6 @@

`

3

3

`#[allow(unused_imports)]

`

4

4

`#[stable(feature = "simd_arch", since = "1.27.0")]

`

5

5

`pub use crate::core_arch::arch::*;

`

6

``

`-

#[unstable(feature = "naked_functions", issue = "90957")]

`

7

``

`-

#[cfg(bootstrap)]

`

8

``

`-

pub use crate::naked_asm;

`

9

6

``

10

7

`/// Inline assembly.

`

11

8

`///

`

`@@ -20,37 +17,6 @@ pub macro asm("assembly template", (operands,)∗(operands,)* (operands,)(options($(option),*))?) {

`

20

17

`/* compiler built-in */

`

21

18

`}

`

22

19

``

23

``

`` -

/// Inline assembly used in combination with #[naked] functions.

``

24

``

`-

///

`

25

``

`-

/// Refer to [Rust By Example] for a usage guide and the [reference] for

`

26

``

`-

/// detailed information about the syntax and available options.

`

27

``

`-

///

`

28

``

`-

/// [Rust By Example]: https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html

`

29

``

`-

/// [reference]: https://doc.rust-lang.org/nightly/reference/inline-assembly.html

`

30

``

`-

#[unstable(feature = "naked_functions", issue = "90957")]

`

31

``

`-

#[macro_export]

`

32

``

`-

#[cfg(bootstrap)]

`

33

``

`-

macro_rules! naked_asm {

`

34

``

`-

([$last:expr], [$($pushed:expr),*]) => {

`

35

``

`-

#[cfg(any(target_arch = "x86_64", target_arch = "x86"))]

`

36

``

`-

{

`

37

``

`-

core::arch::asm!($($pushed),*, options(att_syntax, noreturn))

`

38

``

`-

}

`

39

``

`-

#[cfg(not(any(target_arch = "x86_64", target_arch = "x86")))]

`

40

``

`-

{

`

41

``

`-

core::arch::asm!($($pushed),* , $last, options(noreturn))

`

42

``

`-

}

`

43

``

`-

};

`

44

``

-

45

``

`-

([$first:expr (,(, (,rest:expr)], [$($pushed:expr),]) => {

`

46

``

`-

naked_asm!([$($rest),], [$($pushed,) $first]);

`

47

``

`-

};

`

48

``

-

49

``

`-

($($expr:expr),* $(,)?) => {

`

50

``

`-

naked_asm!([$($expr),*], []);

`

51

``

`-

};

`

52

``

`-

}

`

53

``

-

54

20

`` /// Inline assembly used in combination with #[naked] functions.

``

55

21

`///

`

56

22

`/// Refer to [Rust By Example] for a usage guide and the [reference] for

`

`@@ -60,7 +26,6 @@ macro_rules! naked_asm {

`

60

26

`/// [reference]: https://doc.rust-lang.org/nightly/reference/inline-assembly.html

`

61

27

`#[unstable(feature = "naked_functions", issue = "90957")]

`

62

28

`#[rustc_builtin_macro]

`

63

``

`-

#[cfg(not(bootstrap))]

`

64

29

`pub macro naked_asm("assembly template", (operands,)∗(operands,)* (operands,)(options($(option),*))?) {

`

65

30

`/* compiler built-in */

`

66

31

`}

`