Always use a colon in //@ normalize-*:
headers
This commit is contained in:
parent
3ad5f459b3
commit
9aaa0c5867
@ -1,6 +1,6 @@
|
||||
//@ check-pass
|
||||
//@ compile-flags:--test
|
||||
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
|
||||
// This test ensures that no code block is detected in the doc comments.
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
//@ check-pass
|
||||
//@ compile-flags:--test --test-args --test-threads=1
|
||||
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
|
||||
// Crates like core have doctests gated on `cfg(not(test))` so we need to make
|
||||
// sure `cfg(test)` is not active when running `rustdoc --test`.
|
||||
|
@ -2,7 +2,7 @@
|
||||
//@ compile-flags: --test --nocapture --check-cfg=cfg(feature,values("test")) -Z unstable-options
|
||||
//@ normalize-stderr-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
|
||||
/// The doctest will produce a warning because feature invalid is unexpected
|
||||
/// ```
|
||||
|
@ -4,7 +4,7 @@
|
||||
//@ edition:2018
|
||||
//@ compile-flags:--test --test-args=--show-output
|
||||
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
|
||||
/// ```
|
||||
/// #![warn(unused)]
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Regression test for #97440: Multiline inner attribute triggers ICE during doctest
|
||||
//@ compile-flags:--test
|
||||
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ check-pass
|
||||
|
||||
//! ```rust
|
||||
|
@ -1,6 +1,6 @@
|
||||
//@ compile-flags:--test
|
||||
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ check-pass
|
||||
|
||||
/// ```
|
||||
|
@ -1,7 +1,7 @@
|
||||
//@ check-pass
|
||||
//@ compile-flags:--test
|
||||
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
|
||||
// Make sure `cfg(doctest)` is set when finding doctests but not inside
|
||||
// the doctests.
|
||||
|
@ -1,7 +1,7 @@
|
||||
//@ check-pass
|
||||
//@ compile-flags:--test
|
||||
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
|
||||
#![feature(doc_cfg)]
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
//@ compile-flags:--test --test-args=--test-threads=1
|
||||
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ check-pass
|
||||
|
||||
/// ```
|
||||
|
@ -2,7 +2,7 @@
|
||||
//@ aux-build:extern_macros.rs
|
||||
//@ compile-flags:--test --test-args=--test-threads=1
|
||||
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ check-pass
|
||||
|
||||
//! ```
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
//@ compile-flags:--test
|
||||
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ failure-status: 101
|
||||
|
||||
/// ```compile_fail
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
//@ compile-flags:--test
|
||||
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ failure-status: 101
|
||||
|
||||
/// <https://github.com/rust-lang/rust/issues/91014>
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
//@ compile-flags:--test
|
||||
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ failure-status: 101
|
||||
|
||||
/// ```compile_fail,E0004
|
||||
|
@ -8,7 +8,7 @@
|
||||
//@ compile-flags:--test --test-args --test-threads=1
|
||||
//@ rustc-env:RUST_BACKTRACE=0
|
||||
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ failure-status: 101
|
||||
|
||||
// doctest fails at runtime
|
||||
|
@ -8,7 +8,7 @@
|
||||
//@ compile-flags:--test --test-args --test-threads=1
|
||||
//@ rustc-env:RUST_BACKTRACE=0
|
||||
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ failure-status: 101
|
||||
|
||||
// doctest fails at runtime
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
//@ compile-flags:--test
|
||||
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ failure-status: 101
|
||||
|
||||
/// ```should_panic
|
||||
|
@ -3,7 +3,7 @@
|
||||
//@ check-pass
|
||||
//@ compile-flags:-Z unstable-options --test --no-run --test-args=--test-threads=1
|
||||
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
|
||||
/// ```
|
||||
/// let a = true;
|
||||
|
@ -2,7 +2,7 @@
|
||||
//@ compile-flags:--test -Zunstable-options --nocapture
|
||||
//@ normalize-stderr-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
|
||||
/// ```compile_fail
|
||||
/// fn foo() {
|
||||
|
@ -1,7 +1,7 @@
|
||||
//@ check-pass
|
||||
//@ compile-flags:--test -Zunstable-options --nocapture
|
||||
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
|
||||
/// ```
|
||||
/// println!("hello!");
|
||||
|
@ -4,7 +4,7 @@
|
||||
//@ aux-build:pub_trait.rs
|
||||
//@ compile-flags: --test --test-args --test-threads=1
|
||||
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
|
||||
#![doc(test(attr(deny(non_local_definitions))))]
|
||||
#![doc(test(attr(allow(dead_code))))]
|
||||
|
@ -2,7 +2,7 @@
|
||||
//@ compile-flags:--test --test-args --test-threads=1 --nocapture -Zunstable-options
|
||||
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stderr-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
|
||||
#![doc(test(attr(warn(non_local_definitions))))]
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
//@ [correct]compile-flags:--test --test-run-directory={{src-base}}
|
||||
//@ [incorrect]compile-flags:--test --test-run-directory={{src-base}}/coverage
|
||||
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
|
||||
/// ```
|
||||
/// assert_eq!(
|
||||
|
@ -1,6 +1,6 @@
|
||||
//@ compile-flags:--test
|
||||
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ check-pass
|
||||
|
||||
#![no_std]
|
||||
|
@ -1,7 +1,7 @@
|
||||
//@ compile-flags: --test --test-args=--test-threads=1
|
||||
//@ check-pass
|
||||
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
|
||||
/// ```
|
||||
/// let a = true;
|
||||
|
@ -1,6 +1,6 @@
|
||||
//@ compile-flags: --test
|
||||
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ failure-status: 101
|
||||
//@ rustc-env: RUST_BACKTRACE=0
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
//@ error-pattern: aborting due to
|
||||
//@ error-pattern: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-rustdoc&template=ice.md
|
||||
|
||||
//@ normalize-stderr-test "note: compiler flags.*\n\n" -> ""
|
||||
//@ normalize-stderr-test "note: rustc.*running on.*" -> "note: rustc {version} running on {platform}"
|
||||
//@ normalize-stderr-test "thread.*panicked at compiler.*" -> ""
|
||||
//@ normalize-stderr-test " +\d{1,}: .*\n" -> ""
|
||||
//@ normalize-stderr-test " + at .*\n" -> ""
|
||||
//@ normalize-stderr-test ".*note: Some details are omitted.*\n" -> ""
|
||||
//@ normalize-stderr-test: "note: compiler flags.*\n\n" -> ""
|
||||
//@ normalize-stderr-test: "note: rustc.*running on.*" -> "note: rustc {version} running on {platform}"
|
||||
//@ normalize-stderr-test: "thread.*panicked at compiler.*" -> ""
|
||||
//@ normalize-stderr-test: " +\d{1,}: .*\n" -> ""
|
||||
//@ normalize-stderr-test: " + at .*\n" -> ""
|
||||
//@ normalize-stderr-test: ".*note: Some details are omitted.*\n" -> ""
|
||||
|
||||
fn wrong()
|
||||
//~^ ERROR expected one of
|
||||
|
@ -1,7 +1,7 @@
|
||||
//@ check-pass
|
||||
//@ compile-flags:--test
|
||||
//@ normalize-stdout-test: "tests/rustdoc-ui/issues" -> "$$DIR"
|
||||
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
|
||||
pub fn test() -> Result<(), ()> {
|
||||
//! ```compile_fail
|
||||
|
@ -2,7 +2,7 @@
|
||||
//@ check-stdout
|
||||
//@ error-pattern:cannot find function `foo` in this scope
|
||||
//@ normalize-stdout-test: "tests/rustdoc-ui/issues" -> "$$DIR"
|
||||
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ failure-status: 101
|
||||
|
||||
/// ```rust
|
||||
|
@ -2,7 +2,7 @@
|
||||
//@ aux-build:empty-fn.rs
|
||||
//@ check-pass
|
||||
//@ normalize-stdout-test: "tests/rustdoc-ui/issues" -> "$$DIR"
|
||||
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ edition:2021
|
||||
|
||||
/// <https://github.com/rust-lang/rust/issues/91134>
|
||||
|
@ -4,8 +4,8 @@
|
||||
//@ failure-status: 101
|
||||
//@ compile-flags:--test -Z unstable-options --remap-path-prefix={{src-base}}=remapped_path --test-args --test-threads=1
|
||||
//@ rustc-env:RUST_BACKTRACE=0
|
||||
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout-test "exit (status|code): 101" -> "exit status: 101"
|
||||
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout-test: "exit (status|code): 101" -> "exit status: 101"
|
||||
|
||||
// doctest fails at runtime
|
||||
/// ```
|
||||
|
@ -4,7 +4,7 @@
|
||||
//@ failure-status: 101
|
||||
//@ compile-flags:--test -Z unstable-options --remap-path-prefix={{src-base}}=remapped_path --test-args --test-threads=1
|
||||
//@ rustc-env:RUST_BACKTRACE=0
|
||||
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
|
||||
// doctest fails to compile
|
||||
/// ```
|
||||
|
@ -5,7 +5,7 @@
|
||||
// adapted to use that, and that normalize line can go away
|
||||
|
||||
//@ compile-flags:--test -Z unstable-options --remap-path-prefix={{src-base}}=remapped_path --test-args --test-threads=1
|
||||
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
|
||||
// doctest passes at runtime
|
||||
/// ```
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
// Normalize the emitted location so this doesn't need
|
||||
// updating everytime someone adds or removes a line.
|
||||
//@ normalize-stderr-test ".rs:\d+:\d+" -> ".rs:LL:CC"
|
||||
//@ normalize-stderr-test: ".rs:\d+:\d+" -> ".rs:LL:CC"
|
||||
|
||||
struct A;
|
||||
struct B;
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ normalize-stderr-test "could not open Fluent resource:.*" -> "could not open Fluent resource: os-specific message"
|
||||
//@ normalize-stderr-test: "could not open Fluent resource:.*" -> "could not open Fluent resource: os-specific message"
|
||||
|
||||
#![feature(rustc_private)]
|
||||
#![crate_type = "lib"]
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Test that we get the following hint when trying to use a compiler crate without rustc_driver.
|
||||
//@ error-pattern: try adding `extern crate rustc_driver;` at the top level of this crate
|
||||
//@ compile-flags: --emit link
|
||||
//@ normalize-stderr-test ".*crate .* required.*\n\n" -> ""
|
||||
//@ normalize-stderr-test: ".*crate .* required.*\n\n" -> ""
|
||||
//@ normalize-stderr-test: "aborting due to [0-9]+" -> "aborting due to NUMBER"
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
@ -1,7 +1,7 @@
|
||||
//@ check-fail
|
||||
// Tests that a doc comment will not preclude a field from being considered a diagnostic argument
|
||||
//@ normalize-stderr-test "the following other types implement trait `IntoDiagArg`:(?:.*\n){0,9}\s+and \d+ others" -> "normalized in stderr"
|
||||
//@ normalize-stderr-test "(COMPILER_DIR/.*\.rs):[0-9]+:[0-9]+" -> "$1:LL:CC"
|
||||
//@ normalize-stderr-test: "the following other types implement trait `IntoDiagArg`:(?:.*\n){0,9}\s+and \d+ others" -> "normalized in stderr"
|
||||
//@ normalize-stderr-test: "(COMPILER_DIR/.*\.rs):[0-9]+:[0-9]+" -> "$1:LL:CC"
|
||||
|
||||
// The proc_macro2 crate handles spans differently when on beta/stable release rather than nightly,
|
||||
// changing the output of this test. Since Subdiagnostic is strictly internal to the compiler
|
||||
|
@ -1,7 +1,7 @@
|
||||
//@ check-fail
|
||||
// Tests error conditions for specifying diagnostics using #[derive(Diagnostic)]
|
||||
//@ normalize-stderr-test "the following other types implement trait `IntoDiagArg`:(?:.*\n){0,9}\s+and \d+ others" -> "normalized in stderr"
|
||||
//@ normalize-stderr-test "(COMPILER_DIR/.*\.rs):[0-9]+:[0-9]+" -> "$1:LL:CC"
|
||||
//@ normalize-stderr-test: "the following other types implement trait `IntoDiagArg`:(?:.*\n){0,9}\s+and \d+ others" -> "normalized in stderr"
|
||||
//@ normalize-stderr-test: "(COMPILER_DIR/.*\.rs):[0-9]+:[0-9]+" -> "$1:LL:CC"
|
||||
|
||||
// The proc_macro2 crate handles spans differently when on beta/stable release rather than nightly,
|
||||
// changing the output of this test. Since Diagnostic is strictly internal to the compiler
|
||||
|
@ -1,9 +1,9 @@
|
||||
//@ normalize-stderr-test "(abi|pref|unadjusted_abi_align): Align\([1-8] bytes\)" -> "$1: $$SOME_ALIGN"
|
||||
//@ normalize-stderr-test "(size): Size\([48] bytes\)" -> "$1: $$SOME_SIZE"
|
||||
//@ normalize-stderr-test "(can_unwind): (true|false)" -> "$1: $$SOME_BOOL"
|
||||
//@ normalize-stderr-test "(valid_range): 0\.\.=(4294967295|18446744073709551615)" -> "$1: $$FULL"
|
||||
//@ normalize-stderr-test: "(abi|pref|unadjusted_abi_align): Align\([1-8] bytes\)" -> "$1: $$SOME_ALIGN"
|
||||
//@ normalize-stderr-test: "(size): Size\([48] bytes\)" -> "$1: $$SOME_SIZE"
|
||||
//@ normalize-stderr-test: "(can_unwind): (true|false)" -> "$1: $$SOME_BOOL"
|
||||
//@ normalize-stderr-test: "(valid_range): 0\.\.=(4294967295|18446744073709551615)" -> "$1: $$FULL"
|
||||
// This pattern is prepared for when we account for alignment in the niche.
|
||||
//@ normalize-stderr-test "(valid_range): [1-9]\.\.=(429496729[0-9]|1844674407370955161[0-9])" -> "$1: $$NON_NULL"
|
||||
//@ normalize-stderr-test: "(valid_range): [1-9]\.\.=(429496729[0-9]|1844674407370955161[0-9])" -> "$1: $$NON_NULL"
|
||||
// Some attributes are only computed for release builds:
|
||||
//@ compile-flags: -O
|
||||
#![feature(rustc_attrs)]
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ normalize-stderr-test "DefId\(.+?\)" -> "DefId(..)"
|
||||
//@ normalize-stderr-test: "DefId\(.+?\)" -> "DefId(..)"
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ normalize-stderr-test "DefId\(.+?\)" -> "DefId(..)"
|
||||
//@ normalize-stderr-test: "DefId\(.+?\)" -> "DefId(..)"
|
||||
#![feature(rustc_attrs)]
|
||||
|
||||
fn bar() {
|
||||
|
@ -1,9 +1,9 @@
|
||||
//@ check-fail
|
||||
//@ known-bug: #97477
|
||||
//@ failure-status: 101
|
||||
//@ normalize-stderr-test "note: .*\n\n" -> ""
|
||||
//@ normalize-stderr-test "thread 'rustc' panicked.*\n" -> ""
|
||||
//@ normalize-stderr-test "(error: internal compiler error: [^:]+):\d+:\d+: " -> "$1:LL:CC: "
|
||||
//@ normalize-stderr-test: "note: .*\n\n" -> ""
|
||||
//@ normalize-stderr-test: "thread 'rustc' panicked.*\n" -> ""
|
||||
//@ normalize-stderr-test: "(error: internal compiler error: [^:]+):\d+:\d+: " -> "$1:LL:CC: "
|
||||
//@ rustc-env:RUST_BACKTRACE=0
|
||||
|
||||
// This test used to cause an ICE in rustc_mir::interpret::step::eval_rvalue_into_place
|
||||
|
@ -1,6 +1,6 @@
|
||||
// Strip out raw byte dumps to make comparison platform-independent:
|
||||
//@ normalize-stderr-test "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test "([0-9a-f][0-9a-f] |╾─*A(LLOC)?[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"
|
||||
//@ normalize-stderr-test: "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test: "([0-9a-f][0-9a-f] |╾─*A(LLOC)?[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"
|
||||
|
||||
#![feature(
|
||||
slice_from_ptr_range,
|
||||
|
@ -1,16 +1,16 @@
|
||||
//@ compile-flags: -Ztreat-err-as-bug=1
|
||||
//@ failure-status: 101
|
||||
//@ rustc-env:RUST_BACKTRACE=1
|
||||
//@ normalize-stderr-test "\nerror: .*unexpectedly panicked.*\n\n" -> ""
|
||||
//@ normalize-stderr-test "note: we would appreciate a bug report.*\n\n" -> ""
|
||||
//@ normalize-stderr-test "note: compiler flags.*\n\n" -> ""
|
||||
//@ normalize-stderr-test "note: rustc.*running on.*\n\n" -> ""
|
||||
//@ normalize-stderr-test "thread.*panicked.*:\n.*\n" -> ""
|
||||
//@ normalize-stderr-test "stack backtrace:\n" -> ""
|
||||
//@ normalize-stderr-test "\s\d{1,}: .*\n" -> ""
|
||||
//@ normalize-stderr-test "\s at .*\n" -> ""
|
||||
//@ normalize-stderr-test ".*note: Some details.*\n" -> ""
|
||||
//@ normalize-stderr-test ".*omitted \d{1,} frame.*\n" -> ""
|
||||
//@ normalize-stderr-test: "\nerror: .*unexpectedly panicked.*\n\n" -> ""
|
||||
//@ normalize-stderr-test: "note: we would appreciate a bug report.*\n\n" -> ""
|
||||
//@ normalize-stderr-test: "note: compiler flags.*\n\n" -> ""
|
||||
//@ normalize-stderr-test: "note: rustc.*running on.*\n\n" -> ""
|
||||
//@ normalize-stderr-test: "thread.*panicked.*:\n.*\n" -> ""
|
||||
//@ normalize-stderr-test: "stack backtrace:\n" -> ""
|
||||
//@ normalize-stderr-test: "\s\d{1,}: .*\n" -> ""
|
||||
//@ normalize-stderr-test: "\s at .*\n" -> ""
|
||||
//@ normalize-stderr-test: ".*note: Some details.*\n" -> ""
|
||||
//@ normalize-stderr-test: ".*omitted \d{1,} frame.*\n" -> ""
|
||||
#![allow(unconditional_panic)]
|
||||
|
||||
const X: i32 = 1 / 0; //~ERROR constant
|
||||
|
@ -3,9 +3,9 @@
|
||||
#![feature(const_mut_refs)]
|
||||
|
||||
// Strip out raw byte dumps to make comparison platform-independent:
|
||||
//@ normalize-stderr-test "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test "([0-9a-f][0-9a-f] |╾─*A(LLOC)?[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"
|
||||
//@ normalize-stderr-test "HEX_DUMP\s*\n\s*HEX_DUMP" -> "HEX_DUMP"
|
||||
//@ normalize-stderr-test: "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test: "([0-9a-f][0-9a-f] |╾─*A(LLOC)?[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"
|
||||
//@ normalize-stderr-test: "HEX_DUMP\s*\n\s*HEX_DUMP" -> "HEX_DUMP"
|
||||
|
||||
use std::intrinsics;
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
//@ stderr-per-bitwidth
|
||||
//@ ignore-endian-big
|
||||
// ignore-tidy-linelength
|
||||
//@ normalize-stderr-test "╾─*ALLOC[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼" -> "╾ALLOC_ID$1╼"
|
||||
//@ normalize-stderr-test: "╾─*ALLOC[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼" -> "╾ALLOC_ID$1╼"
|
||||
#![allow(invalid_value)]
|
||||
#![feature(never_type, rustc_attrs, ptr_metadata, slice_from_ptr_range, const_slice_from_ptr_range)]
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Strip out raw byte dumps to make comparison platform-independent:
|
||||
//@ normalize-stderr-test "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test "([0-9a-f][0-9a-f] |╾─*ALLOC[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"
|
||||
//@ normalize-stderr-test "0x0+" -> "0x0"
|
||||
//@ normalize-stderr-test: "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test: "([0-9a-f][0-9a-f] |╾─*ALLOC[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"
|
||||
//@ normalize-stderr-test: "0x0+" -> "0x0"
|
||||
#![feature(never_type)]
|
||||
#![allow(invalid_value)]
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
// Strip out raw byte dumps to make comparison platform-independent:
|
||||
//@ normalize-stderr-test "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test "([0-9a-f][0-9a-f] |╾─*ALLOC[0-9]+(\+[a-z0-9]+)?─*╼ )+ *│.*" -> "HEX_DUMP"
|
||||
//@ normalize-stderr-test: "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test: "([0-9a-f][0-9a-f] |╾─*ALLOC[0-9]+(\+[a-z0-9]+)?─*╼ )+ *│.*" -> "HEX_DUMP"
|
||||
#![allow(invalid_value)] // make sure we cannot allow away the errors tested here
|
||||
#![feature(rustc_attrs, ptr_metadata)]
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
// ignore-tidy-linelength
|
||||
// Strip out raw byte dumps to make comparison platform-independent:
|
||||
//@ normalize-stderr-test "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test "([0-9a-f][0-9a-f] |╾─*ALLOC[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"
|
||||
//@ normalize-stderr-test: "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test: "([0-9a-f][0-9a-f] |╾─*ALLOC[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"
|
||||
#![allow(invalid_value)]
|
||||
|
||||
use std::mem;
|
||||
|
@ -1,6 +1,6 @@
|
||||
// Strip out raw byte dumps to make comparison platform-independent:
|
||||
//@ normalize-stderr-test "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test "([0-9a-f][0-9a-f] |╾─*ALLOC[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"
|
||||
//@ normalize-stderr-test: "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test: "([0-9a-f][0-9a-f] |╾─*ALLOC[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"
|
||||
#![feature(core_intrinsics)]
|
||||
#![feature(never_type)]
|
||||
|
||||
|
@ -5,10 +5,10 @@
|
||||
use std::{ptr, mem};
|
||||
|
||||
// Strip out raw byte dumps to make comparison platform-independent:
|
||||
//@ normalize-stderr-test "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test "([0-9a-f][0-9a-f] |╾─*ALLOC[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"
|
||||
//@ normalize-stderr-test "offset \d+" -> "offset N"
|
||||
//@ normalize-stderr-test "size \d+" -> "size N"
|
||||
//@ normalize-stderr-test: "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test: "([0-9a-f][0-9a-f] |╾─*ALLOC[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"
|
||||
//@ normalize-stderr-test: "offset \d+" -> "offset N"
|
||||
//@ normalize-stderr-test: "size \d+" -> "size N"
|
||||
|
||||
|
||||
/// A newtype wrapper to prevent MIR generation from inserting reborrows that would affect the error
|
||||
|
@ -1,6 +1,6 @@
|
||||
//@ normalize-stderr-test "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test "( 0x[0-9a-f][0-9a-f] │)? ([0-9a-f][0-9a-f] |__ |╾─*ALLOC[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> " HEX_DUMP"
|
||||
//@ normalize-stderr-test "HEX_DUMP\s*\n\s*HEX_DUMP" -> "HEX_DUMP"
|
||||
//@ normalize-stderr-test: "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test: "( 0x[0-9a-f][0-9a-f] │)? ([0-9a-f][0-9a-f] |__ |╾─*ALLOC[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> " HEX_DUMP"
|
||||
//@ normalize-stderr-test: "HEX_DUMP\s*\n\s*HEX_DUMP" -> "HEX_DUMP"
|
||||
#![feature(const_mut_refs, const_refs_to_static)]
|
||||
#![feature(raw_ref_op)]
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
//@ normalize-stderr-test "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test "([0-9a-f][0-9a-f] |╾─*ALLOC[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"
|
||||
//@ normalize-stderr-test: "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test: "([0-9a-f][0-9a-f] |╾─*ALLOC[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"
|
||||
#![feature(const_refs_to_static, const_mut_refs, sync_unsafe_cell)]
|
||||
use std::cell::SyncUnsafeCell;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
//@ normalize-stderr-test "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test "([0-9a-f][0-9a-f] |╾─*ALLOC[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"
|
||||
//@ normalize-stderr-test: "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test: "([0-9a-f][0-9a-f] |╾─*ALLOC[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"
|
||||
#![feature(const_refs_to_static)]
|
||||
#![allow(static_mut_refs)]
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
// https://github.com/rust-lang/rust/issues/55223
|
||||
// Strip out raw byte dumps to make comparison platform-independent:
|
||||
//@ normalize-stderr-test "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test "([0-9a-f][0-9a-f] |╾─*A(LLOC)?[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"
|
||||
//@ normalize-stderr-test "HEX_DUMP\s*\n\s*HEX_DUMP" -> "HEX_DUMP"
|
||||
//@ normalize-stderr-test: "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test: "([0-9a-f][0-9a-f] |╾─*A(LLOC)?[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"
|
||||
//@ normalize-stderr-test: "HEX_DUMP\s*\n\s*HEX_DUMP" -> "HEX_DUMP"
|
||||
|
||||
union Foo<'a> {
|
||||
y: &'a (),
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Strip out raw byte dumps to make comparison platform-independent:
|
||||
//@ normalize-stderr-test "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test "([0-9a-f][0-9a-f] |╾─*A(LLOC)?[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"
|
||||
//@ normalize-stderr-test "HEX_DUMP\s*\n\s*HEX_DUMP" -> "HEX_DUMP"
|
||||
//@ normalize-stderr-test: "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test: "([0-9a-f][0-9a-f] |╾─*A(LLOC)?[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"
|
||||
//@ normalize-stderr-test: "HEX_DUMP\s*\n\s*HEX_DUMP" -> "HEX_DUMP"
|
||||
|
||||
pub struct Wrapper;
|
||||
pub static MAGIC_FFI_REF: &'static Wrapper = unsafe {
|
||||
|
@ -1,6 +1,6 @@
|
||||
//@ compile-flags: -Zunleash-the-miri-inside-of-you
|
||||
//@ normalize-stderr-test "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test "([0-9a-f][0-9a-f] |╾─*ALLOC[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"
|
||||
//@ normalize-stderr-test: "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test: "([0-9a-f][0-9a-f] |╾─*ALLOC[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"
|
||||
|
||||
use std::sync::atomic::AtomicUsize;
|
||||
use std::sync::atomic::Ordering;
|
||||
|
@ -1,7 +1,7 @@
|
||||
//@ compile-flags: -Zunleash-the-miri-inside-of-you
|
||||
//@ aux-build:static_cross_crate.rs
|
||||
//@ normalize-stderr-test "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test "([0-9a-f][0-9a-f] |╾─*ALLOC[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"
|
||||
//@ normalize-stderr-test: "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test: "([0-9a-f][0-9a-f] |╾─*ALLOC[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"
|
||||
#![feature(half_open_range_patterns_in_slices)]
|
||||
#![allow(static_mut_refs)]
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
//@ compile-flags: -Zunleash-the-miri-inside-of-you
|
||||
//@ normalize-stderr-test "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test "([0-9a-f][0-9a-f] |╾─*ALLOC[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"
|
||||
//@ normalize-stderr-test: "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test: "([0-9a-f][0-9a-f] |╾─*ALLOC[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"
|
||||
|
||||
#![deny(const_eval_mutable_ptr_in_final_value)]
|
||||
use std::cell::UnsafeCell;
|
||||
|
@ -1,6 +1,6 @@
|
||||
//@ compile-flags: -Zunleash-the-miri-inside-of-you
|
||||
//@ normalize-stderr-test "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test "([0-9a-f][0-9a-f] |╾─*ALLOC[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"
|
||||
//@ normalize-stderr-test: "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test: "([0-9a-f][0-9a-f] |╾─*ALLOC[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"
|
||||
#![allow(invalid_reference_casting, static_mut_refs)]
|
||||
#![deny(const_eval_mutable_ptr_in_final_value)]
|
||||
use std::cell::UnsafeCell;
|
||||
|
@ -1,7 +1,7 @@
|
||||
use std::ptr;
|
||||
|
||||
|
||||
//@ normalize-stderr-test "0x7f+" -> "0x7f..f"
|
||||
//@ normalize-stderr-test: "0x7f+" -> "0x7f..f"
|
||||
|
||||
|
||||
pub const BEFORE_START: *const u8 = unsafe { (&0u8 as *const u8).offset(-1) }; //~NOTE
|
||||
|
@ -6,8 +6,8 @@
|
||||
//@ [opt]compile-flags: -O
|
||||
//@ [opt_with_overflow_checks]compile-flags: -C overflow-checks=on -O
|
||||
//@ ignore-pass (test tests codegen-time behaviour)
|
||||
//@ normalize-stderr-test "shift left by `(64|32)_usize`, which" -> "shift left by `%BITS%`, which"
|
||||
//@ normalize-stderr-test "shift right by `(64|32)_usize`, which" -> "shift right by `%BITS%`, which"
|
||||
//@ normalize-stderr-test: "shift left by `(64|32)_usize`, which" -> "shift left by `%BITS%`, which"
|
||||
//@ normalize-stderr-test: "shift right by `(64|32)_usize`, which" -> "shift right by `%BITS%`, which"
|
||||
|
||||
|
||||
#[cfg(target_pointer_width = "32")]
|
||||
|
@ -1,7 +1,7 @@
|
||||
//@ normalize-stderr-64bit "64 bits" -> "word size"
|
||||
//@ normalize-stderr-32bit "32 bits" -> "word size"
|
||||
//@ normalize-stderr-64bit "128 bits" -> "2 * word size"
|
||||
//@ normalize-stderr-32bit "64 bits" -> "2 * word size"
|
||||
//@ normalize-stderr-64bit: "64 bits" -> "word size"
|
||||
//@ normalize-stderr-32bit: "32 bits" -> "word size"
|
||||
//@ normalize-stderr-64bit: "128 bits" -> "2 * word size"
|
||||
//@ normalize-stderr-32bit: "64 bits" -> "2 * word size"
|
||||
|
||||
fn main() {
|
||||
match &b""[..] {
|
||||
|
@ -1,6 +1,6 @@
|
||||
// Strip out raw byte dumps to make comparison platform-independent:
|
||||
//@ normalize-stderr-test "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test "([0-9a-f][0-9a-f] |╾─*ALLOC[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"
|
||||
//@ normalize-stderr-test: "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)"
|
||||
//@ normalize-stderr-test: "([0-9a-f][0-9a-f] |╾─*ALLOC[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP"
|
||||
#![feature(never_type)]
|
||||
|
||||
const _: &[!; 1] = unsafe { &*(1_usize as *const [!; 1]) }; //~ ERROR undefined behavior
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
#![feature(coroutines, stmt_expr_attributes)]
|
||||
|
||||
//@ normalize-stderr-test "std::pin::Unpin" -> "std::marker::Unpin"
|
||||
//@ normalize-stderr-test: "std::pin::Unpin" -> "std::marker::Unpin"
|
||||
|
||||
use std::marker::Unpin;
|
||||
|
||||
|
@ -4,8 +4,8 @@
|
||||
//@ compile-flags:-C debuginfo=2
|
||||
//@ build-fail
|
||||
//@ error-pattern: too big for the current architecture
|
||||
//@ normalize-stderr-64bit "18446744073709551615" -> "SIZE"
|
||||
//@ normalize-stderr-32bit "4294967295" -> "SIZE"
|
||||
//@ normalize-stderr-64bit: "18446744073709551615" -> "SIZE"
|
||||
//@ normalize-stderr-32bit: "4294967295" -> "SIZE"
|
||||
|
||||
#![crate_type = "rlib"]
|
||||
|
||||
|
@ -6,8 +6,8 @@
|
||||
//@ compile-flags:-C debuginfo=2
|
||||
//@ build-fail
|
||||
//@ error-pattern: too big for the current architecture
|
||||
//@ normalize-stderr-64bit "18446744073709551615" -> "SIZE"
|
||||
//@ normalize-stderr-32bit "4294967295" -> "SIZE"
|
||||
//@ normalize-stderr-64bit: "18446744073709551615" -> "SIZE"
|
||||
//@ normalize-stderr-32bit: "4294967295" -> "SIZE"
|
||||
|
||||
#![crate_type = "rlib"]
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ normalize-stderr-test "loaded from .*libstd-.*.rlib" -> "loaded from SYSROOT/libstd-*.rlib"
|
||||
//@ normalize-stderr-test: "loaded from .*libstd-.*.rlib" -> "loaded from SYSROOT/libstd-*.rlib"
|
||||
// note-pattern: first defined in crate `std`.
|
||||
|
||||
// Test for issue #31788 and E0152
|
||||
|
@ -1,7 +1,7 @@
|
||||
#![feature(const_mut_refs)]
|
||||
|
||||
//@ normalize-stderr-test "\(size: ., align: .\)" -> ""
|
||||
//@ normalize-stderr-test " +│ ╾─+╼" -> ""
|
||||
//@ normalize-stderr-test: "\(size: ., align: .\)" -> ""
|
||||
//@ normalize-stderr-test: " +│ ╾─+╼" -> ""
|
||||
|
||||
static X: i32 = 1;
|
||||
const C: i32 = 2;
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ normalize-stderr-test "loaded from .*liballoc-.*.rlib" -> "loaded from SYSROOT/liballoc-*.rlib"
|
||||
//@ normalize-stderr-test: "loaded from .*liballoc-.*.rlib" -> "loaded from SYSROOT/liballoc-*.rlib"
|
||||
#![feature(lang_items)]
|
||||
|
||||
#[lang = "owned_box"]
|
||||
|
@ -1,8 +1,8 @@
|
||||
// test for ICE when casting extern "C" fn when it has a non-FFI-safe argument
|
||||
// issue: rust-lang/rust#52334
|
||||
//@ check-pass
|
||||
//@ normalize-stderr-test "\[i8\]" -> "[i8 or u8 (arch dependant)]"
|
||||
//@ normalize-stderr-test "\[u8\]" -> "[i8 or u8 (arch dependant)]"
|
||||
//@ normalize-stderr-test: "\[i8\]" -> "[i8 or u8 (arch dependant)]"
|
||||
//@ normalize-stderr-test: "\[u8\]" -> "[i8 or u8 (arch dependant)]"
|
||||
|
||||
type Foo = extern "C" fn(::std::ffi::CStr);
|
||||
//~^ WARN `extern` fn uses type
|
||||
|
@ -1,7 +1,7 @@
|
||||
//@ run-fail
|
||||
//@ check-run-results
|
||||
//@ exec-env:RUST_BACKTRACE=0
|
||||
//@ normalize-stderr-test ".rs:\d+:\d+" -> ".rs:LL:CC"
|
||||
//@ normalize-stderr-test: ".rs:\d+:\d+" -> ".rs:LL:CC"
|
||||
//
|
||||
// Regression test for issue #70963
|
||||
// The captured stderr from this test reports a location
|
||||
|
@ -2,7 +2,7 @@
|
||||
//@ compile-flags: -Zunpretty=expanded,hygiene
|
||||
|
||||
// Don't break whenever Symbol numbering changes
|
||||
//@ normalize-stdout-test "\d+#" -> "0#"
|
||||
//@ normalize-stdout-test: "\d+#" -> "0#"
|
||||
|
||||
// minimal junk
|
||||
#![feature(no_core)]
|
||||
|
@ -2,7 +2,7 @@
|
||||
//@ compile-flags: -Zunpretty=expanded,hygiene
|
||||
|
||||
// Don't break whenever Symbol numbering changes
|
||||
//@ normalize-stdout-test "\d+#" -> "0#"
|
||||
//@ normalize-stdout-test: "\d+#" -> "0#"
|
||||
|
||||
// minimal junk
|
||||
#![feature /* 0#0 */(no_core)]
|
||||
|
@ -2,7 +2,7 @@
|
||||
//@ ignore-compare-mode-next-solver (explicit revisions)
|
||||
//@ compile-flags: -Zverbose-internals
|
||||
//@[next] compile-flags: -Znext-solver
|
||||
//@ normalize-stderr-test "DefId\([^\)]+\)" -> "DefId(..)"
|
||||
//@ normalize-stderr-test: "DefId\([^\)]+\)" -> "DefId(..)"
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
#![rustc_hidden_type_of_opaques]
|
||||
|
@ -3,9 +3,9 @@
|
||||
#![feature(rustc_attrs)]
|
||||
//@ build-fail
|
||||
//@ failure-status:101
|
||||
//@ normalize-stderr-test ".*note: .*\n\n" -> ""
|
||||
//@ normalize-stderr-test "thread 'rustc' panicked.*:\n.*\n" -> ""
|
||||
//@ normalize-stderr-test "internal compiler error:.*: intrinsic const_deallocate " -> ""
|
||||
//@ normalize-stderr-test: ".*note: .*\n\n" -> ""
|
||||
//@ normalize-stderr-test: "thread 'rustc' panicked.*:\n.*\n" -> ""
|
||||
//@ normalize-stderr-test: "internal compiler error:.*: intrinsic const_deallocate " -> ""
|
||||
//@ rustc-env:RUST_BACKTRACE=0
|
||||
|
||||
#[rustc_intrinsic]
|
||||
|
@ -19,10 +19,10 @@
|
||||
//@ error-pattern: error
|
||||
|
||||
// On Mac OS X, we get an error like the below
|
||||
//@ normalize-stderr-test "failed to write bytecode to ./does-not-exist/output.non_ice_error_on_worker_io_fail.*" -> "io error modifying ./does-not-exist/"
|
||||
//@ normalize-stderr-test: "failed to write bytecode to ./does-not-exist/output.non_ice_error_on_worker_io_fail.*" -> "io error modifying ./does-not-exist/"
|
||||
|
||||
// On Linux, we get an error like the below
|
||||
//@ normalize-stderr-test "couldn't create a temp dir.*" -> "io error modifying ./does-not-exist/"
|
||||
//@ normalize-stderr-test: "couldn't create a temp dir.*" -> "io error modifying ./does-not-exist/"
|
||||
|
||||
//@ ignore-windows - this is a unix-specific test
|
||||
//@ ignore-emscripten - the file-system issues do not replicate here
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ normalize-stderr-test "\d+ bits" -> "N bits"
|
||||
//@ normalize-stderr-test: "\d+ bits" -> "N bits"
|
||||
|
||||
trait Bar {
|
||||
type Bar;
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ normalize-stderr-test "\d+ bits" -> "N bits"
|
||||
//@ normalize-stderr-test: "\d+ bits" -> "N bits"
|
||||
|
||||
use std::mem;
|
||||
use std::marker::PhantomData;
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ normalize-stderr-test "loaded from .*libcore-.*.rlib" -> "loaded from SYSROOT/libcore-*.rlib"
|
||||
//@ normalize-stderr-test: "loaded from .*libcore-.*.rlib" -> "loaded from SYSROOT/libcore-*.rlib"
|
||||
#![feature(lang_items)]
|
||||
|
||||
#[lang = "sized"]
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ normalize-stderr-test "pref: Align\([1-8] bytes\)" -> "pref: $$SOME_ALIGN"
|
||||
//@ normalize-stderr-test: "pref: Align\([1-8] bytes\)" -> "pref: $$SOME_ALIGN"
|
||||
#![feature(never_type, rustc_attrs, type_alias_impl_trait, repr_simd)]
|
||||
#![crate_type = "lib"]
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
//@ normalize-stderr-test "pref: Align\([1-8] bytes\)" -> "pref: $$PREF_ALIGN"
|
||||
//@ normalize-stderr-test "Int\(I[0-9]+," -> "Int(I?,"
|
||||
//@ normalize-stderr-test "valid_range: 0..=[0-9]+" -> "valid_range: $$VALID_RANGE"
|
||||
//@ normalize-stderr-test: "pref: Align\([1-8] bytes\)" -> "pref: $$PREF_ALIGN"
|
||||
//@ normalize-stderr-test: "Int\(I[0-9]+," -> "Int(I?,"
|
||||
//@ normalize-stderr-test: "valid_range: 0..=[0-9]+" -> "valid_range: $$VALID_RANGE"
|
||||
|
||||
//! Enum layout tests related to scalar pairs with an int/ptr common primitive.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ normalize-stderr-test "pref: Align\([1-8] bytes\)" -> "pref: $$PREF_ALIGN"
|
||||
//@ normalize-stderr-test: "pref: Align\([1-8] bytes\)" -> "pref: $$PREF_ALIGN"
|
||||
//! Various enum layout tests.
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ normalize-stderr-test "pref: Align\([1-8] bytes\)" -> "pref: $$PREF_ALIGN"
|
||||
//@ normalize-stderr-test: "pref: Align\([1-8] bytes\)" -> "pref: $$PREF_ALIGN"
|
||||
#![crate_type = "lib"]
|
||||
#![feature(rustc_attrs)]
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ normalize-stderr-test "pref: Align\([1-8] bytes\)" -> "pref: $$PREF_ALIGN"
|
||||
//@ normalize-stderr-test: "pref: Align\([1-8] bytes\)" -> "pref: $$PREF_ALIGN"
|
||||
#![crate_type = "lib"]
|
||||
#![feature(rustc_attrs)]
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ normalize-stderr-test "pref: Align\([1-8] bytes\)" -> "pref: $$PREF_ALIGN"
|
||||
//@ normalize-stderr-test: "pref: Align\([1-8] bytes\)" -> "pref: $$PREF_ALIGN"
|
||||
//! Various struct layout tests.
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
|
@ -1,6 +1,6 @@
|
||||
//@ failure-status: 101
|
||||
//@ normalize-stderr-test "note: .*\n\n" -> ""
|
||||
//@ normalize-stderr-test "thread 'rustc' panicked.*\n" -> ""
|
||||
//@ normalize-stderr-test: "note: .*\n\n" -> ""
|
||||
//@ normalize-stderr-test: "thread 'rustc' panicked.*\n" -> ""
|
||||
//@ rustc-env:RUST_BACKTRACE=0
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ normalize-stderr-test "pref: Align\([1-8] bytes\)" -> "pref: $$PREF_ALIGN"
|
||||
//@ normalize-stderr-test: "pref: Align\([1-8] bytes\)" -> "pref: $$PREF_ALIGN"
|
||||
#![crate_type = "lib"]
|
||||
#![feature(rustc_attrs)]
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
//@ build-fail
|
||||
//@ normalize-stderr-test "std::option::Option<\[u32; \d+\]>" -> "TYPE"
|
||||
//@ normalize-stderr-test "\[u32; \d+\]" -> "TYPE"
|
||||
//@ normalize-stderr-test: "std::option::Option<\[u32; \d+\]>" -> "TYPE"
|
||||
//@ normalize-stderr-test: "\[u32; \d+\]" -> "TYPE"
|
||||
|
||||
#[cfg(target_pointer_width = "32")]
|
||||
type BIG = Option<[u32; (1<<29)-1]>;
|
||||
|
@ -1,6 +1,6 @@
|
||||
//@ build-fail
|
||||
//@ normalize-stderr-test "S32" -> "SXX"
|
||||
//@ normalize-stderr-test "S1M" -> "SXX"
|
||||
//@ normalize-stderr-test: "S32" -> "SXX"
|
||||
//@ normalize-stderr-test: "S1M" -> "SXX"
|
||||
//@ error-pattern: too big for the current
|
||||
|
||||
struct S32<T> {
|
||||
|
@ -1,5 +1,5 @@
|
||||
//@ build-fail
|
||||
//@ normalize-stderr-test "\[&usize; \d+\]" -> "[&usize; usize::MAX]"
|
||||
//@ normalize-stderr-test: "\[&usize; \d+\]" -> "[&usize; usize::MAX]"
|
||||
//@ error-pattern: too big for the current architecture
|
||||
|
||||
#[cfg(target_pointer_width = "64")]
|
||||
|
@ -1,6 +1,6 @@
|
||||
//@ build-fail
|
||||
//@ normalize-stderr-64bit "18446744073709551615" -> "SIZE"
|
||||
//@ normalize-stderr-32bit "4294967295" -> "SIZE"
|
||||
//@ normalize-stderr-64bit: "18446744073709551615" -> "SIZE"
|
||||
//@ normalize-stderr-32bit: "4294967295" -> "SIZE"
|
||||
|
||||
//@ error-pattern: are too big for the current architecture
|
||||
fn main() {
|
||||
|
@ -11,8 +11,8 @@
|
||||
//@ [opt_with_overflow_checks]compile-flags: -C overflow-checks=on -O -Z deduplicate-diagnostics=yes
|
||||
//@ build-fail
|
||||
//@ ignore-pass (test tests codegen-time behaviour)
|
||||
//@ normalize-stderr-test "shift left by `(64|32)_usize`, which" -> "shift left by `%BITS%`, which"
|
||||
//@ normalize-stderr-test "shift right by `(64|32)_usize`, which" -> "shift right by `%BITS%`, which"
|
||||
//@ normalize-stderr-test: "shift left by `(64|32)_usize`, which" -> "shift left by `%BITS%`, which"
|
||||
//@ normalize-stderr-test: "shift right by `(64|32)_usize`, which" -> "shift right by `%BITS%`, which"
|
||||
|
||||
#![deny(arithmetic_overflow)]
|
||||
|
||||
|
@ -2,10 +2,10 @@
|
||||
//@ failure-status: 101
|
||||
//@ error-pattern: broken MIR in
|
||||
//@ error-pattern: StorageLive(_1) which already has storage here
|
||||
//@ normalize-stderr-test "note: .*\n\n" -> ""
|
||||
//@ normalize-stderr-test "thread 'rustc' panicked.*\n" -> ""
|
||||
//@ normalize-stderr-test "storage_live\[....\]" -> "storage_live[HASH]"
|
||||
//@ normalize-stderr-test "(delayed at [^:]+):\d+:\d+ - " -> "$1:LL:CC - "
|
||||
//@ normalize-stderr-test: "note: .*\n\n" -> ""
|
||||
//@ normalize-stderr-test: "thread 'rustc' panicked.*\n" -> ""
|
||||
//@ normalize-stderr-test: "storage_live\[....\]" -> "storage_live[HASH]"
|
||||
//@ normalize-stderr-test: "(delayed at [^:]+):\d+:\d+ - " -> "$1:LL:CC - "
|
||||
//@ rustc-env:RUST_BACKTRACE=0
|
||||
|
||||
#![feature(custom_mir, core_intrinsics)]
|
||||
|
@ -1,5 +1,5 @@
|
||||
//@ build-fail
|
||||
//@ compile-flags:-C link-arg=⦺ⅈ⽯⭏⽽◃⡽⚞
|
||||
//@ only-msvc
|
||||
//@ normalize-stderr-test "(?:.|\n)*(⦺ⅈ⽯⭏⽽◃⡽⚞)(?:.|\n)*" -> "$1"
|
||||
//@ normalize-stderr-test: "(?:.|\n)*(⦺ⅈ⽯⭏⽽◃⡽⚞)(?:.|\n)*" -> "$1"
|
||||
pub fn main() {}
|
||||
|
@ -3,7 +3,7 @@
|
||||
// the error points to the start of the file, not the line with the
|
||||
// transmute
|
||||
|
||||
//@ normalize-stderr-test "\d+ bits" -> "N bits"
|
||||
//@ normalize-stderr-test: "\d+ bits" -> "N bits"
|
||||
//@ error-pattern: cannot transmute between types of different sizes, or dependently-sized types
|
||||
|
||||
use std::mem;
|
||||
|
@ -1,4 +1,4 @@
|
||||
//@ normalize-stderr-test "loaded from .*libstd-.*.rlib" -> "loaded from SYSROOT/libstd-*.rlib"
|
||||
//@ normalize-stderr-test: "loaded from .*libstd-.*.rlib" -> "loaded from SYSROOT/libstd-*.rlib"
|
||||
//@ error-pattern: found duplicate lang item `panic_impl`
|
||||
|
||||
extern crate core;
|
||||
|
@ -3,12 +3,12 @@
|
||||
//@ error-pattern:stack backtrace:
|
||||
//@ failure-status:101
|
||||
//@ ignore-msvc
|
||||
//@ normalize-stderr-test "note: .*" -> ""
|
||||
//@ normalize-stderr-test "thread 'rustc' .*" -> ""
|
||||
//@ normalize-stderr-test " +\d+:.*__rust_begin_short_backtrace.*" -> "(begin_short_backtrace)"
|
||||
//@ normalize-stderr-test " +\d+:.*__rust_end_short_backtrace.*" -> "(end_short_backtrace)"
|
||||
//@ normalize-stderr-test " +\d+:.*\n" -> ""
|
||||
//@ normalize-stderr-test " +at .*\n" -> ""
|
||||
//@ normalize-stderr-test: "note: .*" -> ""
|
||||
//@ normalize-stderr-test: "thread 'rustc' .*" -> ""
|
||||
//@ normalize-stderr-test: " +\d+:.*__rust_begin_short_backtrace.*" -> "(begin_short_backtrace)"
|
||||
//@ normalize-stderr-test: " +\d+:.*__rust_end_short_backtrace.*" -> "(end_short_backtrace)"
|
||||
//@ normalize-stderr-test: " +\d+:.*\n" -> ""
|
||||
//@ normalize-stderr-test: " +at .*\n" -> ""
|
||||
//
|
||||
// This test makes sure that full backtraces are used for ICEs when
|
||||
// RUST_BACKTRACE is not set. It does this by checking for the presence of
|
||||
|
@ -1,8 +1,8 @@
|
||||
//@ aux-build:test-macros.rs
|
||||
//@ compile-flags: -Z proc-macro-backtrace
|
||||
//@ rustc-env:RUST_BACKTRACE=0
|
||||
//@ normalize-stderr-test "thread '.*' panicked " -> ""
|
||||
//@ normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> ""
|
||||
//@ normalize-stderr-test: "thread '.*' panicked " -> ""
|
||||
//@ normalize-stderr-test: "note:.*RUST_BACKTRACE=1.*\n" -> ""
|
||||
//@ needs-unwind proc macro panics to report errors
|
||||
|
||||
#[macro_use]
|
||||
|
@ -4,9 +4,9 @@
|
||||
//@ compile-flags: -Z span-debug -Z macro-backtrace -Z unpretty=expanded,hygiene -Z trim-diagnostic-paths=no
|
||||
//@ check-pass
|
||||
// ignore-tidy-linelength
|
||||
//@ normalize-stdout-test "\d+#" -> "0#"
|
||||
//@ normalize-stdout-test "expn\d{3,}" -> "expnNNN"
|
||||
//@ normalize-stdout-test "extern crate compiler_builtins /\* \d+ \*/" -> "extern crate compiler_builtins /* NNN */"
|
||||
//@ normalize-stdout-test: "\d+#" -> "0#"
|
||||
//@ normalize-stdout-test: "expn\d{3,}" -> "expnNNN"
|
||||
//@ normalize-stdout-test: "extern crate compiler_builtins /\* \d+ \*/" -> "extern crate compiler_builtins /* NNN */"
|
||||
//
|
||||
// We don't care about symbol ids, so we set them all to 0
|
||||
// in the stdout
|
||||
|
@ -8,9 +8,9 @@ Respanned: TokenStream [Ident { ident: "$crate", span: $DIR/auxiliary/make-macro
|
||||
//@ compile-flags: -Z span-debug -Z macro-backtrace -Z unpretty=expanded,hygiene -Z trim-diagnostic-paths=no
|
||||
//@ check-pass
|
||||
// ignore-tidy-linelength
|
||||
//@ normalize-stdout-test "\d+#" -> "0#"
|
||||
//@ normalize-stdout-test "expn\d{3,}" -> "expnNNN"
|
||||
//@ normalize-stdout-test "extern crate compiler_builtins /\* \d+ \*/" -> "extern crate compiler_builtins /* NNN */"
|
||||
//@ normalize-stdout-test: "\d+#" -> "0#"
|
||||
//@ normalize-stdout-test: "expn\d{3,}" -> "expnNNN"
|
||||
//@ normalize-stdout-test: "extern crate compiler_builtins /\* \d+ \*/" -> "extern crate compiler_builtins /* NNN */"
|
||||
//
|
||||
// We don't care about symbol ids, so we set them all to 0
|
||||
// in the stdout
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user