Auto merge of - RalfJung:rustup, r=RalfJung

rustup; allow some lints
This commit is contained in:
bors 2021-01-26 10:48:36 +00:00
commit 755a3225cd
4 changed files with 5 additions and 10 deletions

@ -1 +1 @@
9a9477fada5baf69d693e717d6df902e411a73d6
a8f707553276a15565860af3d415aae18428aa96

@ -1,5 +1,7 @@
//! Make sure we detect erroneous constants post-monomorphization even when they are unused.
//! (https://github.com/rust-lang/miri/issues/1382)
// Inlining changes the error location
// compile-flags: -Zmir-opt-level=0
#![feature(const_panic)]
#![feature(never_type)]
#![warn(warnings, const_err)]

@ -1,4 +1,5 @@
#![feature(stmt_expr_attributes, test)]
#![allow(arithmetic_overflow)]
use std::fmt::Debug;
use std::hint::black_box;

@ -1,12 +1,4 @@
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(arithmetic_overflow)]
pub fn main() {
// This tests that do (not) do sign extension properly when loading integers