mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
fix formatting
This commit is contained in:
parent
d6da5fb353
commit
5874b09806
@ -119,9 +119,7 @@ fn span_err(span: impl proc_macro::MultiSpan, msg: &str) -> proc_macro::Diagnost
|
|||||||
/// Emit a diagnostic on span `$span` with msg `$msg` (optionally performing additional decoration
|
/// Emit a diagnostic on span `$span` with msg `$msg` (optionally performing additional decoration
|
||||||
/// using the `FnOnce` passed in `diag`) and return `Err(ErrorHandled)`.
|
/// using the `FnOnce` passed in `diag`) and return `Err(ErrorHandled)`.
|
||||||
macro_rules! throw_span_err {
|
macro_rules! throw_span_err {
|
||||||
($span:expr, $msg:expr) => {{
|
($span:expr, $msg:expr) => {{ throw_span_err!($span, $msg, |diag| diag) }};
|
||||||
throw_span_err!($span, $msg, |diag| diag)
|
|
||||||
}};
|
|
||||||
($span:expr, $msg:expr, $f:expr) => {{
|
($span:expr, $msg:expr, $f:expr) => {{
|
||||||
return Err(_throw_span_err($span, $msg, $f));
|
return Err(_throw_span_err($span, $msg, $f));
|
||||||
}};
|
}};
|
||||||
|
@ -783,11 +783,7 @@ impl Session {
|
|||||||
Path::new(&rustlib_path),
|
Path::new(&rustlib_path),
|
||||||
Path::new("bin"),
|
Path::new("bin"),
|
||||||
]);
|
]);
|
||||||
if self_contained {
|
if self_contained { vec![p.clone(), p.join("self-contained")] } else { vec![p] }
|
||||||
vec![p.clone(), p.join("self-contained")]
|
|
||||||
} else {
|
|
||||||
vec![p]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn init_incr_comp_session(
|
pub fn init_incr_comp_session(
|
||||||
|
Loading…
Reference in New Issue
Block a user