Skip to content

Commit b2fabe3

Browse files
committed
Auto merge of rust-lang#153673 - JonathanBrouwer:rollup-cGOKonI, r=JonathanBrouwer
Rollup of 7 pull requests Successful merges: - rust-lang#153560 (Introduce granular tidy_ctx's check in extra_checks) - rust-lang#153666 (Add a regression test for rust-lang#153599) - rust-lang#153493 (Remove `FromCycleError` trait) - rust-lang#153549 (tests/ui/binop: add annotations for reference rules) - rust-lang#153641 (Move `Spanned`.) - rust-lang#153663 (Remove `TyCtxt::node_lint` method and `rustc_middle::lint_level` function) - rust-lang#153664 (Add test for rust-lang#109804)
2 parents d1c7945 + e23436f commit b2fabe3

File tree

119 files changed

+760
-878
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+760
-878
lines changed

compiler/rustc_ast/src/ast.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ use rustc_data_structures::stack::ensure_sufficient_stack;
3030
use rustc_data_structures::tagged_ptr::Tag;
3131
use rustc_macros::{Decodable, Encodable, HashStable_Generic, Walkable};
3232
pub use rustc_span::AttrId;
33-
use rustc_span::source_map::{Spanned, respan};
34-
use rustc_span::{ByteSymbol, DUMMY_SP, ErrorGuaranteed, Ident, Span, Symbol, kw, sym};
33+
use rustc_span::{
34+
ByteSymbol, DUMMY_SP, ErrorGuaranteed, Ident, Span, Spanned, Symbol, kw, respan, sym,
35+
};
3536
use thin_vec::{ThinVec, thin_vec};
3637

3738
use crate::attr::data_structures::CfgEntry;

compiler/rustc_ast/src/mut_visit.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ use std::ops::DerefMut;
1111
use std::panic;
1212

1313
use rustc_data_structures::flat_map_in_place::FlatMapInPlace;
14-
use rustc_span::source_map::Spanned;
15-
use rustc_span::{Ident, Span, Symbol};
14+
use rustc_span::{Ident, Span, Spanned, Symbol};
1615
use smallvec::{SmallVec, smallvec};
1716
use thin_vec::ThinVec;
1817

compiler/rustc_ast/src/visit.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
1616
pub use rustc_ast_ir::visit::VisitorResult;
1717
pub use rustc_ast_ir::{try_visit, visit_opt, walk_list, walk_visitable_list};
18-
use rustc_span::source_map::Spanned;
19-
use rustc_span::{Ident, Span, Symbol};
18+
use rustc_span::{Ident, Span, Spanned, Symbol};
2019
use thin_vec::ThinVec;
2120

2221
use crate::ast::*;

compiler/rustc_ast_lowering/src/expr.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ use rustc_hir::{HirId, Target, find_attr};
1313
use rustc_middle::span_bug;
1414
use rustc_middle::ty::TyCtxt;
1515
use rustc_session::errors::report_lit_error;
16-
use rustc_span::source_map::{Spanned, respan};
17-
use rustc_span::{ByteSymbol, DUMMY_SP, DesugaringKind, Ident, Span, Symbol, sym};
16+
use rustc_span::{ByteSymbol, DUMMY_SP, DesugaringKind, Ident, Span, Spanned, Symbol, respan, sym};
1817
use thin_vec::{ThinVec, thin_vec};
1918
use visit::{Visitor, walk_expr};
2019

compiler/rustc_ast_lowering/src/pat.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ use rustc_hir::def::{DefKind, Res};
66
use rustc_hir::definitions::DefPathData;
77
use rustc_hir::{self as hir, LangItem, Target};
88
use rustc_middle::span_bug;
9-
use rustc_span::source_map::{Spanned, respan};
10-
use rustc_span::{DesugaringKind, Ident, Span};
9+
use rustc_span::{DesugaringKind, Ident, Span, Spanned, respan};
1110

1211
use super::errors::{
1312
ArbitraryExpressionInPattern, ExtraDoubleDot, MisplacedDoubleDot, SubTupleBinding,

compiler/rustc_ast_passes/src/feature_gate.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ use rustc_hir::Attribute;
77
use rustc_hir::attrs::AttributeKind;
88
use rustc_session::Session;
99
use rustc_session::parse::{feature_err, feature_warn};
10-
use rustc_span::source_map::Spanned;
11-
use rustc_span::{DUMMY_SP, Span, Symbol, sym};
10+
use rustc_span::{DUMMY_SP, Span, Spanned, Symbol, sym};
1211
use thin_vec::ThinVec;
1312

1413
use crate::errors;

compiler/rustc_ast_pretty/src/pprust/state.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ use rustc_ast::{
2020
RangeEnd, RangeSyntax, Safety, SelfKind, Term, attr,
2121
};
2222
use rustc_span::edition::Edition;
23-
use rustc_span::source_map::{SourceMap, Spanned};
23+
use rustc_span::source_map::SourceMap;
2424
use rustc_span::symbol::IdentPrinter;
25-
use rustc_span::{BytePos, CharPos, DUMMY_SP, FileName, Ident, Pos, Span, Symbol, kw, sym};
25+
use rustc_span::{
26+
BytePos, CharPos, DUMMY_SP, FileName, Ident, Pos, Span, Spanned, Symbol, kw, sym,
27+
};
2628

2729
use crate::pp::Breaks::{Consistent, Inconsistent};
2830
use crate::pp::{self, BoxMarker, Breaks};

compiler/rustc_borrowck/src/diagnostics/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ use rustc_middle::ty::{self, Ty, TyCtxt};
2323
use rustc_middle::{bug, span_bug};
2424
use rustc_mir_dataflow::move_paths::{InitLocation, LookupResult, MoveOutIndex};
2525
use rustc_span::def_id::LocalDefId;
26-
use rustc_span::source_map::Spanned;
27-
use rustc_span::{DUMMY_SP, ErrorGuaranteed, Span, Symbol, sym};
26+
use rustc_span::{DUMMY_SP, ErrorGuaranteed, Span, Spanned, Symbol, sym};
2827
use rustc_trait_selection::error_reporting::InferCtxtErrorExt;
2928
use rustc_trait_selection::error_reporting::traits::call_kind::{CallDesugaringKind, call_kind};
3029
use rustc_trait_selection::infer::InferCtxtExt;

compiler/rustc_borrowck/src/type_check/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ use rustc_middle::ty::{
3232
use rustc_mir_dataflow::move_paths::MoveData;
3333
use rustc_mir_dataflow::points::DenseLocationMap;
3434
use rustc_span::def_id::CRATE_DEF_ID;
35-
use rustc_span::source_map::Spanned;
36-
use rustc_span::{Span, sym};
35+
use rustc_span::{Span, Spanned, sym};
3736
use rustc_trait_selection::infer::InferCtxtExt;
3837
use rustc_trait_selection::traits::query::type_op::custom::scrape_region_constraints;
3938
use rustc_trait_selection::traits::query::type_op::{TypeOp, TypeOpOutput};

compiler/rustc_builtin_macros/src/deriving/generic/ty.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
pub(crate) use Ty::*;
55
use rustc_ast::{self as ast, Expr, GenericArg, GenericParamKind, Generics, SelfKind, TyKind};
66
use rustc_expand::base::ExtCtxt;
7-
use rustc_span::source_map::respan;
8-
use rustc_span::{DUMMY_SP, Ident, Span, Symbol, kw};
7+
use rustc_span::{DUMMY_SP, Ident, Span, Symbol, kw, respan};
98
use thin_vec::ThinVec;
109

1110
/// A path, e.g., `::std::option::Option::<i32>` (global). Has support

0 commit comments

Comments
 (0)