Skip to content

Commit

Permalink
Fix internal references to bad_style in test code.
Browse files Browse the repository at this point in the history
  • Loading branch information
boats committed Feb 20, 2018
1 parent 21e2a5e commit 5949d8b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/ui/lint/lint-group-nonstandard-style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@

fn CamelCase() {} //~ ERROR should have a snake

#[allow(bad_style)]
#[allow(nonstandard_style)]
mod test {
fn CamelCase() {}

#[forbid(bad_style)]
#[forbid(nonstandard_style)]
mod bad {
fn CamelCase() {} //~ ERROR should have a snake

static bad: isize = 1; //~ ERROR should have an upper
}

mod warn {
#![warn(bad_style)]
#![warn(nonstandard_style)]

fn CamelCase() {} //~ WARN should have a snake

Expand Down

0 comments on commit 5949d8b

Please sign in to comment.