Merge from rustc
This commit is contained in:
commit
55df622b35
81 changed files with 692 additions and 427 deletions
|
|
@ -57,22 +57,22 @@ define-function: (
|
|||
|
||||
call-function: ("check-filter", {
|
||||
"theme": "ayu",
|
||||
"border": "rgb(92, 103, 115)",
|
||||
"border": "#5c6773",
|
||||
"filter": "invert(0.41) sepia(0.12) saturate(4.87) hue-rotate(171deg) brightness(0.94) contrast(0.94)",
|
||||
"hover_border": "rgb(224, 224, 224)",
|
||||
"hover_border": "#e0e0e0",
|
||||
"hover_filter": "invert(0.98) sepia(0.12) saturate(0.81) hue-rotate(343deg) brightness(1.13) contrast(0.76)",
|
||||
})
|
||||
call-function: ("check-filter", {
|
||||
"theme": "dark",
|
||||
"border": "rgb(224, 224, 224)",
|
||||
"border": "#e0e0e0",
|
||||
"filter": "invert(0.94) sepia(0) saturate(7.21) hue-rotate(255deg) brightness(0.9) contrast(0.9)",
|
||||
"hover_border": "rgb(33, 150, 243)",
|
||||
"hover_border": "#2196f3",
|
||||
"hover_filter": "invert(0.69) sepia(0.6) saturate(66.13) hue-rotate(184deg) brightness(1) contrast(0.91)",
|
||||
})
|
||||
call-function: ("check-filter", {
|
||||
"theme": "light",
|
||||
"border": "rgb(224, 224, 224)",
|
||||
"border": "#e0e0e0",
|
||||
"filter": "invert(1) sepia(0) saturate(42.23) hue-rotate(289deg) brightness(1.14) contrast(0.76)",
|
||||
"hover_border": "rgb(113, 113, 113)",
|
||||
"hover_border": "#717171",
|
||||
"hover_filter": "invert(0.44) sepia(0.18) saturate(0.23) hue-rotate(317deg) brightness(0.96) contrast(0.93)",
|
||||
})
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ LL | arg: NotIntoDiagnosticArg,
|
|||
|
|
||||
= help: normalized in stderr
|
||||
note: required by a bound in `Diagnostic::set_arg`
|
||||
--> $COMPILER_DIR/rustc_errors/src/diagnostic.rs:964:5
|
||||
--> $COMPILER_DIR/rustc_errors/src/diagnostic.rs:960:5
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ impl ::core::default::Default for Empty {
|
|||
}
|
||||
#[automatically_derived]
|
||||
impl ::core::hash::Hash for Empty {
|
||||
#[inline]
|
||||
fn hash<__H: ::core::hash::Hasher>(&self, state: &mut __H) -> () {}
|
||||
}
|
||||
#[automatically_derived]
|
||||
|
|
@ -113,6 +114,7 @@ impl ::core::default::Default for Point {
|
|||
}
|
||||
#[automatically_derived]
|
||||
impl ::core::hash::Hash for Point {
|
||||
#[inline]
|
||||
fn hash<__H: ::core::hash::Hasher>(&self, state: &mut __H) -> () {
|
||||
::core::hash::Hash::hash(&self.x, state);
|
||||
::core::hash::Hash::hash(&self.y, state)
|
||||
|
|
@ -198,6 +200,7 @@ impl ::core::default::Default for PackedPoint {
|
|||
}
|
||||
#[automatically_derived]
|
||||
impl ::core::hash::Hash for PackedPoint {
|
||||
#[inline]
|
||||
fn hash<__H: ::core::hash::Hasher>(&self, state: &mut __H) -> () {
|
||||
::core::hash::Hash::hash(&{ self.x }, state);
|
||||
::core::hash::Hash::hash(&{ self.y }, state)
|
||||
|
|
@ -301,6 +304,7 @@ impl ::core::default::Default for Big {
|
|||
}
|
||||
#[automatically_derived]
|
||||
impl ::core::hash::Hash for Big {
|
||||
#[inline]
|
||||
fn hash<__H: ::core::hash::Hasher>(&self, state: &mut __H) -> () {
|
||||
::core::hash::Hash::hash(&self.b1, state);
|
||||
::core::hash::Hash::hash(&self.b2, state);
|
||||
|
|
@ -478,6 +482,7 @@ impl ::core::fmt::Debug for Unsized {
|
|||
}
|
||||
#[automatically_derived]
|
||||
impl ::core::hash::Hash for Unsized {
|
||||
#[inline]
|
||||
fn hash<__H: ::core::hash::Hasher>(&self, state: &mut __H) -> () {
|
||||
::core::hash::Hash::hash(&self.0, state)
|
||||
}
|
||||
|
|
@ -529,6 +534,7 @@ impl ::core::fmt::Debug for PackedUnsizedU8 {
|
|||
}
|
||||
#[automatically_derived]
|
||||
impl ::core::hash::Hash for PackedUnsizedU8 {
|
||||
#[inline]
|
||||
fn hash<__H: ::core::hash::Hasher>(&self, state: &mut __H) -> () {
|
||||
::core::hash::Hash::hash(&self.0, state)
|
||||
}
|
||||
|
|
@ -584,6 +590,7 @@ impl<T: ::core::default::Default + Trait, U: ::core::default::Default>
|
|||
#[automatically_derived]
|
||||
impl<T: ::core::hash::Hash + Trait, U: ::core::hash::Hash> ::core::hash::Hash
|
||||
for Generic<T, U> where T::A: ::core::hash::Hash {
|
||||
#[inline]
|
||||
fn hash<__H: ::core::hash::Hasher>(&self, state: &mut __H) -> () {
|
||||
::core::hash::Hash::hash(&self.t, state);
|
||||
::core::hash::Hash::hash(&self.ta, state);
|
||||
|
|
@ -701,6 +708,7 @@ impl<T: ::core::hash::Hash + ::core::marker::Copy + Trait,
|
|||
U: ::core::hash::Hash + ::core::marker::Copy> ::core::hash::Hash for
|
||||
PackedGeneric<T, U> where T::A: ::core::hash::Hash + ::core::marker::Copy
|
||||
{
|
||||
#[inline]
|
||||
fn hash<__H: ::core::hash::Hasher>(&self, state: &mut __H) -> () {
|
||||
::core::hash::Hash::hash(&{ self.0 }, state);
|
||||
::core::hash::Hash::hash(&{ self.1 }, state);
|
||||
|
|
@ -795,6 +803,7 @@ impl ::core::fmt::Debug for Enum0 {
|
|||
}
|
||||
#[automatically_derived]
|
||||
impl ::core::hash::Hash for Enum0 {
|
||||
#[inline]
|
||||
fn hash<__H: ::core::hash::Hasher>(&self, state: &mut __H) -> () {
|
||||
unsafe { ::core::intrinsics::unreachable() }
|
||||
}
|
||||
|
|
@ -861,6 +870,7 @@ impl ::core::fmt::Debug for Enum1 {
|
|||
}
|
||||
#[automatically_derived]
|
||||
impl ::core::hash::Hash for Enum1 {
|
||||
#[inline]
|
||||
fn hash<__H: ::core::hash::Hasher>(&self, state: &mut __H) -> () {
|
||||
match self {
|
||||
Enum1::Single { x: __self_0 } =>
|
||||
|
|
@ -937,6 +947,7 @@ impl ::core::default::Default for Fieldless1 {
|
|||
}
|
||||
#[automatically_derived]
|
||||
impl ::core::hash::Hash for Fieldless1 {
|
||||
#[inline]
|
||||
fn hash<__H: ::core::hash::Hasher>(&self, state: &mut __H) -> () {}
|
||||
}
|
||||
#[automatically_derived]
|
||||
|
|
@ -1004,6 +1015,7 @@ impl ::core::default::Default for Fieldless {
|
|||
}
|
||||
#[automatically_derived]
|
||||
impl ::core::hash::Hash for Fieldless {
|
||||
#[inline]
|
||||
fn hash<__H: ::core::hash::Hasher>(&self, state: &mut __H) -> () {
|
||||
let __self_tag = ::core::intrinsics::discriminant_value(self);
|
||||
::core::hash::Hash::hash(&__self_tag, state)
|
||||
|
|
@ -1095,6 +1107,7 @@ impl ::core::default::Default for Mixed {
|
|||
}
|
||||
#[automatically_derived]
|
||||
impl ::core::hash::Hash for Mixed {
|
||||
#[inline]
|
||||
fn hash<__H: ::core::hash::Hasher>(&self, state: &mut __H) -> () {
|
||||
let __self_tag = ::core::intrinsics::discriminant_value(self);
|
||||
::core::hash::Hash::hash(&__self_tag, state);
|
||||
|
|
@ -1224,6 +1237,7 @@ impl ::core::fmt::Debug for Fielded {
|
|||
}
|
||||
#[automatically_derived]
|
||||
impl ::core::hash::Hash for Fielded {
|
||||
#[inline]
|
||||
fn hash<__H: ::core::hash::Hasher>(&self, state: &mut __H) -> () {
|
||||
let __self_tag = ::core::intrinsics::discriminant_value(self);
|
||||
::core::hash::Hash::hash(&__self_tag, state);
|
||||
|
|
@ -1345,6 +1359,7 @@ impl<T: ::core::fmt::Debug, U: ::core::fmt::Debug> ::core::fmt::Debug for
|
|||
#[automatically_derived]
|
||||
impl<T: ::core::hash::Hash, U: ::core::hash::Hash> ::core::hash::Hash for
|
||||
EnumGeneric<T, U> {
|
||||
#[inline]
|
||||
fn hash<__H: ::core::hash::Hasher>(&self, state: &mut __H) -> () {
|
||||
let __self_tag = ::core::intrinsics::discriminant_value(self);
|
||||
::core::hash::Hash::hash(&__self_tag, state);
|
||||
|
|
|
|||
6
tests/ui/linkage-attr/incompatible-flavor.rs
Normal file
6
tests/ui/linkage-attr/incompatible-flavor.rs
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
// compile-flags: --target=x86_64-unknown-linux-gnu -C linker-flavor=msvc --crate-type=rlib
|
||||
// error-pattern: linker flavor `msvc` is incompatible with the current target
|
||||
// needs-llvm-components:
|
||||
|
||||
#![feature(no_core)]
|
||||
#![no_core]
|
||||
6
tests/ui/linkage-attr/incompatible-flavor.stderr
Normal file
6
tests/ui/linkage-attr/incompatible-flavor.stderr
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
error: linker flavor `msvc` is incompatible with the current target
|
||||
|
|
||||
= note: compatible flavors are: gcc, ld, ld.lld
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
// build-fail
|
||||
// dont-check-compiler-stderr
|
||||
// compile-flags: -C linker=llllll -C linker-flavor=ld
|
||||
// compile-flags: -C linker=llllll
|
||||
// error-pattern: `llllll`
|
||||
|
||||
// Before, the error-pattern checked for "not found". On WSL with appendWindowsPath=true, running
|
||||
|
|
|
|||
2
tests/ui/linkage-attr/unstable-flavor.bpf.stderr
Normal file
2
tests/ui/linkage-attr/unstable-flavor.bpf.stderr
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
error: linker flavor `bpf-linker` is unstable, `-Z unstable-options` flag must also be passed to explicitly use it
|
||||
|
||||
2
tests/ui/linkage-attr/unstable-flavor.ptx.stderr
Normal file
2
tests/ui/linkage-attr/unstable-flavor.ptx.stderr
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
error: linker flavor `ptx-linker` is unstable, `-Z unstable-options` flag must also be passed to explicitly use it
|
||||
|
||||
10
tests/ui/linkage-attr/unstable-flavor.rs
Normal file
10
tests/ui/linkage-attr/unstable-flavor.rs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
// revisions: bpf ptx
|
||||
// [bpf] compile-flags: --target=bpfel-unknown-none -C linker-flavor=bpf-linker --crate-type=rlib
|
||||
// [bpf] error-pattern: linker flavor `bpf-linker` is unstable, `-Z unstable-options` flag
|
||||
// [bpf] needs-llvm-components:
|
||||
// [ptx] compile-flags: --target=nvptx64-nvidia-cuda -C linker-flavor=ptx-linker --crate-type=rlib
|
||||
// [ptx] error-pattern: linker flavor `ptx-linker` is unstable, `-Z unstable-options` flag
|
||||
// [ptx] needs-llvm-components:
|
||||
|
||||
#![feature(no_core)]
|
||||
#![no_core]
|
||||
16
tests/ui/parser/typod-const-in-const-param-def.rs
Normal file
16
tests/ui/parser/typod-const-in-const-param-def.rs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
pub fn foo<Const N: u8>() {}
|
||||
//~^ ERROR `const` keyword was mistyped as `Const`
|
||||
|
||||
pub fn bar<Const>() {}
|
||||
// OK
|
||||
|
||||
pub fn baz<Const N: u8, T>() {}
|
||||
//~^ ERROR `const` keyword was mistyped as `Const`
|
||||
|
||||
pub fn qux<T, Const N: u8>() {}
|
||||
//~^ ERROR `const` keyword was mistyped as `Const`
|
||||
|
||||
pub fn quux<T, Const N: u8, U>() {}
|
||||
//~^ ERROR `const` keyword was mistyped as `Const`
|
||||
|
||||
fn main() {}
|
||||
46
tests/ui/parser/typod-const-in-const-param-def.stderr
Normal file
46
tests/ui/parser/typod-const-in-const-param-def.stderr
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
error: `const` keyword was mistyped as `Const`
|
||||
--> $DIR/typod-const-in-const-param-def.rs:1:12
|
||||
|
|
||||
LL | pub fn foo<Const N: u8>() {}
|
||||
| ^^^^^
|
||||
|
|
||||
help: use the `const` keyword
|
||||
|
|
||||
LL | pub fn foo<const N: u8>() {}
|
||||
| ~~~~~
|
||||
|
||||
error: `const` keyword was mistyped as `Const`
|
||||
--> $DIR/typod-const-in-const-param-def.rs:7:12
|
||||
|
|
||||
LL | pub fn baz<Const N: u8, T>() {}
|
||||
| ^^^^^
|
||||
|
|
||||
help: use the `const` keyword
|
||||
|
|
||||
LL | pub fn baz<const N: u8, T>() {}
|
||||
| ~~~~~
|
||||
|
||||
error: `const` keyword was mistyped as `Const`
|
||||
--> $DIR/typod-const-in-const-param-def.rs:10:15
|
||||
|
|
||||
LL | pub fn qux<T, Const N: u8>() {}
|
||||
| ^^^^^
|
||||
|
|
||||
help: use the `const` keyword
|
||||
|
|
||||
LL | pub fn qux<T, const N: u8>() {}
|
||||
| ~~~~~
|
||||
|
||||
error: `const` keyword was mistyped as `Const`
|
||||
--> $DIR/typod-const-in-const-param-def.rs:13:16
|
||||
|
|
||||
LL | pub fn quux<T, Const N: u8, U>() {}
|
||||
| ^^^^^
|
||||
|
|
||||
help: use the `const` keyword
|
||||
|
|
||||
LL | pub fn quux<T, const N: u8, U>() {}
|
||||
| ~~~~~
|
||||
|
||||
error: aborting due to 4 previous errors
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue