Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
86bdb3e
Rustdoc-Json: Add `Path` type for traits.
aDotInTheVoid Aug 9, 2022
0fb4ef6
Suggest path separator when a dot is used on a trait
fmease Aug 10, 2022
48c0341
suggest removing a semicolon after impl/trait items
TaKO8Ki Aug 12, 2022
b821ce6
enum variant ctor inherits stability of variant
compiler-errors Aug 11, 2022
6925f41
Check ctor for missing stability
compiler-errors Aug 11, 2022
20121fa
Point out a single arg if we have a single arg incompatibility
compiler-errors Jul 23, 2022
262644d
And for closures
compiler-errors Jul 23, 2022
237cbe9
Adjust span of closure param
compiler-errors Jul 23, 2022
c608918
Address nit
compiler-errors Aug 12, 2022
de8dedb
Use an extensionless `x` script for non-Windows
cuviper Aug 12, 2022
d47df26
use `span_suggestion` instead of `span_suggestion_verbose`
TaKO8Ki Aug 13, 2022
b0cd1e1
Label argument coercion errors
compiler-errors Aug 13, 2022
aa1a07f
Do not inline non-simple argument type errors into labels
compiler-errors Aug 13, 2022
752b0e0
make clean::Item::span return option instead of dummy span
compiler-errors Aug 9, 2022
2af3445
Rollup merge of #99646 - compiler-errors:arg-mismatch-single-arg-labe…
compiler-errors Aug 14, 2022
d496c4e
Rollup merge of #100299 - compiler-errors:issue-100283, r=notriddle
compiler-errors Aug 14, 2022
4989f6a
Rollup merge of #100335 - aDotInTheVoid:rdj-resolved-path, r=Guillaum…
compiler-errors Aug 14, 2022
e248c7f
Rollup merge of #100367 - fmease:fix-100365, r=compiler-errors
compiler-errors Aug 14, 2022
d46451c
Rollup merge of #100431 - compiler-errors:enum-ctor-variant-stab, r=e…
compiler-errors Aug 14, 2022
86e1d1e
Rollup merge of #100446 - TaKO8Ki:suggest-removing-semicolon-after-im…
compiler-errors Aug 14, 2022
809fc86
Rollup merge of #100468 - cuviper:lazy-x, r=jyn514
compiler-errors Aug 14, 2022
b3e76aa
Rollup merge of #100479 - compiler-errors:argument-type-error-improve…
compiler-errors Aug 14, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
enum variant ctor inherits stability of variant
  • Loading branch information
compiler-errors committed Aug 12, 2022
commit b821ce6097812763fd6136a90b42f90a71364e76
2 changes: 1 addition & 1 deletion compiler/rustc_passes/src/stability.rs
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ impl<'a, 'tcx> Visitor<'tcx> for Annotator<'a, 'tcx> {
AnnotationKind::Required,
InheritDeprecation::Yes,
InheritConstStability::No,
InheritStability::No,
InheritStability::Yes,
|_| {},
);
}
Expand Down
8 changes: 8 additions & 0 deletions src/test/ui/stability-attribute/auxiliary/ctor-stability.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#![crate_type = "lib"]
#![feature(staged_api)]
#![stable(feature = "none", since = "1.0")]

#[stable(feature = "none", since = "1.0")]
pub enum Foo {
A,
}
8 changes: 8 additions & 0 deletions src/test/ui/stability-attribute/ctor-stability.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// aux-build:ctor-stability.rs
// check-pass

extern crate ctor_stability;

fn main() {
let _ = ctor_stability::Foo::A;
}