Skip to content

Commit f11edf7

Browse files
committed
allow symbol_intern_string_literal lint in test modules
Signed-off-by: onur-ozkan <[email protected]>
1 parent ff7906b commit f11edf7

File tree

6 files changed

+12
-0
lines changed

6 files changed

+12
-0
lines changed

Diff for: compiler/rustc_ast/src/util/comments/tests.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg_attr(not(bootstrap), allow(rustc::symbol_intern_string_literal))]
2+
13
use rustc_span::create_default_session_globals_then;
24

35
use super::*;

Diff for: compiler/rustc_hir/src/tests.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg_attr(not(bootstrap), allow(rustc::symbol_intern_string_literal))]
2+
13
use rustc_data_structures::stable_hasher::Hash64;
24
use rustc_span::def_id::{DefPathHash, StableCrateId};
35
use rustc_span::edition::Edition;

Diff for: compiler/rustc_lint/src/tests.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg_attr(not(bootstrap), allow(rustc::symbol_intern_string_literal))]
2+
13
use rustc_span::{Symbol, create_default_session_globals_then};
24

35
use crate::levels::parse_lint_and_tool_name;

Diff for: compiler/rustc_parse/src/parser/tests.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg_attr(not(bootstrap), allow(rustc::symbol_intern_string_literal))]
2+
13
use std::assert_matches::assert_matches;
24
use std::io::prelude::*;
35
use std::iter::Peekable;

Diff for: compiler/rustc_parse/src/parser/tokenstream/tests.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg_attr(not(bootstrap), allow(rustc::symbol_intern_string_literal))]
2+
13
use rustc_ast::token::{self, IdentIsRaw};
24
use rustc_ast::tokenstream::{TokenStream, TokenTree};
35
use rustc_span::{BytePos, Span, Symbol, create_default_session_globals_then};

Diff for: compiler/rustc_span/src/edit_distance/tests.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg_attr(not(bootstrap), allow(rustc::symbol_intern_string_literal))]
2+
13
use super::*;
24

35
#[test]

0 commit comments

Comments
 (0)