Skip to content

Commit

Permalink
For feature-gate-nll test, turn off testing modes that externally ena…
Browse files Browse the repository at this point in the history
…ble NLL.
  • Loading branch information
pnkfelix committed Nov 5, 2018
1 parent b75fbbf commit fff9dde
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 24 deletions.
13 changes: 0 additions & 13 deletions src/test/ui/feature-gates/feature-gate-nll.nll.stderr

This file was deleted.

22 changes: 11 additions & 11 deletions src/test/ui/feature-gates/feature-gate-nll.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
// Copyright 2015 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.
#![feature(rustc_attrs)]
// This is a test checking that if you do not opt into NLL then you
// should not get the effects of NLL applied to the test.

// Don't use 2018 edition, since that turns on NLL (migration mode).
// edition:2015

// Don't use compare-mode=nll, since that turns on NLL.
// ignore-compare-mode-nll


#![allow(dead_code)]

fn main() { #![rustc_error] // rust-lang/rust#49855
fn main() {
let mut x = 33;

let p = &x;
Expand Down

0 comments on commit fff9dde

Please sign in to comment.