Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
175 commits
Select commit Hold shift + click to select a range
5c920cf
nr2.0: late: Correctly initialize funny_error member
CohenArthur Apr 28, 2025
936fa57
backend: Refactor struct pattern compilation
CohenArthur Apr 16, 2025
4fc7341
backend: Compile struct rebinding patterns
CohenArthur Apr 16, 2025
577c83c
ast: builder: Allow building struct ident patterns
CohenArthur Apr 16, 2025
3fdb11a
derive(PartialEq): Allow deriving enum structs
CohenArthur Apr 16, 2025
50510e7
derive(PartialEq): Fix raw strings in test
CohenArthur Apr 24, 2025
419ccc0
gccrs: Emit error diagnostic for bad impl type usage
philberty May 5, 2025
8d304c2
gccrs: desugar APIT impl traits
philberty Apr 30, 2025
056f90f
Improve canonical path handling for impl items
powerboat9 May 3, 2025
a7f379f
Improve struct pattern compilation
powerboat9 May 1, 2025
e94f691
nr2.0: Adjust enum item visitors
powerboat9 May 2, 2025
691ba18
gccrs: Prevent passing generic arguments to impl traits in argument p…
philberty May 7, 2025
bc17f04
gccrs: fix ICE on empty constexpr loops
tommyscholly May 8, 2025
799252f
ast: collector: visit InlineAsm node during ast dump
0xn4utilus May 7, 2025
d743913
nr2.0: Adjust resolution of impl items
powerboat9 Apr 25, 2025
757c77a
gccrs: Adapt attribute lang hook and do some cleanup
dkm May 9, 2025
4f42dcf
gccrs: We cant clone types as it will dup the node-id
philberty May 11, 2025
3376349
nr2.0: Fix borrow checking
powerboat9 May 9, 2025
d632b04
Fix test same_field_name.rs
powerboat9 May 10, 2025
aa73834
Fix Attr metavariable binding
powerboat9 May 10, 2025
620d93e
gccrs: remove unused file
dkm May 13, 2025
df3d637
gccrs: Reindent using last clang-format configuration
dkm May 10, 2025
fb79a0e
gccrs: remove now useless clang-format comments
dkm May 13, 2025
b8294ac
Small improvements to DefaultASTVisitor and nr2.0
powerboat9 May 8, 2025
4c78af5
Rust: Move 'libformat_parser' build into the GCC build directory
tschwinge Feb 28, 2024
3c77a3c
Remove rvalue reference binding
powerboat9 May 13, 2025
de33896
gccrs: Fix NR2 ICE in visit_attributes
tommyscholly May 12, 2025
013ffbb
nr2.0: Fix test builtin_abort.rs
powerboat9 May 15, 2025
7088ff2
nr2.0: Fix some paths in test files
powerboat9 May 14, 2025
9910da4
Revert 10-second timeout for each test
ptdatta Jan 21, 2023
9efa2ca
gccrs: refactor default infer vars to be its own function
philberty May 19, 2025
82330cf
gccrs: Remove unneeded clones untill we have an arena allocator for t…
philberty May 19, 2025
ae0ff24
gccrs: Fix non canonical type bug with tuples
philberty May 26, 2025
2b1815d
gccrs: Initial support for Return Position Impl Trait
philberty May 19, 2025
efe8fb6
nr2.0: Fix IfLet pattern handling
powerboat9 May 15, 2025
d289e23
gccrs: Always emit the error highest in the type hierarchy
philberty May 20, 2025
4945637
ast: Add ConstBlock and AnonConst nodes
CohenArthur Apr 9, 2025
6c293e3
parser: Add base for parsing const blocks
CohenArthur Apr 15, 2025
2217030
hir: Add const blocks
CohenArthur Apr 15, 2025
cb5702c
const-block: Add testcase
CohenArthur Apr 15, 2025
88b2c79
Make ConstantItem use Identifier
powerboat9 Jun 4, 2025
ee222ed
parser: fix ICE std::out_of_range with path attrs to nonexisting path
vishruth-thimmaiah Apr 22, 2025
93fced7
nr2.0: Improve visibility path handling
powerboat9 May 9, 2025
1c5f0cc
nr2.0: Catch Self in impl block self types
powerboat9 May 16, 2025
7189ce1
fix: ICE when parsing unterminated raw byte strings
vishruth-thimmaiah May 28, 2025
a273d7f
gccrs: Lower IdentifierPattern's to_bind to HIR
Polygonalr Jun 7, 2025
a859a72
nr2.0: Separate out canonical path handling
powerboat9 May 2, 2025
eb9b96d
Add new function ClosureExpr::get_definition_expr
powerboat9 Jun 9, 2025
c4b98a5
nr2.0: Improve StructPatternFieldIdent handling
powerboat9 May 23, 2025
6d7bdf1
nr2.0: Adjust pub_restricted tests
powerboat9 May 18, 2025
66b744d
nr2.0: Improve handling of single segment paths
powerboat9 Mar 29, 2025
ba5b1d1
nr2.0: Fix closure parameter scoping
powerboat9 May 15, 2025
e338762
gccrs: Support compilation of IdentifierPattern's subpatterns
Polygonalr Jun 7, 2025
7e861aa
gccrs: Rename IdentifierPattern's to_bind to subpattern
Polygonalr Jun 9, 2025
5ea84d8
nr2.0: Adjust alternate identifier handling
powerboat9 May 23, 2025
8f70436
gccrs: Fix bad type canonicalization on ARRAY_TYPES
philberty May 27, 2025
8dee141
gccrs: Fix bug in query type stopping PartialOrd
philberty Jun 14, 2025
b4759f3
rib: Add all kinds of Ribs to pretty-printing
CohenArthur May 27, 2025
9e886aa
derive: chore: Add missing override qualifiers
CohenArthur Mar 7, 2025
908997c
derive(Ord, PartialOrd): Add base for deriving them.
CohenArthur Mar 7, 2025
f05593f
derive: Add const generics when deriving impls
CohenArthur Apr 9, 2025
715210c
builder: Add match_case() function and new block() one
CohenArthur Apr 18, 2025
2c71088
derive: Add common comparison derive class
CohenArthur Apr 18, 2025
12d4cf7
derive(PartialEq): Use that common class
CohenArthur Apr 18, 2025
64f8c98
derive(Ord, PartialOrd): Implement proper recursive match logic
CohenArthur Apr 18, 2025
7cb25e9
derive(PartialEq): chore: Refactor using new SelfOther APIs
CohenArthur Apr 18, 2025
79c2d85
derive(Ord, PartialOrd): Handle tuples properly
CohenArthur Apr 18, 2025
8c03b83
builder: Add Builder::discriminant_value
CohenArthur Apr 22, 2025
c591578
derive(Hash): Use new Builder API
CohenArthur Apr 22, 2025
d264ebc
derive(Ord): Add handling for ordering of discriminant values
CohenArthur Apr 22, 2025
fb8af11
ast-builder: Make location public
CohenArthur Apr 22, 2025
119e0d1
derive-cmp: Add EnumMatchBuilder class
CohenArthur Apr 22, 2025
126726e
derive(PartialEq): Implement proper discriminant comparison
CohenArthur Apr 22, 2025
8f8e5eb
[NEEDS TEST] derive(Ord, PartialOrd): Finish implementation
CohenArthur Apr 22, 2025
10ee000
derive(Ord): Fix condition for matching on Option::Some instead
CohenArthur Apr 23, 2025
136db9e
derive(Ord): Fix cmp call to use references instead of values
CohenArthur Apr 28, 2025
b41d90a
derive(Ord): Handle unit structs properly
CohenArthur May 27, 2025
b9ef806
derive(Ord, Eq): Use different node IDs for variant paths
CohenArthur Jun 10, 2025
85e9474
chore: Fix formatting
CohenArthur Jun 11, 2025
39a9edb
gccrs: Improve HIR dumps for patterns
Polygonalr Jun 15, 2025
650fcf8
nr2.0: Adjust lookup of associated items
powerboat9 May 9, 2025
8ddfaa8
gccrs: Rename get_pattern_to_bind to get_subpattern
Polygonalr Jun 11, 2025
e2175ce
gccrs: Implement name resolution for IdentifierPattern's subpattern
Polygonalr Jun 13, 2025
42f7b11
gccrs: Implement compilation of IdentifierPattern's subpattern bindings
Polygonalr Jun 13, 2025
c535cc0
nr2.0: Update IdentifierPattern's subpattern name resolution
Polygonalr Jun 16, 2025
19d3acd
gccrs: Fix issues around PartialEq Eq Ord Partial Ord
philberty Jun 17, 2025
986dd3a
Fix execute testsuite
powerboat9 Jun 17, 2025
f5b5d77
Adjust external crate lowering and type checking
powerboat9 Jun 16, 2025
b04ac97
gccrs: Fix ICE when constant is missing and expression
philberty Jun 18, 2025
d7d443e
gccrs: Add test case showing RPIT working to close issue
philberty Jun 19, 2025
87dce9b
Move AST desugaring into expansion phase
powerboat9 May 24, 2025
0330ff8
gccrs: Ensure we look at the bounds behind a reference
philberty Jun 20, 2025
5c7c3bf
gccrs: Fix cyclical projection to placeholder
philberty Jun 21, 2025
2d3ec5c
gccrs: Cleanup and refactor method resolution
philberty Jun 17, 2025
c3ca0ee
gccrs: Refactor marker builtin trait assembly
philberty Jun 21, 2025
c7d80a9
gccrs: Fix bug with bad type bindings not looking at super traits
philberty Jun 21, 2025
e538977
gccrs: Fix silly ordering bug in trait reference resolution
philberty Jun 20, 2025
b25dad9
gccrs: Add unify rules for fnptr and closures
philberty Jun 21, 2025
e4d2d16
nr2.0: Fix resolution of constant items
powerboat9 Jun 20, 2025
fa6f16c
gccrs: Fix TupleStructPattern compilation throwing error
Polygonalr Jun 22, 2025
1a52f53
gccrs: check for invalid const calls during code-gen
philberty Jun 23, 2025
1fec05a
gccrs: Fix bug with non compiled const decl
philberty Jun 23, 2025
74beeb8
Fix scan-assembler regexp in recurse2.rs
powerboat9 Jun 23, 2025
4e4a98d
gccrs: Add getter for outer attributions
sakupan102 Jun 24, 2025
c7474b1
gccrs: Add getter for non const lifetime object
sakupan102 Jun 24, 2025
3e40233
Create Rust::GGC::Ident
powerboat9 Jun 24, 2025
a56dace
gccrs: Implement default HIR visitor class
sakupan102 Jun 24, 2025
86247ed
Update C++ version check in rust-lang.cc
powerboat9 Jun 24, 2025
fef012e
gccrs: Implement type checking for ItemType::RANGED in TuplePattern
Polygonalr Jun 26, 2025
15acbb4
nr2.0: Adjust resolution of external crates
powerboat9 Jun 16, 2025
402c75a
Add locus getters
P-E-P Jun 27, 2025
4bf1036
nr2.0: Add more checks for alternate patterns
powerboat9 May 24, 2025
c52aa5f
nr2.0: Adjust resolution of modules
powerboat9 May 29, 2025
c1a64c0
ast: reconstruct: Add base for reconstructing and asserting different…
CohenArthur May 20, 2025
7a6a2de
ast: Add reconstruct() method for Type nodes
CohenArthur May 20, 2025
f52adb9
ast: builder: Remove ASTTypeBuilder
CohenArthur May 20, 2025
0e56adc
reconstruct_vec: Allocate size when creating the vector
CohenArthur May 26, 2025
8284e8f
chore: ast: Fix formatting and includes
CohenArthur Jun 13, 2025
cdeb533
gccrs: Fix type checking logic for TuplePattern
Polygonalr Jun 28, 2025
98593f2
gccrs: Implement compilation support for TuplePatternItems::RANGED
Polygonalr Jun 29, 2025
a0cae87
nr2.0: Enable by default
powerboat9 May 9, 2025
78a0f56
Remove -frust-name-resolution-2.0 usage in tests
powerboat9 Jul 3, 2025
4151cd2
nr1.0: Remove rust/backend support
powerboat9 Jul 3, 2025
25faded
Remove Late visitor override for StructStruct
powerboat9 Jul 1, 2025
33bb07b
Remove reinterpret_cast usages in DefaultASTVisitor
powerboat9 Jul 1, 2025
48ab359
Change enum to enum class
P-E-P Jul 7, 2025
908d72b
Allow format_args to accept a raw string literal
powerboat9 Jul 1, 2025
ee9d362
Parse try expressions
powerboat9 Jul 2, 2025
2dacf72
ast: Check before visiting a while-let's label
CohenArthur May 19, 2025
26e61b8
nr2.0: Add proper handling for WhileLet loops.
CohenArthur Jul 4, 2025
0919aad
gccrs: Do proper const folding during typechecking for array capacities
philberty Jul 8, 2025
6dd400f
gccrs: Fix ice with invalid borrow expression
philberty Jul 8, 2025
f0b2a40
gccrs: Add type checking for SlicePattern
Polygonalr Jul 8, 2025
7348273
gccrs: Improve LiteralPattern type checking
Polygonalr Jul 8, 2025
a28a467
gccrs: Fix narrowing of Loan (size_t) into LoanId (uint32)
dkm Jul 3, 2025
f1d7bbb
gccrs: Fix bad bounds checking for PartialOrd
philberty Jun 27, 2025
758c104
nr2.0: Check before visiting a for-loop's label
CohenArthur Jul 9, 2025
894f404
gccrs: Fix cast rules logic to try simple casts then fall back to coe…
philberty Jul 10, 2025
2c47b4c
gccrs: Fix ICE when handling bad constructor
philberty Jul 10, 2025
aa4e674
gccrs: add test case to show issue is fixed
philberty Jul 11, 2025
a1e39d6
gccrs: Add test case to show we emit better errors now
philberty Jul 11, 2025
a394031
gccrs: Add test case to show issue is fixed
philberty Jul 11, 2025
3c0588d
attributes: Add #[test] and #[simd_test]
CohenArthur Jul 4, 2025
9507fd7
gccrs: Add test case showing all derives working on enum
philberty Jul 11, 2025
78522e0
gccrs: Add size checking to SlicePattern
Polygonalr Jul 11, 2025
3e78571
gccrs: Implement compilation for SlicePattern matching against ArrayT…
Polygonalr Jul 17, 2025
ca5bb76
gccrs: Reject loop in const/static context
Lishin1215 Jul 16, 2025
877d37d
gccrs: Add test case to show issue is fixed
philberty Jul 18, 2025
b436c2a
Improve parsing of simple paths
powerboat9 Jul 15, 2025
1c6c2a2
gccrs: Fix ICE with duplicate root item main function
philberty Jul 18, 2025
1c19c07
gccrs: Add initial support for deffered operator overload resolution
philberty Jul 18, 2025
59b5958
gccrs: return error node when this fails during constexpr case
philberty Jul 18, 2025
ddfe426
Use MacroInvocLexer in AttributeParser
powerboat9 Jul 8, 2025
317a23a
gccrs: fix bad monomophization of generic paths
philberty Jul 20, 2025
58d2f69
Specialize ExpandVisitor::expand_macro_children
powerboat9 Jul 19, 2025
3ca2381
Load modules during CfgStrip phase
powerboat9 Jul 3, 2025
38eb0e8
mappings: Change mappings to allow other items as item containers.
CohenArthur Jul 9, 2025
3e55083
nr2.0: Handle glob imports of enum variants.
CohenArthur Jul 9, 2025
196700e
ast: Use AnonConst for array type sizes
CohenArthur Jul 21, 2025
43442d1
hir: Handle deferred const inference variables
CohenArthur Jul 8, 2025
455be99
chore: ast: Fix formatting in rust-expr.h
CohenArthur Jul 21, 2025
1d62c75
desugar: Add desugar dispatch for all desugars
CohenArthur Jul 21, 2025
011b58d
ast: Visit block labels if they are present
CohenArthur Jul 21, 2025
50d6e73
Handle IfLetExprConseqElse in DefaultResolver
powerboat9 Jul 22, 2025
52ea70a
ast: Add Expr::Kind::Try
CohenArthur Jul 22, 2025
409fb78
desugar: Handle try-blocks
CohenArthur Jul 22, 2025
0ba69fa
gccrs: Update SlicePattern typechecking against slice reference parents
Polygonalr Jul 20, 2025
2f30693
gccrs: Implement compilation for SlicePattern against SliceType scrut…
Polygonalr Jul 23, 2025
598bbfc
Add indexed positional argument support in asm
P-E-P Jul 23, 2025
6686fde
Add pretty hir dump for inline assembly
P-E-P Jul 29, 2025
53cf0fa
Parse input and output expression
P-E-P Jul 29, 2025
9cf969b
Add input/output from inout and split in out
P-E-P Jul 29, 2025
37886f5
Add execute test for variable and identifiers
P-E-P Jul 29, 2025
7ebd40b
nr1.0: Remove rust/typecheck support
powerboat9 Jul 3, 2025
85b903c
Fix semicolon after some namespace
P-E-P Jul 29, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,3 @@ stamp-*
/gmp*
/isl*
/gettext*

# ADDITIONS from GCCRS front-end
libgrust/*/target/
9 changes: 7 additions & 2 deletions gcc/rust/Make-lang.in
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ GRS_OBJS = \
rust/rust-ast-dump.o \
rust/rust-ast-collector.o \
rust/rust-ast-visitor.o \
rust/rust-hir-visitor.o \
rust/rust-hir-dump.o \
rust/rust-session-manager.o \
rust/rust-compile.o \
Expand All @@ -92,14 +93,15 @@ GRS_OBJS = \
rust/rust-cfg-strip.o \
rust/rust-expand-visitor.o \
rust/rust-ast-builder.o \
rust/rust-ast-builder-type.o \
rust/rust-derive.o \
rust/rust-derive-cmp-common.o \
rust/rust-derive-clone.o \
rust/rust-derive-copy.o \
rust/rust-derive-debug.o \
rust/rust-derive-default.o \
rust/rust-derive-partial-eq.o \
rust/rust-derive-eq.o \
rust/rust-derive-ord.o \
rust/rust-derive-hash.o \
rust/rust-proc-macro.o \
rust/rust-macro-invoc-lexer.o \
Expand All @@ -123,7 +125,6 @@ GRS_OBJS = \
rust/rust-keyword-values.o \
rust/rust-abi.o \
rust/rust-token-converter.o \
rust/rust-macro.o \
rust/rust-ast-lower.o \
rust/rust-ast-lower-base.o \
rust/rust-ast-lower-pattern.o \
Expand Down Expand Up @@ -237,11 +238,15 @@ GRS_OBJS = \
rust/rust-punycode.o \
rust/rust-unwrap-segment.o \
rust/rust-edition.o \
rust/rust-ggc.o \
rust/rust-expand-format-args.o \
rust/rust-lang-item.o \
rust/rust-collect-lang-items.o \
rust/rust-expression-yeast.o \
rust/rust-desugar-for-loops.o \
rust/rust-desugar-question-mark.o \
rust/rust-desugar-apit.o \
rust/rust-desugar-try-block.o \
$(END)
# removed object files from here

Expand Down
163 changes: 0 additions & 163 deletions gcc/rust/ast/rust-ast-builder-type.cc

This file was deleted.

57 changes: 0 additions & 57 deletions gcc/rust/ast/rust-ast-builder-type.h

This file was deleted.

Loading