Add backticks in appropriate places
This commit is contained in:
parent
8461fa5119
commit
e84248921b
25 changed files with 72 additions and 71 deletions
|
@ -1959,13 +1959,16 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for InvalidValue {
|
||||||
// return `Bound::Excluded`. (And we have tests checking that we
|
// return `Bound::Excluded`. (And we have tests checking that we
|
||||||
// handle the attribute correctly.)
|
// handle the attribute correctly.)
|
||||||
(Bound::Included(lo), _) if lo > 0 => {
|
(Bound::Included(lo), _) if lo > 0 => {
|
||||||
return Some((format!("{} must be non-null", ty), None));
|
return Some((format!("`{}` must be non-null", ty), None));
|
||||||
}
|
}
|
||||||
(Bound::Included(_), _) | (_, Bound::Included(_))
|
(Bound::Included(_), _) | (_, Bound::Included(_))
|
||||||
if init == InitKind::Uninit =>
|
if init == InitKind::Uninit =>
|
||||||
{
|
{
|
||||||
return Some((
|
return Some((
|
||||||
format!("{} must be initialized inside its custom valid range", ty),
|
format!(
|
||||||
|
"`{}` must be initialized inside its custom valid range",
|
||||||
|
ty,
|
||||||
|
),
|
||||||
None,
|
None,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
@ -1973,7 +1976,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for InvalidValue {
|
||||||
}
|
}
|
||||||
// Now, recurse.
|
// Now, recurse.
|
||||||
match adt_def.variants.len() {
|
match adt_def.variants.len() {
|
||||||
0 => Some((format!("0-variant enums have no valid value"), None)),
|
0 => Some((format!("enums with no variants have no valid value"), None)),
|
||||||
1 => {
|
1 => {
|
||||||
// Struct, or enum with exactly one variant.
|
// Struct, or enum with exactly one variant.
|
||||||
// Proceed recursively, check all fields.
|
// Proceed recursively, check all fields.
|
||||||
|
|
|
@ -236,8 +236,8 @@ impl<'a> Parser<'a> {
|
||||||
self.struct_span_err(lit.span, msg)
|
self.struct_span_err(lit.span, msg)
|
||||||
.help(
|
.help(
|
||||||
"instead of using a suffixed literal \
|
"instead of using a suffixed literal \
|
||||||
(1u8, 1.0f32, etc.), use an unsuffixed version \
|
(`1u8`, `1.0f32`, etc.), use an unsuffixed version \
|
||||||
(1, 1.0, etc.).",
|
(`1`, `1.0`, etc.)",
|
||||||
)
|
)
|
||||||
.emit()
|
.emit()
|
||||||
}
|
}
|
||||||
|
|
|
@ -963,7 +963,7 @@ impl<'a, 'b> BuildReducedGraphVisitor<'a, 'b> {
|
||||||
.session
|
.session
|
||||||
.struct_span_err(
|
.struct_span_err(
|
||||||
attr.span,
|
attr.span,
|
||||||
"`macro_use` is not supported on `extern crate self`",
|
"`#[macro_use]` is not supported on `extern crate self`",
|
||||||
)
|
)
|
||||||
.emit();
|
.emit();
|
||||||
}
|
}
|
||||||
|
@ -1054,7 +1054,7 @@ impl<'a, 'b> BuildReducedGraphVisitor<'a, 'b> {
|
||||||
fn contains_macro_use(&mut self, attrs: &[ast::Attribute]) -> bool {
|
fn contains_macro_use(&mut self, attrs: &[ast::Attribute]) -> bool {
|
||||||
for attr in attrs {
|
for attr in attrs {
|
||||||
if attr.check_name(sym::macro_escape) {
|
if attr.check_name(sym::macro_escape) {
|
||||||
let msg = "macro_escape is a deprecated synonym for macro_use";
|
let msg = "`#[macro_escape]` is a deprecated synonym for `#[macro_use]`";
|
||||||
let mut err = self.r.session.struct_span_warn(attr.span, msg);
|
let mut err = self.r.session.struct_span_warn(attr.span, msg);
|
||||||
if let ast::AttrStyle::Inner = attr.style {
|
if let ast::AttrStyle::Inner = attr.style {
|
||||||
err.help("consider an outer attribute, `#[macro_use]` mod ...").emit();
|
err.help("consider an outer attribute, `#[macro_use]` mod ...").emit();
|
||||||
|
@ -1066,7 +1066,7 @@ impl<'a, 'b> BuildReducedGraphVisitor<'a, 'b> {
|
||||||
}
|
}
|
||||||
|
|
||||||
if !attr.is_word() {
|
if !attr.is_word() {
|
||||||
self.r.session.span_err(attr.span, "arguments to macro_use are not allowed here");
|
self.r.session.span_err(attr.span, "arguments to `macro_use` are not allowed here");
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -479,7 +479,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
|
||||||
macro_rules! report_function {
|
macro_rules! report_function {
|
||||||
($span:expr, $name:expr) => {
|
($span:expr, $name:expr) => {
|
||||||
err.note(&format!(
|
err.note(&format!(
|
||||||
"{} is a function, perhaps you wish to call it",
|
"`{}` is a function, perhaps you wish to call it",
|
||||||
$name
|
$name
|
||||||
));
|
));
|
||||||
};
|
};
|
||||||
|
|
|
@ -45,7 +45,7 @@ LL | const BAR: [Empty; 3] = [unsafe { std::mem::transmute(()) }; 3];
|
||||||
| this code causes undefined behavior when executed
|
| this code causes undefined behavior when executed
|
||||||
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
|
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
|
||||||
|
|
|
|
||||||
= note: 0-variant enums have no valid value
|
= note: enums with no variants have no valid value
|
||||||
|
|
||||||
error: aborting due to previous error
|
error: aborting due to previous error
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// run-pass
|
// run-pass
|
||||||
|
|
||||||
mod foo {
|
mod foo {
|
||||||
#![macro_escape] //~ WARNING macro_escape is a deprecated synonym for macro_use
|
#![macro_escape] //~ WARN `#[macro_escape]` is a deprecated synonym for `#[macro_use]`
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
warning: macro_escape is a deprecated synonym for macro_use
|
warning: `#[macro_escape]` is a deprecated synonym for `#[macro_use]`
|
||||||
--> $DIR/deprecated-macro_escape-inner.rs:4:5
|
--> $DIR/deprecated-macro_escape-inner.rs:4:5
|
||||||
|
|
|
|
||||||
LL | #![macro_escape]
|
LL | #![macro_escape]
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
// run-pass
|
// run-pass
|
||||||
|
|
||||||
#[macro_escape] //~ WARNING macro_escape is a deprecated synonym for macro_use
|
#[macro_escape] //~ WARNING `#[macro_escape]` is a deprecated synonym for `#[macro_use]`
|
||||||
mod foo {
|
mod foo {}
|
||||||
}
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {}
|
||||||
}
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
warning: macro_escape is a deprecated synonym for macro_use
|
warning: `#[macro_escape]` is a deprecated synonym for `#[macro_use]`
|
||||||
--> $DIR/deprecated-macro_escape.rs:3:1
|
--> $DIR/deprecated-macro_escape.rs:3:1
|
||||||
|
|
|
|
||||||
LL | #[macro_escape]
|
LL | #[macro_escape]
|
||||||
|
|
|
@ -464,10 +464,10 @@ mod reexport_test_harness_main {
|
||||||
|
|
||||||
// Cannot feed "2700" to `#[macro_escape]` without signaling an error.
|
// Cannot feed "2700" to `#[macro_escape]` without signaling an error.
|
||||||
#[macro_escape]
|
#[macro_escape]
|
||||||
//~^ WARN macro_escape is a deprecated synonym for macro_use
|
//~^ WARN `#[macro_escape]` is a deprecated synonym for `#[macro_use]`
|
||||||
mod macro_escape {
|
mod macro_escape {
|
||||||
mod inner { #![macro_escape] }
|
mod inner { #![macro_escape] }
|
||||||
//~^ WARN macro_escape is a deprecated synonym for macro_use
|
//~^ WARN `#[macro_escape]` is a deprecated synonym for `#[macro_use]`
|
||||||
|
|
||||||
#[macro_escape] fn f() { }
|
#[macro_escape] fn f() { }
|
||||||
//~^ WARN unused attribute
|
//~^ WARN unused attribute
|
||||||
|
|
|
@ -172,13 +172,13 @@ warning: unknown lint: `x5100`
|
||||||
LL | #[deny(x5100)] impl S { }
|
LL | #[deny(x5100)] impl S { }
|
||||||
| ^^^^^
|
| ^^^^^
|
||||||
|
|
||||||
warning: macro_escape is a deprecated synonym for macro_use
|
warning: `#[macro_escape]` is a deprecated synonym for `#[macro_use]`
|
||||||
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:466:1
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:466:1
|
||||||
|
|
|
|
||||||
LL | #[macro_escape]
|
LL | #[macro_escape]
|
||||||
| ^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
warning: macro_escape is a deprecated synonym for macro_use
|
warning: `#[macro_escape]` is a deprecated synonym for `#[macro_use]`
|
||||||
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:469:17
|
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:469:17
|
||||||
|
|
|
|
||||||
LL | mod inner { #![macro_escape] }
|
LL | mod inner { #![macro_escape] }
|
||||||
|
|
|
@ -6,6 +6,6 @@
|
||||||
// check-pass
|
// check-pass
|
||||||
|
|
||||||
#![macro_escape]
|
#![macro_escape]
|
||||||
//~^ WARN macro_escape is a deprecated synonym for macro_use
|
//~^ WARN `#[macro_escape]` is a deprecated synonym for `#[macro_use]`
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
warning: macro_escape is a deprecated synonym for macro_use
|
warning: `#[macro_escape]` is a deprecated synonym for `#[macro_use]`
|
||||||
--> $DIR/issue-43106-gating-of-macro_escape.rs:8:1
|
--> $DIR/issue-43106-gating-of-macro_escape.rs:8:1
|
||||||
|
|
|
|
||||||
LL | #![macro_escape]
|
LL | #![macro_escape]
|
||||||
|
|
|
@ -4,13 +4,13 @@
|
||||||
// get that warning; see issue-43106-gating-of-builtin-attrs.rs
|
// get that warning; see issue-43106-gating-of-builtin-attrs.rs
|
||||||
|
|
||||||
#![macro_use(my_macro)]
|
#![macro_use(my_macro)]
|
||||||
//~^ ERROR arguments to macro_use are not allowed here
|
//~^ ERROR arguments to `macro_use` are not allowed here
|
||||||
|
|
||||||
#[macro_use(my_macro)]
|
#[macro_use(my_macro)]
|
||||||
//~^ ERROR arguments to macro_use are not allowed here
|
//~^ ERROR arguments to `macro_use` are not allowed here
|
||||||
mod macro_escape {
|
mod macro_escape {
|
||||||
mod inner { #![macro_use(my_macro)] }
|
mod inner { #![macro_use(my_macro)] }
|
||||||
//~^ ERROR arguments to macro_use are not allowed here
|
//~^ ERROR arguments to `macro_use` are not allowed here
|
||||||
|
|
||||||
#[macro_use = "2700"] struct S;
|
#[macro_use = "2700"] struct S;
|
||||||
//~^ ERROR malformed `macro_use` attribute
|
//~^ ERROR malformed `macro_use` attribute
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
error: arguments to macro_use are not allowed here
|
error: arguments to `macro_use` are not allowed here
|
||||||
--> $DIR/issue-43106-gating-of-macro_use.rs:6:1
|
--> $DIR/issue-43106-gating-of-macro_use.rs:6:1
|
||||||
|
|
|
|
||||||
LL | #![macro_use(my_macro)]
|
LL | #![macro_use(my_macro)]
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
error: arguments to macro_use are not allowed here
|
error: arguments to `macro_use` are not allowed here
|
||||||
--> $DIR/issue-43106-gating-of-macro_use.rs:9:1
|
--> $DIR/issue-43106-gating-of-macro_use.rs:9:1
|
||||||
|
|
|
|
||||||
LL | #[macro_use(my_macro)]
|
LL | #[macro_use(my_macro)]
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
error: arguments to macro_use are not allowed here
|
error: arguments to `macro_use` are not allowed here
|
||||||
--> $DIR/issue-43106-gating-of-macro_use.rs:12:17
|
--> $DIR/issue-43106-gating-of-macro_use.rs:12:17
|
||||||
|
|
|
|
||||||
LL | mod inner { #![macro_use(my_macro)] }
|
LL | mod inner { #![macro_use(my_macro)] }
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
extern crate self; //~ ERROR `extern crate self;` requires renaming
|
extern crate self; //~ ERROR `extern crate self;` requires renaming
|
||||||
|
|
||||||
#[macro_use] //~ ERROR `macro_use` is not supported on `extern crate self`
|
#[macro_use] //~ ERROR `#[macro_use]` is not supported on `extern crate self`
|
||||||
extern crate self as foo;
|
extern crate self as foo;
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
|
|
@ -4,7 +4,7 @@ error: `extern crate self;` requires renaming
|
||||||
LL | extern crate self;
|
LL | extern crate self;
|
||||||
| ^^^^^^^^^^^^^^^^^^ help: try: `extern crate self as name;`
|
| ^^^^^^^^^^^^^^^^^^ help: try: `extern crate self as name;`
|
||||||
|
|
||||||
error: `macro_use` is not supported on `extern crate self`
|
error: `#[macro_use]` is not supported on `extern crate self`
|
||||||
--> $DIR/extern-crate-self-fail.rs:3:1
|
--> $DIR/extern-crate-self-fail.rs:3:1
|
||||||
|
|
|
|
||||||
LL | #[macro_use]
|
LL | #[macro_use]
|
||||||
|
|
|
@ -4,7 +4,7 @@ error[E0599]: no method named `x` found for fn item `fn() -> Ret {Obj::func}` in
|
||||||
LL | Obj::func.x();
|
LL | Obj::func.x();
|
||||||
| ^ method not found in `fn() -> Ret {Obj::func}`
|
| ^ method not found in `fn() -> Ret {Obj::func}`
|
||||||
|
|
|
|
||||||
= note: Obj::func is a function, perhaps you wish to call it
|
= note: `Obj::func` is a function, perhaps you wish to call it
|
||||||
|
|
||||||
error[E0599]: no method named `x` found for fn item `fn() -> Ret {func}` in the current scope
|
error[E0599]: no method named `x` found for fn item `fn() -> Ret {func}` in the current scope
|
||||||
--> $DIR/issue-29124.rs:17:10
|
--> $DIR/issue-29124.rs:17:10
|
||||||
|
@ -12,7 +12,7 @@ error[E0599]: no method named `x` found for fn item `fn() -> Ret {func}` in the
|
||||||
LL | func.x();
|
LL | func.x();
|
||||||
| ^ method not found in `fn() -> Ret {func}`
|
| ^ method not found in `fn() -> Ret {func}`
|
||||||
|
|
|
|
||||||
= note: func is a function, perhaps you wish to call it
|
= note: `func` is a function, perhaps you wish to call it
|
||||||
|
|
||||||
error: aborting due to 2 previous errors
|
error: aborting due to 2 previous errors
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ error[E0599]: no method named `f` found for fn pointer `fn(&u8)` in the current
|
||||||
LL | a.f();
|
LL | a.f();
|
||||||
| ^ method not found in `fn(&u8)`
|
| ^ method not found in `fn(&u8)`
|
||||||
|
|
|
|
||||||
= note: a is a function, perhaps you wish to call it
|
= note: `a` is a function, perhaps you wish to call it
|
||||||
= help: items from traits can only be used if the trait is implemented and in scope
|
= help: items from traits can only be used if the trait is implemented and in scope
|
||||||
= note: the following trait defines an item `f`, perhaps you need to implement it:
|
= note: the following trait defines an item `f`, perhaps you need to implement it:
|
||||||
candidate #1: `Trait`
|
candidate #1: `Trait`
|
||||||
|
|
|
@ -108,7 +108,7 @@ LL | let _val: Void = mem::zeroed();
|
||||||
| this code causes undefined behavior when executed
|
| this code causes undefined behavior when executed
|
||||||
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
|
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
|
||||||
|
|
|
|
||||||
= note: 0-variant enums have no valid value
|
= note: enums with no variants have no valid value
|
||||||
|
|
||||||
error: the type `Void` does not permit being left uninitialized
|
error: the type `Void` does not permit being left uninitialized
|
||||||
--> $DIR/uninitialized-zeroed.rs:47:26
|
--> $DIR/uninitialized-zeroed.rs:47:26
|
||||||
|
@ -119,7 +119,7 @@ LL | let _val: Void = mem::uninitialized();
|
||||||
| this code causes undefined behavior when executed
|
| this code causes undefined behavior when executed
|
||||||
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
|
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
|
||||||
|
|
|
|
||||||
= note: 0-variant enums have no valid value
|
= note: enums with no variants have no valid value
|
||||||
|
|
||||||
error: the type `&'static i32` does not permit zero-initialization
|
error: the type `&'static i32` does not permit zero-initialization
|
||||||
--> $DIR/uninitialized-zeroed.rs:49:34
|
--> $DIR/uninitialized-zeroed.rs:49:34
|
||||||
|
@ -294,7 +294,7 @@ LL | let _val: NonNull<i32> = mem::zeroed();
|
||||||
| this code causes undefined behavior when executed
|
| this code causes undefined behavior when executed
|
||||||
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
|
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
|
||||||
|
|
|
|
||||||
= note: std::ptr::NonNull<i32> must be non-null
|
= note: `std::ptr::NonNull<i32>` must be non-null
|
||||||
|
|
||||||
error: the type `std::ptr::NonNull<i32>` does not permit being left uninitialized
|
error: the type `std::ptr::NonNull<i32>` does not permit being left uninitialized
|
||||||
--> $DIR/uninitialized-zeroed.rs:68:34
|
--> $DIR/uninitialized-zeroed.rs:68:34
|
||||||
|
@ -305,7 +305,7 @@ LL | let _val: NonNull<i32> = mem::uninitialized();
|
||||||
| this code causes undefined behavior when executed
|
| this code causes undefined behavior when executed
|
||||||
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
|
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
|
||||||
|
|
|
|
||||||
= note: std::ptr::NonNull<i32> must be non-null
|
= note: `std::ptr::NonNull<i32>` must be non-null
|
||||||
|
|
||||||
error: the type `*const dyn std::marker::Send` does not permit zero-initialization
|
error: the type `*const dyn std::marker::Send` does not permit zero-initialization
|
||||||
--> $DIR/uninitialized-zeroed.rs:70:37
|
--> $DIR/uninitialized-zeroed.rs:70:37
|
||||||
|
@ -364,7 +364,7 @@ LL | let _val: NonBig = mem::uninitialized();
|
||||||
| this code causes undefined behavior when executed
|
| this code causes undefined behavior when executed
|
||||||
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
|
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
|
||||||
|
|
|
|
||||||
= note: NonBig must be initialized inside its custom valid range
|
= note: `NonBig` must be initialized inside its custom valid range
|
||||||
|
|
||||||
error: the type `&'static i32` does not permit zero-initialization
|
error: the type `&'static i32` does not permit zero-initialization
|
||||||
--> $DIR/uninitialized-zeroed.rs:84:34
|
--> $DIR/uninitialized-zeroed.rs:84:34
|
||||||
|
@ -397,7 +397,7 @@ LL | let _val: NonZeroU32 = mem::transmute(0);
|
||||||
| this code causes undefined behavior when executed
|
| this code causes undefined behavior when executed
|
||||||
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
|
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
|
||||||
|
|
|
|
||||||
= note: std::num::NonZeroU32 must be non-null
|
= note: `std::num::NonZeroU32` must be non-null
|
||||||
|
|
||||||
error: the type `std::ptr::NonNull<i32>` does not permit zero-initialization
|
error: the type `std::ptr::NonNull<i32>` does not permit zero-initialization
|
||||||
--> $DIR/uninitialized-zeroed.rs:89:34
|
--> $DIR/uninitialized-zeroed.rs:89:34
|
||||||
|
@ -408,7 +408,7 @@ LL | let _val: NonNull<i32> = MaybeUninit::zeroed().assume_init();
|
||||||
| this code causes undefined behavior when executed
|
| this code causes undefined behavior when executed
|
||||||
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
|
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
|
||||||
|
|
|
|
||||||
= note: std::ptr::NonNull<i32> must be non-null
|
= note: `std::ptr::NonNull<i32>` must be non-null
|
||||||
|
|
||||||
error: the type `std::ptr::NonNull<i32>` does not permit being left uninitialized
|
error: the type `std::ptr::NonNull<i32>` does not permit being left uninitialized
|
||||||
--> $DIR/uninitialized-zeroed.rs:90:34
|
--> $DIR/uninitialized-zeroed.rs:90:34
|
||||||
|
@ -419,7 +419,7 @@ LL | let _val: NonNull<i32> = MaybeUninit::uninit().assume_init();
|
||||||
| this code causes undefined behavior when executed
|
| this code causes undefined behavior when executed
|
||||||
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
|
| help: use `MaybeUninit<T>` instead, and only call `assume_init` after initialization is done
|
||||||
|
|
|
|
||||||
= note: std::ptr::NonNull<i32> must be non-null
|
= note: `std::ptr::NonNull<i32>` must be non-null
|
||||||
|
|
||||||
error: the type `bool` does not permit being left uninitialized
|
error: the type `bool` does not permit being left uninitialized
|
||||||
--> $DIR/uninitialized-zeroed.rs:91:26
|
--> $DIR/uninitialized-zeroed.rs:91:26
|
||||||
|
|
|
@ -4,7 +4,7 @@ error: suffixed literals are not allowed in attributes
|
||||||
LL | check!(0u8);
|
LL | check!(0u8);
|
||||||
| ^^^
|
| ^^^
|
||||||
|
|
|
|
||||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||||
|
|
||||||
error: unexpected token: `-0`
|
error: unexpected token: `-0`
|
||||||
--> $DIR/malformed-interpolated.rs:5:25
|
--> $DIR/malformed-interpolated.rs:5:25
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#[macro_use(foo, bar)] //~ ERROR arguments to macro_use are not allowed here
|
#[macro_use(foo, bar)] //~ ERROR arguments to `macro_use` are not allowed here
|
||||||
mod foo {
|
mod foo {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
error: arguments to macro_use are not allowed here
|
error: arguments to `macro_use` are not allowed here
|
||||||
--> $DIR/module-macro_use-arguments.rs:1:1
|
--> $DIR/module-macro_use-arguments.rs:1:1
|
||||||
|
|
|
|
||||||
LL | #[macro_use(foo, bar)]
|
LL | #[macro_use(foo, bar)]
|
||||||
|
|
|
@ -4,7 +4,7 @@ error: suffixed literals are not allowed in attributes
|
||||||
LL | #[rustc_dummy = 1usize]
|
LL | #[rustc_dummy = 1usize]
|
||||||
| ^^^^^^
|
| ^^^^^^
|
||||||
|
|
|
|
||||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||||
|
|
||||||
error: suffixed literals are not allowed in attributes
|
error: suffixed literals are not allowed in attributes
|
||||||
--> $DIR/suffixed-literal-meta.rs:5:17
|
--> $DIR/suffixed-literal-meta.rs:5:17
|
||||||
|
@ -12,7 +12,7 @@ error: suffixed literals are not allowed in attributes
|
||||||
LL | #[rustc_dummy = 1u8]
|
LL | #[rustc_dummy = 1u8]
|
||||||
| ^^^
|
| ^^^
|
||||||
|
|
|
|
||||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||||
|
|
||||||
error: suffixed literals are not allowed in attributes
|
error: suffixed literals are not allowed in attributes
|
||||||
--> $DIR/suffixed-literal-meta.rs:7:17
|
--> $DIR/suffixed-literal-meta.rs:7:17
|
||||||
|
@ -20,7 +20,7 @@ error: suffixed literals are not allowed in attributes
|
||||||
LL | #[rustc_dummy = 1u16]
|
LL | #[rustc_dummy = 1u16]
|
||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||||
|
|
||||||
error: suffixed literals are not allowed in attributes
|
error: suffixed literals are not allowed in attributes
|
||||||
--> $DIR/suffixed-literal-meta.rs:9:17
|
--> $DIR/suffixed-literal-meta.rs:9:17
|
||||||
|
@ -28,7 +28,7 @@ error: suffixed literals are not allowed in attributes
|
||||||
LL | #[rustc_dummy = 1u32]
|
LL | #[rustc_dummy = 1u32]
|
||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||||
|
|
||||||
error: suffixed literals are not allowed in attributes
|
error: suffixed literals are not allowed in attributes
|
||||||
--> $DIR/suffixed-literal-meta.rs:11:17
|
--> $DIR/suffixed-literal-meta.rs:11:17
|
||||||
|
@ -36,7 +36,7 @@ error: suffixed literals are not allowed in attributes
|
||||||
LL | #[rustc_dummy = 1u64]
|
LL | #[rustc_dummy = 1u64]
|
||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||||
|
|
||||||
error: suffixed literals are not allowed in attributes
|
error: suffixed literals are not allowed in attributes
|
||||||
--> $DIR/suffixed-literal-meta.rs:13:17
|
--> $DIR/suffixed-literal-meta.rs:13:17
|
||||||
|
@ -44,7 +44,7 @@ error: suffixed literals are not allowed in attributes
|
||||||
LL | #[rustc_dummy = 1isize]
|
LL | #[rustc_dummy = 1isize]
|
||||||
| ^^^^^^
|
| ^^^^^^
|
||||||
|
|
|
|
||||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||||
|
|
||||||
error: suffixed literals are not allowed in attributes
|
error: suffixed literals are not allowed in attributes
|
||||||
--> $DIR/suffixed-literal-meta.rs:15:17
|
--> $DIR/suffixed-literal-meta.rs:15:17
|
||||||
|
@ -52,7 +52,7 @@ error: suffixed literals are not allowed in attributes
|
||||||
LL | #[rustc_dummy = 1i8]
|
LL | #[rustc_dummy = 1i8]
|
||||||
| ^^^
|
| ^^^
|
||||||
|
|
|
|
||||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||||
|
|
||||||
error: suffixed literals are not allowed in attributes
|
error: suffixed literals are not allowed in attributes
|
||||||
--> $DIR/suffixed-literal-meta.rs:17:17
|
--> $DIR/suffixed-literal-meta.rs:17:17
|
||||||
|
@ -60,7 +60,7 @@ error: suffixed literals are not allowed in attributes
|
||||||
LL | #[rustc_dummy = 1i16]
|
LL | #[rustc_dummy = 1i16]
|
||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||||
|
|
||||||
error: suffixed literals are not allowed in attributes
|
error: suffixed literals are not allowed in attributes
|
||||||
--> $DIR/suffixed-literal-meta.rs:19:17
|
--> $DIR/suffixed-literal-meta.rs:19:17
|
||||||
|
@ -68,7 +68,7 @@ error: suffixed literals are not allowed in attributes
|
||||||
LL | #[rustc_dummy = 1i32]
|
LL | #[rustc_dummy = 1i32]
|
||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||||
|
|
||||||
error: suffixed literals are not allowed in attributes
|
error: suffixed literals are not allowed in attributes
|
||||||
--> $DIR/suffixed-literal-meta.rs:21:17
|
--> $DIR/suffixed-literal-meta.rs:21:17
|
||||||
|
@ -76,7 +76,7 @@ error: suffixed literals are not allowed in attributes
|
||||||
LL | #[rustc_dummy = 1i64]
|
LL | #[rustc_dummy = 1i64]
|
||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||||
|
|
||||||
error: suffixed literals are not allowed in attributes
|
error: suffixed literals are not allowed in attributes
|
||||||
--> $DIR/suffixed-literal-meta.rs:23:17
|
--> $DIR/suffixed-literal-meta.rs:23:17
|
||||||
|
@ -84,7 +84,7 @@ error: suffixed literals are not allowed in attributes
|
||||||
LL | #[rustc_dummy = 1.0f32]
|
LL | #[rustc_dummy = 1.0f32]
|
||||||
| ^^^^^^
|
| ^^^^^^
|
||||||
|
|
|
|
||||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||||
|
|
||||||
error: suffixed literals are not allowed in attributes
|
error: suffixed literals are not allowed in attributes
|
||||||
--> $DIR/suffixed-literal-meta.rs:25:17
|
--> $DIR/suffixed-literal-meta.rs:25:17
|
||||||
|
@ -92,7 +92,7 @@ error: suffixed literals are not allowed in attributes
|
||||||
LL | #[rustc_dummy = 1.0f64]
|
LL | #[rustc_dummy = 1.0f64]
|
||||||
| ^^^^^^
|
| ^^^^^^
|
||||||
|
|
|
|
||||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||||
|
|
||||||
error: suffixed literals are not allowed in attributes
|
error: suffixed literals are not allowed in attributes
|
||||||
--> $DIR/suffixed-literal-meta.rs:3:17
|
--> $DIR/suffixed-literal-meta.rs:3:17
|
||||||
|
@ -100,7 +100,7 @@ error: suffixed literals are not allowed in attributes
|
||||||
LL | #[rustc_dummy = 1usize]
|
LL | #[rustc_dummy = 1usize]
|
||||||
| ^^^^^^
|
| ^^^^^^
|
||||||
|
|
|
|
||||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||||
|
|
||||||
error: suffixed literals are not allowed in attributes
|
error: suffixed literals are not allowed in attributes
|
||||||
--> $DIR/suffixed-literal-meta.rs:5:17
|
--> $DIR/suffixed-literal-meta.rs:5:17
|
||||||
|
@ -108,7 +108,7 @@ error: suffixed literals are not allowed in attributes
|
||||||
LL | #[rustc_dummy = 1u8]
|
LL | #[rustc_dummy = 1u8]
|
||||||
| ^^^
|
| ^^^
|
||||||
|
|
|
|
||||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||||
|
|
||||||
error: suffixed literals are not allowed in attributes
|
error: suffixed literals are not allowed in attributes
|
||||||
--> $DIR/suffixed-literal-meta.rs:7:17
|
--> $DIR/suffixed-literal-meta.rs:7:17
|
||||||
|
@ -116,7 +116,7 @@ error: suffixed literals are not allowed in attributes
|
||||||
LL | #[rustc_dummy = 1u16]
|
LL | #[rustc_dummy = 1u16]
|
||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||||
|
|
||||||
error: suffixed literals are not allowed in attributes
|
error: suffixed literals are not allowed in attributes
|
||||||
--> $DIR/suffixed-literal-meta.rs:9:17
|
--> $DIR/suffixed-literal-meta.rs:9:17
|
||||||
|
@ -124,7 +124,7 @@ error: suffixed literals are not allowed in attributes
|
||||||
LL | #[rustc_dummy = 1u32]
|
LL | #[rustc_dummy = 1u32]
|
||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||||
|
|
||||||
error: suffixed literals are not allowed in attributes
|
error: suffixed literals are not allowed in attributes
|
||||||
--> $DIR/suffixed-literal-meta.rs:11:17
|
--> $DIR/suffixed-literal-meta.rs:11:17
|
||||||
|
@ -132,7 +132,7 @@ error: suffixed literals are not allowed in attributes
|
||||||
LL | #[rustc_dummy = 1u64]
|
LL | #[rustc_dummy = 1u64]
|
||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||||
|
|
||||||
error: suffixed literals are not allowed in attributes
|
error: suffixed literals are not allowed in attributes
|
||||||
--> $DIR/suffixed-literal-meta.rs:13:17
|
--> $DIR/suffixed-literal-meta.rs:13:17
|
||||||
|
@ -140,7 +140,7 @@ error: suffixed literals are not allowed in attributes
|
||||||
LL | #[rustc_dummy = 1isize]
|
LL | #[rustc_dummy = 1isize]
|
||||||
| ^^^^^^
|
| ^^^^^^
|
||||||
|
|
|
|
||||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||||
|
|
||||||
error: suffixed literals are not allowed in attributes
|
error: suffixed literals are not allowed in attributes
|
||||||
--> $DIR/suffixed-literal-meta.rs:15:17
|
--> $DIR/suffixed-literal-meta.rs:15:17
|
||||||
|
@ -148,7 +148,7 @@ error: suffixed literals are not allowed in attributes
|
||||||
LL | #[rustc_dummy = 1i8]
|
LL | #[rustc_dummy = 1i8]
|
||||||
| ^^^
|
| ^^^
|
||||||
|
|
|
|
||||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||||
|
|
||||||
error: suffixed literals are not allowed in attributes
|
error: suffixed literals are not allowed in attributes
|
||||||
--> $DIR/suffixed-literal-meta.rs:17:17
|
--> $DIR/suffixed-literal-meta.rs:17:17
|
||||||
|
@ -156,7 +156,7 @@ error: suffixed literals are not allowed in attributes
|
||||||
LL | #[rustc_dummy = 1i16]
|
LL | #[rustc_dummy = 1i16]
|
||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||||
|
|
||||||
error: suffixed literals are not allowed in attributes
|
error: suffixed literals are not allowed in attributes
|
||||||
--> $DIR/suffixed-literal-meta.rs:19:17
|
--> $DIR/suffixed-literal-meta.rs:19:17
|
||||||
|
@ -164,7 +164,7 @@ error: suffixed literals are not allowed in attributes
|
||||||
LL | #[rustc_dummy = 1i32]
|
LL | #[rustc_dummy = 1i32]
|
||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||||
|
|
||||||
error: suffixed literals are not allowed in attributes
|
error: suffixed literals are not allowed in attributes
|
||||||
--> $DIR/suffixed-literal-meta.rs:21:17
|
--> $DIR/suffixed-literal-meta.rs:21:17
|
||||||
|
@ -172,7 +172,7 @@ error: suffixed literals are not allowed in attributes
|
||||||
LL | #[rustc_dummy = 1i64]
|
LL | #[rustc_dummy = 1i64]
|
||||||
| ^^^^
|
| ^^^^
|
||||||
|
|
|
|
||||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||||
|
|
||||||
error: suffixed literals are not allowed in attributes
|
error: suffixed literals are not allowed in attributes
|
||||||
--> $DIR/suffixed-literal-meta.rs:23:17
|
--> $DIR/suffixed-literal-meta.rs:23:17
|
||||||
|
@ -180,7 +180,7 @@ error: suffixed literals are not allowed in attributes
|
||||||
LL | #[rustc_dummy = 1.0f32]
|
LL | #[rustc_dummy = 1.0f32]
|
||||||
| ^^^^^^
|
| ^^^^^^
|
||||||
|
|
|
|
||||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||||
|
|
||||||
error: suffixed literals are not allowed in attributes
|
error: suffixed literals are not allowed in attributes
|
||||||
--> $DIR/suffixed-literal-meta.rs:25:17
|
--> $DIR/suffixed-literal-meta.rs:25:17
|
||||||
|
@ -188,7 +188,7 @@ error: suffixed literals are not allowed in attributes
|
||||||
LL | #[rustc_dummy = 1.0f64]
|
LL | #[rustc_dummy = 1.0f64]
|
||||||
| ^^^^^^
|
| ^^^^^^
|
||||||
|
|
|
|
||||||
= help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
|
= help: instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
|
||||||
|
|
||||||
error: aborting due to 24 previous errors
|
error: aborting due to 24 previous errors
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ error[E0599]: no method named `call` found for closure `[closure@$DIR/unboxed-cl
|
||||||
LL | mut_.call((0, ));
|
LL | mut_.call((0, ));
|
||||||
| ^^^^ method not found in `[closure@$DIR/unboxed-closures-static-call-wrong-trait.rs:6:26: 6:31]`
|
| ^^^^ method not found in `[closure@$DIR/unboxed-closures-static-call-wrong-trait.rs:6:26: 6:31]`
|
||||||
|
|
|
|
||||||
= note: mut_ is a function, perhaps you wish to call it
|
= note: `mut_` is a function, perhaps you wish to call it
|
||||||
|
|
||||||
error: aborting due to previous error
|
error: aborting due to previous error
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue