1
Fork 0

Enable more tests on Windows

This commit is contained in:
Ben Kimock 2024-12-25 22:24:30 -05:00
commit 7dfc786df1
46 changed files with 41 additions and 63 deletions

View file

@ -1,6 +1,6 @@
// Verify that debuginfo column numbers are 1-based byte offsets. // Verify that debuginfo column numbers are 1-based byte offsets.
// //
//@ ignore-windows //@ ignore-msvc
//@ compile-flags: -C debuginfo=2 //@ compile-flags: -C debuginfo=2
#[rustfmt::skip] #[rustfmt::skip]

View file

@ -1,5 +1,5 @@
//@ compile-flags: -C no-prepopulate-passes -C panic=abort -C force-unwind-tables=n //@ compile-flags: -C no-prepopulate-passes -C panic=abort -C force-unwind-tables=n
//@ ignore-windows //@ ignore-windows: unwind tables are required for panics on Windows
#![crate_type = "lib"] #![crate_type = "lib"]

View file

@ -1,6 +1,6 @@
//@ compile-flags: -O //@ compile-flags: -O
//@ aux-build:thread_local_aux.rs //@ aux-build:thread_local_aux.rs
//@ ignore-windows FIXME(#84933) //@ ignore-windows FIXME(#134939)
//@ ignore-wasm globals are used instead of thread locals //@ ignore-wasm globals are used instead of thread locals
//@ ignore-emscripten globals are used instead of thread locals //@ ignore-emscripten globals are used instead of thread locals
//@ ignore-android does not use #[thread_local] //@ ignore-android does not use #[thread_local]

View file

@ -2,6 +2,10 @@
//@compile-flags: -Clink-dead-code=true --crate-type lib //@compile-flags: -Clink-dead-code=true --crate-type lib
//@ only-x86_64 //@ only-x86_64
//@ ignore-windows //@ ignore-windows
// The set of targets this crashes on is really fiddly, because it is deep in our ABI logic. It
// crashes on x86_64-unknown-linux-gnu, and i686-pc-windows-msvc, but not on
// x86_64-pc-windows-msvc. If you are trying to fix this crash, don't pay too much attention to the
// directives.
#![feature(rust_cold_cc)] #![feature(rust_cold_cc)]
pub extern "rust-cold" fn foo(_: [usize; 3]) {} pub extern "rust-cold" fn foo(_: [usize; 3]) {}

View file

@ -1,4 +1,4 @@
//@ ignore-windows //@ ignore-windows different error message
//@ revisions: edition2015 edition2024 //@ revisions: edition2015 edition2024
//@[edition2015]edition:2015 //@[edition2015]edition:2015
//@[edition2015]check-fail //@[edition2015]check-fail

View file

@ -4,7 +4,6 @@
//@ ignore-stage1 //@ ignore-stage1
//@ ignore-cross-compile //@ ignore-cross-compile
//@ ignore-remote //@ ignore-remote
//@ ignore-windows-gnu mingw has troubles with linking https://github.com/rust-lang/rust/pull/116837
#![feature(rustc_private)] #![feature(rustc_private)]
#![feature(assert_matches)] #![feature(assert_matches)]

View file

@ -5,7 +5,6 @@
//@ ignore-stage1 //@ ignore-stage1
//@ ignore-cross-compile //@ ignore-cross-compile
//@ ignore-remote //@ ignore-remote
//@ ignore-windows-gnu mingw has troubles with linking https://github.com/rust-lang/rust/pull/116837
//@ edition: 2021 //@ edition: 2021
#![feature(rustc_private)] #![feature(rustc_private)]

View file

@ -4,7 +4,6 @@
//@ ignore-stage1 //@ ignore-stage1
//@ ignore-cross-compile //@ ignore-cross-compile
//@ ignore-remote //@ ignore-remote
//@ ignore-windows-gnu mingw has troubles with linking https://github.com/rust-lang/rust/pull/116837
#![feature(rustc_private)] #![feature(rustc_private)]

View file

@ -4,7 +4,6 @@
//@ ignore-stage1 //@ ignore-stage1
//@ ignore-cross-compile //@ ignore-cross-compile
//@ ignore-remote //@ ignore-remote
//@ ignore-windows-gnu mingw has troubles with linking https://github.com/rust-lang/rust/pull/116837
#![feature(rustc_private)] #![feature(rustc_private)]

View file

@ -4,7 +4,6 @@
//@ ignore-stage1 //@ ignore-stage1
//@ ignore-cross-compile //@ ignore-cross-compile
//@ ignore-remote //@ ignore-remote
//@ ignore-windows-gnu mingw has troubles with linking https://github.com/rust-lang/rust/pull/116837
#![feature(rustc_private)] #![feature(rustc_private)]
#![feature(assert_matches)] #![feature(assert_matches)]

View file

@ -5,7 +5,6 @@
//@ ignore-stage1 //@ ignore-stage1
//@ ignore-cross-compile //@ ignore-cross-compile
//@ ignore-remote //@ ignore-remote
//@ ignore-windows-gnu mingw has troubles with linking https://github.com/rust-lang/rust/pull/116837
//@ edition: 2021 //@ edition: 2021
#![feature(rustc_private)] #![feature(rustc_private)]

View file

@ -4,7 +4,6 @@
//@ ignore-stage1 //@ ignore-stage1
//@ ignore-cross-compile //@ ignore-cross-compile
//@ ignore-remote //@ ignore-remote
//@ ignore-windows-gnu mingw has troubles with linking https://github.com/rust-lang/rust/pull/116837
//@ edition: 2021 //@ edition: 2021
#![feature(rustc_private)] #![feature(rustc_private)]

View file

@ -4,7 +4,6 @@
//@ ignore-stage1 //@ ignore-stage1
//@ ignore-cross-compile //@ ignore-cross-compile
//@ ignore-remote //@ ignore-remote
//@ ignore-windows-gnu mingw has troubles with linking https://github.com/rust-lang/rust/pull/116837
//@ edition: 2021 //@ edition: 2021
#![feature(rustc_private)] #![feature(rustc_private)]

View file

@ -4,7 +4,6 @@
//@ ignore-stage1 //@ ignore-stage1
//@ ignore-cross-compile //@ ignore-cross-compile
//@ ignore-remote //@ ignore-remote
//@ ignore-windows-gnu mingw has troubles with linking https://github.com/rust-lang/rust/pull/116837
//@ edition: 2021 //@ edition: 2021
#![feature(rustc_private)] #![feature(rustc_private)]

View file

@ -8,7 +8,6 @@
//@ ignore-stage1 //@ ignore-stage1
//@ ignore-cross-compile //@ ignore-cross-compile
//@ ignore-remote //@ ignore-remote
//@ ignore-windows-gnu mingw has troubles with linking https://github.com/rust-lang/rust/pull/116837
#![feature(rustc_private)] #![feature(rustc_private)]
#![feature(assert_matches)] #![feature(assert_matches)]

View file

@ -4,7 +4,6 @@
//@ ignore-stage1 //@ ignore-stage1
//@ ignore-cross-compile //@ ignore-cross-compile
//@ ignore-remote //@ ignore-remote
//@ ignore-windows-gnu mingw has troubles with linking https://github.com/rust-lang/rust/pull/116837
//@ edition: 2021 //@ edition: 2021
#![feature(rustc_private)] #![feature(rustc_private)]

View file

@ -4,7 +4,6 @@
//@ ignore-stage1 //@ ignore-stage1
//@ ignore-cross-compile //@ ignore-cross-compile
//@ ignore-remote //@ ignore-remote
//@ ignore-windows-gnu mingw has troubles with linking https://github.com/rust-lang/rust/pull/116837
//@ edition: 2021 //@ edition: 2021
#![feature(rustc_private)] #![feature(rustc_private)]

View file

@ -4,7 +4,6 @@
//@ ignore-stage1 //@ ignore-stage1
//@ ignore-cross-compile //@ ignore-cross-compile
//@ ignore-remote //@ ignore-remote
//@ ignore-windows-gnu mingw has troubles with linking https://github.com/rust-lang/rust/pull/116837
//@ edition: 2021 //@ edition: 2021
#![feature(rustc_private)] #![feature(rustc_private)]

View file

@ -4,7 +4,6 @@
//@ ignore-stage1 //@ ignore-stage1
//@ ignore-cross-compile //@ ignore-cross-compile
//@ ignore-remote //@ ignore-remote
//@ ignore-windows-gnu mingw has troubles with linking https://github.com/rust-lang/rust/pull/116837
#![feature(rustc_private)] #![feature(rustc_private)]
#![feature(assert_matches)] #![feature(assert_matches)]

View file

@ -5,7 +5,6 @@
//@ ignore-stage1 //@ ignore-stage1
//@ ignore-cross-compile //@ ignore-cross-compile
//@ ignore-remote //@ ignore-remote
//@ ignore-windows-gnu mingw has troubles with linking https://github.com/rust-lang/rust/pull/116837
//@ edition: 2021 //@ edition: 2021
#![feature(rustc_private)] #![feature(rustc_private)]

View file

@ -4,7 +4,6 @@
//@ ignore-stage1 //@ ignore-stage1
//@ ignore-cross-compile //@ ignore-cross-compile
//@ ignore-remote //@ ignore-remote
//@ ignore-windows-gnu mingw has troubles with linking https://github.com/rust-lang/rust/pull/116837
//@ edition: 2021 //@ edition: 2021
#![feature(rustc_private)] #![feature(rustc_private)]

View file

@ -4,7 +4,6 @@
//@ ignore-stage1 //@ ignore-stage1
//@ ignore-cross-compile //@ ignore-cross-compile
//@ ignore-remote //@ ignore-remote
//@ ignore-windows-gnu mingw has troubles with linking https://github.com/rust-lang/rust/pull/116837
//@ edition: 2021 //@ edition: 2021
#![feature(rustc_private)] #![feature(rustc_private)]

View file

@ -4,7 +4,6 @@
//@ ignore-stage1 //@ ignore-stage1
//@ ignore-cross-compile //@ ignore-cross-compile
//@ ignore-remote //@ ignore-remote
//@ ignore-windows-gnu mingw has troubles with linking https://github.com/rust-lang/rust/pull/116837
//@ edition: 2021 //@ edition: 2021
#![feature(rustc_private)] #![feature(rustc_private)]

View file

@ -5,7 +5,6 @@
//@ ignore-stage1 //@ ignore-stage1
//@ ignore-cross-compile //@ ignore-cross-compile
//@ ignore-remote //@ ignore-remote
//@ ignore-windows-gnu mingw has troubles with linking https://github.com/rust-lang/rust/pull/116837
//@ edition: 2021 //@ edition: 2021
#![feature(rustc_private)] #![feature(rustc_private)]

View file

@ -4,7 +4,6 @@
//@ ignore-stage1 //@ ignore-stage1
//@ ignore-cross-compile //@ ignore-cross-compile
//@ ignore-remote //@ ignore-remote
//@ ignore-windows-gnu mingw has troubles with linking https://github.com/rust-lang/rust/pull/116837
//@ edition: 2021 //@ edition: 2021
#![feature(rustc_private)] #![feature(rustc_private)]

View file

@ -4,7 +4,6 @@
//@ ignore-stage1 //@ ignore-stage1
//@ ignore-cross-compile //@ ignore-cross-compile
//@ ignore-remote //@ ignore-remote
//@ ignore-windows-gnu mingw has troubles with linking https://github.com/rust-lang/rust/pull/116837
//@ edition: 2021 //@ edition: 2021
#![feature(rustc_private)] #![feature(rustc_private)]

View file

@ -29,7 +29,8 @@
//@ ignore-aarch64 //@ ignore-aarch64
//@ ignore-windows //@ ignore-windows
// note: windows is ignored as rust_test_helpers does not have the sysv64 abi on windows // Windows is ignored because bootstrap doesn't yet know to compile rust_test_helpers with
// the sysv64 ABI on Windows.
#[allow(dead_code)] #[allow(dead_code)]
#[allow(improper_ctypes)] #[allow(improper_ctypes)]

View file

@ -1,6 +1,5 @@
//@ compile-flags: -Copt-level=0 //@ compile-flags: -Copt-level=0
//@ only-x86_64 //@ only-x86_64
//@ ignore-windows
//@ min-llvm-version: 19 //@ min-llvm-version: 19
//@ build-pass //@ build-pass

View file

@ -1,4 +1,4 @@
//@ ignore-windows //@ ignore-windows FIXME(134939): thread_local + no_mangle doesn't work on Windows
//@ aux-build:cfg-target-thread-local.rs //@ aux-build:cfg-target-thread-local.rs
#![feature(thread_local)] #![feature(thread_local)]

View file

@ -1,4 +1,4 @@
//@ ignore-windows different list of satisfying impls //@ ignore-windows FIXME: We get an extra E0283 on Windows
fn main() { fn main() {
let n: u32 = 1; let n: u32 = 1;
let mut d: u64 = 2; let mut d: u64 = 2;

View file

@ -1,5 +1,4 @@
//@ run-pass //@ run-pass
//@ ignore-windows
//@ ignore-apple //@ ignore-apple
//@ ignore-wasm32 common linkage not implemented right now //@ ignore-wasm32 common linkage not implemented right now
@ -11,9 +10,11 @@ pub static TEST2: bool = true;
#[linkage = "internal"] #[linkage = "internal"]
pub static TEST3: bool = true; pub static TEST3: bool = true;
#[cfg(not(target_env = "msvc"))]
#[linkage = "linkonce"] #[linkage = "linkonce"]
pub static TEST4: bool = true; pub static TEST4: bool = true;
#[cfg(not(target_env = "msvc"))]
#[linkage = "linkonce_odr"] #[linkage = "linkonce_odr"]
pub static TEST5: bool = true; pub static TEST5: bool = true;

View file

@ -3,7 +3,6 @@
// functions. Failure results in a linker error. // functions. Failure results in a linker error.
//@ ignore-emscripten no weak symbol support //@ ignore-emscripten no weak symbol support
//@ ignore-windows no extern_weak linkage
//@ ignore-apple no extern_weak linkage //@ ignore-apple no extern_weak linkage
//@ aux-build:lib.rs //@ aux-build:lib.rs

View file

@ -1,5 +1,4 @@
//@ run-pass //@ run-pass
//@ ignore-windows
//@ needs-threads //@ needs-threads
use std::cell::Cell; use std::cell::Cell;

View file

@ -1,7 +1,8 @@
//@ run-pass //@ run-pass
//@ compile-flags: -C codegen-units=8 -Z thinlto //@ compile-flags: -C codegen-units=8 -Z thinlto
//@ ignore-windows //@ ignore-i686-pc-windows-gnu
//@ ignore-x86_64-pc-windows-gnu
#![feature(linkage)] #![feature(linkage)]

View file

@ -1,5 +1,3 @@
//@ ignore-windows
mod not_a_real_file; //~ ERROR file not found for module `not_a_real_file` mod not_a_real_file; //~ ERROR file not found for module `not_a_real_file`
//~^ HELP to create the module `not_a_real_file`, create file //~^ HELP to create the module `not_a_real_file`, create file

View file

@ -1,5 +1,5 @@
error[E0583]: file not found for module `not_a_real_file` error[E0583]: file not found for module `not_a_real_file`
--> $DIR/mod_file_not_exist.rs:3:1 --> $DIR/mod_file_not_exist.rs:1:1
| |
LL | mod not_a_real_file; LL | mod not_a_real_file;
| ^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^
@ -8,7 +8,7 @@ LL | mod not_a_real_file;
= note: if there is a `mod not_a_real_file` elsewhere in the crate already, import it with `use crate::...` instead = note: if there is a `mod not_a_real_file` elsewhere in the crate already, import it with `use crate::...` instead
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `mod_file_aux` error[E0433]: failed to resolve: use of unresolved module or unlinked crate `mod_file_aux`
--> $DIR/mod_file_not_exist.rs:7:16 --> $DIR/mod_file_not_exist.rs:5:16
| |
LL | assert_eq!(mod_file_aux::bar(), 10); LL | assert_eq!(mod_file_aux::bar(), 10);
| ^^^^^^^^^^^^ use of unresolved module or unlinked crate `mod_file_aux` | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `mod_file_aux`

View file

@ -1,6 +1,5 @@
// The specific errors produced depend the thread-local implementation. // The specific errors produced depend the thread-local implementation.
// Run only on platforms with "fast" TLS. // Run only on platforms with "fast" TLS.
//@ ignore-windows FIXME(#84933)
//@ ignore-wasm globals are used instead of thread locals //@ ignore-wasm globals are used instead of thread locals
//@ ignore-emscripten globals are used instead of thread locals //@ ignore-emscripten globals are used instead of thread locals
//@ ignore-android does not use #[thread_local] //@ ignore-android does not use #[thread_local]

View file

@ -1,5 +1,5 @@
error[E0106]: missing lifetime specifiers error[E0106]: missing lifetime specifiers
--> $DIR/missing-lifetime-specifier.rs:28:44 --> $DIR/missing-lifetime-specifier.rs:27:44
| |
LL | static a: RefCell<HashMap<i32, Vec<Vec<Foo>>>> = RefCell::new(HashMap::new()); LL | static a: RefCell<HashMap<i32, Vec<Vec<Foo>>>> = RefCell::new(HashMap::new());
| ^^^ expected 2 lifetime parameters | ^^^ expected 2 lifetime parameters
@ -11,7 +11,7 @@ LL | static a: RefCell<HashMap<i32, Vec<Vec<Foo<'static, 'static>>>>> = RefC
| ++++++++++++++++++ | ++++++++++++++++++
error[E0106]: missing lifetime specifiers error[E0106]: missing lifetime specifiers
--> $DIR/missing-lifetime-specifier.rs:32:44 --> $DIR/missing-lifetime-specifier.rs:31:44
| |
LL | static b: RefCell<HashMap<i32, Vec<Vec<&Bar>>>> = RefCell::new(HashMap::new()); LL | static b: RefCell<HashMap<i32, Vec<Vec<&Bar>>>> = RefCell::new(HashMap::new());
| ^^^^ expected 2 lifetime parameters | ^^^^ expected 2 lifetime parameters
@ -25,7 +25,7 @@ LL | static b: RefCell<HashMap<i32, Vec<Vec<&'static Bar<'static, 'static>>>
| +++++++ ++++++++++++++++++ | +++++++ ++++++++++++++++++
error[E0106]: missing lifetime specifiers error[E0106]: missing lifetime specifiers
--> $DIR/missing-lifetime-specifier.rs:36:47 --> $DIR/missing-lifetime-specifier.rs:35:47
| |
LL | static c: RefCell<HashMap<i32, Vec<Vec<Qux<i32>>>>> = RefCell::new(HashMap::new()); LL | static c: RefCell<HashMap<i32, Vec<Vec<Qux<i32>>>>> = RefCell::new(HashMap::new());
| ^ expected 2 lifetime parameters | ^ expected 2 lifetime parameters
@ -37,7 +37,7 @@ LL | static c: RefCell<HashMap<i32, Vec<Vec<Qux<'static, 'static, i32>>>>> =
| +++++++++++++++++ | +++++++++++++++++
error[E0106]: missing lifetime specifiers error[E0106]: missing lifetime specifiers
--> $DIR/missing-lifetime-specifier.rs:40:44 --> $DIR/missing-lifetime-specifier.rs:39:44
| |
LL | static d: RefCell<HashMap<i32, Vec<Vec<&Tar<i32>>>>> = RefCell::new(HashMap::new()); LL | static d: RefCell<HashMap<i32, Vec<Vec<&Tar<i32>>>>> = RefCell::new(HashMap::new());
| ^ ^ expected 2 lifetime parameters | ^ ^ expected 2 lifetime parameters
@ -51,7 +51,7 @@ LL | static d: RefCell<HashMap<i32, Vec<Vec<&'static Tar<'static, 'static, i
| +++++++ +++++++++++++++++ | +++++++ +++++++++++++++++
error[E0106]: missing lifetime specifier error[E0106]: missing lifetime specifier
--> $DIR/missing-lifetime-specifier.rs:49:44 --> $DIR/missing-lifetime-specifier.rs:48:44
| |
LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell::new(HashMap::new()); LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell::new(HashMap::new());
| ^ expected named lifetime parameter | ^ expected named lifetime parameter
@ -63,7 +63,7 @@ LL | static f: RefCell<HashMap<i32, Vec<Vec<&'static Tar<'static, i32>>>>> =
| +++++++ | +++++++
error[E0107]: union takes 2 lifetime arguments but 1 lifetime argument was supplied error[E0107]: union takes 2 lifetime arguments but 1 lifetime argument was supplied
--> $DIR/missing-lifetime-specifier.rs:45:44 --> $DIR/missing-lifetime-specifier.rs:44:44
| |
LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, i32>>>>> = RefCell::new(HashMap::new()); LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, i32>>>>> = RefCell::new(HashMap::new());
| ^^^ ------- supplied 1 lifetime argument | ^^^ ------- supplied 1 lifetime argument
@ -71,7 +71,7 @@ LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, i32>>>>> = RefCell:
| expected 2 lifetime arguments | expected 2 lifetime arguments
| |
note: union defined here, with 2 lifetime parameters: `'t`, `'k` note: union defined here, with 2 lifetime parameters: `'t`, `'k`
--> $DIR/missing-lifetime-specifier.rs:21:11 --> $DIR/missing-lifetime-specifier.rs:20:11
| |
LL | pub union Qux<'t, 'k, I> { LL | pub union Qux<'t, 'k, I> {
| ^^^ -- -- | ^^^ -- --
@ -81,7 +81,7 @@ LL | static e: RefCell<HashMap<i32, Vec<Vec<Qux<'static, 'static, i32>>>>> =
| +++++++++ | +++++++++
error[E0107]: trait takes 2 lifetime arguments but 1 lifetime argument was supplied error[E0107]: trait takes 2 lifetime arguments but 1 lifetime argument was supplied
--> $DIR/missing-lifetime-specifier.rs:49:45 --> $DIR/missing-lifetime-specifier.rs:48:45
| |
LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell::new(HashMap::new()); LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell::new(HashMap::new());
| ^^^ ------- supplied 1 lifetime argument | ^^^ ------- supplied 1 lifetime argument
@ -89,7 +89,7 @@ LL | static f: RefCell<HashMap<i32, Vec<Vec<&Tar<'static, i32>>>>> = RefCell
| expected 2 lifetime arguments | expected 2 lifetime arguments
| |
note: trait defined here, with 2 lifetime parameters: `'t`, `'k` note: trait defined here, with 2 lifetime parameters: `'t`, `'k`
--> $DIR/missing-lifetime-specifier.rs:25:7 --> $DIR/missing-lifetime-specifier.rs:24:7
| |
LL | trait Tar<'t, 'k, I> {} LL | trait Tar<'t, 'k, I> {}
| ^^^ -- -- | ^^^ -- --

View file

@ -1,7 +1,6 @@
//@ run-pass //@ run-pass
#![allow(unused_must_use)] #![allow(unused_must_use)]
#![allow(unused_mut)] #![allow(unused_mut)]
//@ ignore-windows
//@ exec-env:RUST_LOG=debug //@ exec-env:RUST_LOG=debug
//@ needs-threads //@ needs-threads

View file

@ -1,5 +1,5 @@
//@ run-pass //@ run-pass
//@ ignore-windows //@ ignore-windows FIXME(134939): thread_local + no_mangle doesn't work on Windows
//@ aux-build:thread-local-extern-static.rs //@ aux-build:thread-local-extern-static.rs
#![feature(cfg_target_thread_local, thread_local)] #![feature(cfg_target_thread_local, thread_local)]

View file

@ -1,5 +1,6 @@
//@ ignore-windows different list of satisfying impls //@ ignore-windows FIXME: We get an extra E0283 on Windows
//@ ignore-arm different list of satisfying impls //@ ignore-arm extra satisfying impls
use std::collections::HashMap; use std::collections::HashMap;
fn what() { fn what() {

View file

@ -1,5 +1,5 @@
error[E0283]: type annotations needed error[E0283]: type annotations needed
--> $DIR/issue-77982.rs:10:10 --> $DIR/issue-77982.rs:11:10
| |
LL | opts.get(opt.as_ref()); LL | opts.get(opt.as_ref());
| ^^^ ------------ type must be known at this point | ^^^ ------------ type must be known at this point
@ -18,7 +18,7 @@ LL | opts.get::<Q>(opt.as_ref());
| +++++ | +++++
error[E0283]: type annotations needed error[E0283]: type annotations needed
--> $DIR/issue-77982.rs:10:10 --> $DIR/issue-77982.rs:11:10
| |
LL | opts.get(opt.as_ref()); LL | opts.get(opt.as_ref());
| ^^^ ------ type must be known at this point | ^^^ ------ type must be known at this point
@ -36,7 +36,7 @@ LL | opts.get::<Q>(opt.as_ref());
| +++++ | +++++
error[E0283]: type annotations needed error[E0283]: type annotations needed
--> $DIR/issue-77982.rs:15:59 --> $DIR/issue-77982.rs:16:59
| |
LL | let ips: Vec<_> = (0..100_000).map(|_| u32::from(0u32.into())).collect(); LL | let ips: Vec<_> = (0..100_000).map(|_| u32::from(0u32.into())).collect();
| --- ^^^^ | --- ^^^^
@ -56,13 +56,13 @@ LL | let ips: Vec<_> = (0..100_000).map(|_| u32::from(<u32 as Into<T>>::into
| +++++++++++++++++++++++ ~ | +++++++++++++++++++++++ ~
error[E0283]: type annotations needed for `Box<_>` error[E0283]: type annotations needed for `Box<_>`
--> $DIR/issue-77982.rs:38:9 --> $DIR/issue-77982.rs:39:9
| |
LL | let _ = ().foo(); LL | let _ = ().foo();
| ^ --- type must be known at this point | ^ --- type must be known at this point
| |
note: multiple `impl`s satisfying `(): Foo<'_, _>` found note: multiple `impl`s satisfying `(): Foo<'_, _>` found
--> $DIR/issue-77982.rs:31:1 --> $DIR/issue-77982.rs:32:1
| |
LL | impl Foo<'static, u32> for () {} LL | impl Foo<'static, u32> for () {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@ -74,13 +74,13 @@ LL | let _: Box<T> = ().foo();
| ++++++++ | ++++++++
error[E0283]: type annotations needed for `Box<_>` error[E0283]: type annotations needed for `Box<_>`
--> $DIR/issue-77982.rs:42:9 --> $DIR/issue-77982.rs:43:9
| |
LL | let _ = (&()).bar(); LL | let _ = (&()).bar();
| ^ --- type must be known at this point | ^ --- type must be known at this point
| |
note: multiple `impl`s satisfying `&(): Bar<'_, _>` found note: multiple `impl`s satisfying `&(): Bar<'_, _>` found
--> $DIR/issue-77982.rs:34:1 --> $DIR/issue-77982.rs:35:1
| |
LL | impl<'a> Bar<'static, u32> for &'a () {} LL | impl<'a> Bar<'static, u32> for &'a () {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

View file

@ -1,7 +1,6 @@
// Issue 46112: An extern crate pub re-exporting libcore was causing // Issue 46112: An extern crate pub re-exporting libcore was causing
// paths rooted from `std` to be misrendered in the diagnostic output. // paths rooted from `std` to be misrendered in the diagnostic output.
//@ ignore-windows
//@ aux-build:xcrate-issue-43189-a.rs //@ aux-build:xcrate-issue-43189-a.rs
//@ aux-build:xcrate-issue-43189-b.rs //@ aux-build:xcrate-issue-43189-b.rs

View file

@ -1,5 +1,5 @@
error[E0599]: no method named `a` found for unit type `()` in the current scope error[E0599]: no method named `a` found for unit type `()` in the current scope
--> $DIR/issue-43189.rs:10:8 --> $DIR/issue-43189.rs:9:8
| |
LL | ().a(); LL | ().a();
| ^ method not found in `()` | ^ method not found in `()`

View file

@ -1,7 +1,6 @@
// Issue 46112: An extern crate pub re-exporting libcore was causing // Issue 46112: An extern crate pub re-exporting libcore was causing
// paths rooted from `std` to be misrendered in the diagnostic output. // paths rooted from `std` to be misrendered in the diagnostic output.
//@ ignore-windows
//@ aux-build:xcrate-issue-46112-rexport-core.rs //@ aux-build:xcrate-issue-46112-rexport-core.rs
extern crate xcrate_issue_46112_rexport_core; extern crate xcrate_issue_46112_rexport_core;

View file

@ -1,5 +1,5 @@
error[E0308]: mismatched types error[E0308]: mismatched types
--> $DIR/issue-46112.rs:9:21 --> $DIR/issue-46112.rs:8:21
| |
LL | fn main() { test(Ok(())); } LL | fn main() { test(Ok(())); }
| -- ^^ expected `Option<()>`, found `()` | -- ^^ expected `Option<()>`, found `()`
@ -9,7 +9,7 @@ LL | fn main() { test(Ok(())); }
= note: expected enum `Option<()>` = note: expected enum `Option<()>`
found unit type `()` found unit type `()`
help: the type constructed contains `()` due to the type of the argument passed help: the type constructed contains `()` due to the type of the argument passed
--> $DIR/issue-46112.rs:9:18 --> $DIR/issue-46112.rs:8:18
| |
LL | fn main() { test(Ok(())); } LL | fn main() { test(Ok(())); }
| ^^^--^ | ^^^--^