mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 11:59:49 +00:00
Merge commit '457b966b17
' into sync-from-ra
This commit is contained in:
parent
5285df4f6c
commit
f532576ac5
263 changed files with 9788 additions and 6258 deletions
|
@ -6,7 +6,7 @@
|
|||
//! * Extracting markup (mainly, `$0` markers) out of fixture strings.
|
||||
//! * marks (see the eponymous module).
|
||||
|
||||
#![warn(rust_2018_idioms, unused_lifetimes, semicolon_in_expressions_from_macros)]
|
||||
#![warn(rust_2018_idioms, unused_lifetimes)]
|
||||
|
||||
mod assert_linear;
|
||||
pub mod bench_fixture;
|
||||
|
|
|
@ -9,12 +9,15 @@
|
|||
//!
|
||||
//! Available flags:
|
||||
//! add:
|
||||
//! asm:
|
||||
//! assert:
|
||||
//! as_ref: sized
|
||||
//! bool_impl: option, fn
|
||||
//! builtin_impls:
|
||||
//! cell: copy, drop
|
||||
//! clone: sized
|
||||
//! coerce_unsized: unsize
|
||||
//! concat:
|
||||
//! copy: clone
|
||||
//! default: sized
|
||||
//! deref_mut: deref
|
||||
|
@ -1357,7 +1360,7 @@ mod panicking {
|
|||
mod macros {
|
||||
// region:panic
|
||||
#[macro_export]
|
||||
#[rustc_builtin_macro(std_panic)]
|
||||
#[rustc_builtin_macro(core_panic)]
|
||||
macro_rules! panic {
|
||||
($($arg:tt)*) => {
|
||||
/* compiler built-in */
|
||||
|
@ -1365,6 +1368,26 @@ mod macros {
|
|||
}
|
||||
// endregion:panic
|
||||
|
||||
// region:asm
|
||||
#[macro_export]
|
||||
#[rustc_builtin_macro]
|
||||
macro_rules! asm {
|
||||
($($arg:tt)*) => {
|
||||
/* compiler built-in */
|
||||
};
|
||||
}
|
||||
// endregion:asm
|
||||
|
||||
// region:assert
|
||||
#[macro_export]
|
||||
#[rustc_builtin_macro]
|
||||
macro_rules! assert {
|
||||
($($arg:tt)*) => {
|
||||
/* compiler built-in */
|
||||
};
|
||||
}
|
||||
// endregion:assert
|
||||
|
||||
// region:fmt
|
||||
#[macro_export]
|
||||
#[rustc_builtin_macro]
|
||||
|
@ -1380,6 +1403,13 @@ mod macros {
|
|||
($fmt:expr, $($args:tt)*) => {{ /* compiler built-in */ }};
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
#[rustc_builtin_macro]
|
||||
macro_rules! format_args_nl {
|
||||
($fmt:expr) => {{ /* compiler built-in */ }};
|
||||
($fmt:expr, $($args:tt)*) => {{ /* compiler built-in */ }};
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! print {
|
||||
($($arg:tt)*) => {{
|
||||
|
@ -1410,6 +1440,12 @@ mod macros {
|
|||
($file:expr $(,)?) => {{ /* compiler built-in */ }};
|
||||
}
|
||||
// endregion:include
|
||||
|
||||
// region:concat
|
||||
#[rustc_builtin_macro]
|
||||
#[macro_export]
|
||||
macro_rules! concat {}
|
||||
// endregion:concat
|
||||
}
|
||||
|
||||
// region:non_zero
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue