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
30 commits
Select commit Hold shift + click to select a range
d672fea
Use typeck_results to avoid duplicate ast_ty_to_ty call
compiler-errors Jul 16, 2022
dd109c8
better error for bad depth on macro metavar expr
compiler-errors Jul 17, 2022
b3c1b95
Fix crate filter select display
GuillaumeGomez Jul 20, 2022
512db7e
Fix CSS on search input focus
GuillaumeGomez Jul 20, 2022
45382e6
compiletest: allow using revisions with debuginfo tests
luqmana Jul 20, 2022
8de7f04
Use revision support to remove near identical debuginfo test.
luqmana Jul 20, 2022
5d7cd65
compiletest: dedup revision line logic.
luqmana Jul 20, 2022
57a155b
avoid a `Symbol` to `String` conversion
TaKO8Ki Jul 20, 2022
56e7777
avoid `&str` to String conversions
TaKO8Ki Jul 20, 2022
b8c8250
Remove CSS transition for search input border-color
GuillaumeGomez Jul 20, 2022
f4be88e
Add GUI tests for search input border color
GuillaumeGomez Jul 20, 2022
6f0b8f1
attr/passes: comment -> doc comment
davidtwco Jul 13, 2022
a1d5af2
attr: fix expected meta-item for `#[stable]`
davidtwco Jul 13, 2022
62187b1
Add diagnostic width span when '0$' is used as width.
miam-miam Jul 19, 2022
f8dfc4b
Fix off by one error and add ui test.
miam-miam Jul 20, 2022
dcd02ab
adapt assembly/static-relocation-model test for LLVM change
krasimirgg Jul 20, 2022
224aec2
middle: add `implies_by` to `#[unstable]`
davidtwco Jul 13, 2022
97edb9f
span: add `span_extend_to_line` helper
davidtwco Jul 13, 2022
6246d66
passes: improved partial stabilization diagnostic
davidtwco Jul 13, 2022
e587299
passes: check implied feature exists
davidtwco Jul 20, 2022
12ff7a0
Use new tracking issue for proc_macro::tracked_*.
m-ou-se Jul 20, 2022
857afc7
Rollup merge of #99212 - davidtwco:partial-stability-implies, r=micha…
matthiaskrgr Jul 20, 2022
43f6366
Rollup merge of #99352 - compiler-errors:tighter-spans-on-generic-cal…
matthiaskrgr Jul 20, 2022
82d9ae9
Rollup merge of #99355 - compiler-errors:macro-metavar-less-than-zero…
matthiaskrgr Jul 20, 2022
9e197b7
Rollup merge of #99480 - miam-miam100:arg-format, r=oli-obk
matthiaskrgr Jul 20, 2022
a0c6964
Rollup merge of #99488 - luqmana:debuginfo-revisions, r=tmiasko
matthiaskrgr Jul 20, 2022
73ef81d
Rollup merge of #99489 - GuillaumeGomez:gui-fixes, r=notriddle
matthiaskrgr Jul 20, 2022
4b21ad2
Rollup merge of #99508 - TaKO8Ki:avoid-symbol-to-string-conversion-in…
matthiaskrgr Jul 20, 2022
2638f3a
Rollup merge of #99510 - krasimirgg:movb, r=nikic
matthiaskrgr Jul 20, 2022
a5a6811
Rollup merge of #99516 - m-ou-se:proc-macro-tracked-tracking-issue, r…
matthiaskrgr Jul 20, 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
attr: fix expected meta-item for #[stable]
When an unexpected meta item is provided to `#[stable]`, the diagnostic
lists "since" and "note" as expected meta-items, however the surrounding
code actually expects "feature" and "since".

Signed-off-by: David Wood <[email protected]>
  • Loading branch information
davidtwco committed Jul 20, 2022
commit a1d5af24ece7d35d6f23a2782df5ffdaa132dd82
2 changes: 1 addition & 1 deletion compiler/rustc_attr/src/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ where
meta.span(),
AttrError::UnknownMetaItem(
pprust::path_to_string(&mi.path),
&["since", "note"],
&["feature", "since"],
),
);
continue 'outer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ error[E0541]: unknown meta item 'sinse'
--> $DIR/stability-attribute-sanity-2.rs:10:25
|
LL | #[stable(feature = "a", sinse = "1.0.0")]
| ^^^^^^^^^^^^^^^ expected one of `since`, `note`
| ^^^^^^^^^^^^^^^ expected one of `feature`, `since`

error[E0545]: `issue` must be a non-zero numeric string or "none"
--> $DIR/stability-attribute-sanity-2.rs:13:27
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ error[E0541]: unknown meta item 'reason'
--> $DIR/stability-attribute-sanity.rs:8:42
|
LL | #[stable(feature = "a", since = "b", reason)]
| ^^^^^^ expected one of `since`, `note`
| ^^^^^^ expected one of `feature`, `since`

error[E0539]: incorrect meta item
--> $DIR/stability-attribute-sanity.rs:11:29
Expand Down