Skip to content

Commit adf2dce

Browse files
Manishearthalexcrichton
authored andcommitted
Rename lint to absolute_path_not_starting_with_crate
1 parent eab91ba commit adf2dce

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/librustc/lint/builtin.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ declare_lint! {
261261
}
262262

263263
declare_lint! {
264-
pub ABSOLUTE_PATH_STARTING_WITH_MODULE,
264+
pub ABSOLUTE_PATH_NOT_STARTING_WITH_CRATE,
265265
Allow,
266266
"fully qualified paths that start with a module name \
267267
instead of `crate`, `self`, or an extern crate name"
@@ -328,7 +328,7 @@ impl LintPass for HardwiredLints {
328328
TYVAR_BEHIND_RAW_POINTER,
329329
ELIDED_LIFETIME_IN_PATH,
330330
BARE_TRAIT_OBJECT,
331-
ABSOLUTE_PATH_STARTING_WITH_MODULE,
331+
ABSOLUTE_PATH_NOT_STARTING_WITH_CRATE,
332332
UNSTABLE_NAME_COLLISION,
333333
)
334334
}

src/librustc_lint/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ extern crate rustc_target;
4040
extern crate syntax_pos;
4141

4242
use rustc::lint;
43-
use rustc::lint::builtin::{BARE_TRAIT_OBJECT, ABSOLUTE_PATH_STARTING_WITH_MODULE};
43+
use rustc::lint::builtin::{BARE_TRAIT_OBJECT, ABSOLUTE_PATH_NOT_STARTING_WITH_CRATE};
4444
use rustc::session;
4545
use rustc::util;
4646

@@ -282,7 +282,7 @@ pub fn register_builtins(store: &mut lint::LintStore, sess: Option<&Session>) {
282282
// standard library, and thus should never be removed or changed to an error.
283283
},
284284
FutureIncompatibleInfo {
285-
id: LintId::of(ABSOLUTE_PATH_STARTING_WITH_MODULE),
285+
id: LintId::of(ABSOLUTE_PATH_NOT_STARTING_WITH_CRATE),
286286
reference: "issue TBD",
287287
edition: Some(Edition::Edition2018),
288288
},

src/librustc_resolve/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3445,7 +3445,7 @@ impl<'a> Resolver<'a> {
34453445
let diag = lint::builtin::BuiltinLintDiagnostics
34463446
::AbsPathWithModule(path_span);
34473447
self.session.buffer_lint_with_diagnostic(
3448-
lint::builtin::ABSOLUTE_PATH_STARTING_WITH_MODULE,
3448+
lint::builtin::ABSOLUTE_PATH_NOT_STARTING_WITH_CRATE,
34493449
id, path_span,
34503450
"Absolute paths must start with `self`, `super`, \
34513451
`crate`, or an external crate name in the 2018 edition",

0 commit comments

Comments
 (0)