Skip to content

Commit bf723aa

Browse files
committed
Fix rebase error
1 parent ec1e419 commit bf723aa

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

compiler/rustc_attr_parsing/src/attributes/allow_unstable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub(crate) struct UnstableFeatureBoundParser;
3131
impl<S: Stage> CombineAttributeParser<S> for UnstableFeatureBoundParser {
3232
const PATH: &'static [rustc_span::Symbol] = &[sym::unstable_feature_bound];
3333
type Item = (Symbol, Span);
34-
const CONVERT: ConvertFn<Self::Item> = AttributeKind::UnstableFeatureBound;
34+
const CONVERT: ConvertFn<Self::Item> = |items, _| AttributeKind::UnstableFeatureBound(items);
3535
const TEMPLATE: AttributeTemplate = template!(Word, List: "feat1, feat2, ...");
3636

3737
fn extend<'c>(

compiler/rustc_attr_parsing/src/context.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,10 @@ use rustc_hir::{AttrArgs, AttrItem, AttrPath, Attribute, HashIgnoredAttrId, HirI
1414
use rustc_session::Session;
1515
use rustc_span::{DUMMY_SP, ErrorGuaranteed, Span, Symbol, sym};
1616

17-
<<<<<<< HEAD
18-
use crate::attributes::allow_unstable::{AllowConstFnUnstableParser, AllowInternalUnstableParser};
17+
use crate::attributes::allow_unstable::{AllowConstFnUnstableParser, AllowInternalUnstableParser, UnstableFeatureBoundParser};
1918
use crate::attributes::codegen_attrs::{
2019
ColdParser, ExportNameParser, NakedParser, NoMangleParser, OptimizeParser, TargetFeatureParser,
2120
TrackCallerParser, UsedParser,
22-
=======
23-
use crate::attributes::allow_unstable::{
24-
AllowConstFnUnstableParser, AllowInternalUnstableParser, UnstableFeatureBoundParser,
25-
>>>>>>> 98216fb802e (Implement other logics)
26-
};
27-
use crate::attributes::codegen_attrs::{
28-
ColdParser, ExportNameParser, NakedParser, NoMangleParser, OptimizeParser, TrackCallerParser,
2921
};
3022
use crate::attributes::confusables::ConfusablesParser;
3123
use crate::attributes::deprecation::DeprecationParser;

compiler/rustc_passes/src/check_attr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2291,7 +2291,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
22912291
}
22922292
}
22932293

2294-
fn check_rustc_std_internal_symbol(&self, attr: &Attribute, span: Span, target: Target) {
2294+
fn check_rustc_std_internal_symbol(&self, attr_span: Span, span: Span, target: Target) {
22952295
match target {
22962296
Target::Fn | Target::Static | Target::ForeignFn | Target::ForeignStatic => {}
22972297
_ => {

0 commit comments

Comments
 (0)